[lkml]   [2016]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [2/5] livepatch: Allow architectures to specify an alternate ftrace location
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 <>
> Signed-off-by: Balbir Singh <>
> Signed-off-by: Petr Mladek <>
> Signed-off-by: Michael Ellerman <>

Applied to powerpc next.


 \ /
  Last update: 2016-04-19 12:41    [W:0.125 / U:0.176 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site