[2/5] livepatch: Allow architectures to specify an alternate ftrace location

Michael Ellerman mpe at ellerman.id.au
Tue Apr 19 20:16:29 AEST 2016


On Wed, 2016-13-04 at 12:53:20 UTC, Michael Ellerman wrote:
> When livepatch tries to patch a function it takes the function address
> and asks ftrace to install the livepatch handler at that location.
> ftrace will look for an mcount call site at that exact address.
> 
> On powerpc the mcount location is not the first instruction of the
> function, and in fact it's not at a constant offset from the start of
> the function. To accommodate this add a hook which arch code can
> override to customise the behaviour.
> 
> Signed-off-by: Torsten Duwe <duwe at suse.de>
> Signed-off-by: Balbir Singh <bsingharora at gmail.com>
> Signed-off-by: Petr Mladek <pmladek at suse.com>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>

Applied to powerpc next.

https://git.kernel.org/powerpc/c/28e7cbd3e0f5fefec892842d13

cheers


More information about the Linuxppc-dev mailing list