Skip to content
Commit 28e7cbd3 authored by Michael Ellerman's avatar Michael Ellerman
Browse files

livepatch: Allow architectures to specify an alternate ftrace location



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: default avatarTorsten Duwe <duwe@suse.de>
Signed-off-by: default avatarBalbir Singh <bsingharora@gmail.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 04cf31a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment