diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-03-24 22:04:02 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-04-14 15:47:05 +1000 |
commit | 28e7cbd3e0f5fefec892842d1391ebd508fdb5ce (patch) | |
tree | 98c58a0587978e5e81fb32baa13f64ce3f386158 /usr | |
parent | 04cf31a759ef575f750a63777cee95500e410994 (diff) |
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: Torsten Duwe <duwe@suse.de>
Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions