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 <[email protected]> > Signed-off-by: Balbir Singh <[email protected]> > Signed-off-by: Petr Mladek <[email protected]> > Signed-off-by: Michael Ellerman <[email protected]>
Applied to powerpc next. https://git.kernel.org/powerpc/c/28e7cbd3e0f5fefec892842d13 cheers

