Re: [PATCH 3/5] powerpc/livepatch: Add livepatch header

2016-04-14 Thread Michael Ellerman
On Thu, 2016-04-14 at 14:23 +0200, Miroslav Benes wrote: > On Thu, 14 Apr 2016, Miroslav Benes wrote: > > On Wed, 13 Apr 2016, Michael Ellerman wrote: > > > diff --git a/arch/powerpc/include/asm/livepatch.h > > > b/arch/powerpc/include/asm/livepatch.h > > > new file mode 100644 > > > index

Re: [PATCH 3/5] powerpc/livepatch: Add livepatch header

2016-04-14 Thread Miroslav Benes
On Thu, 14 Apr 2016, Miroslav Benes wrote: > On Wed, 13 Apr 2016, Michael Ellerman wrote: > > > Add the powerpc specific livepatch definitions. In particular we provide > > a non-default implementation of klp_get_ftrace_location(). > > > > This is required because the location of the mcount

Re: [PATCH 3/5] powerpc/livepatch: Add livepatch header

2016-04-14 Thread Miroslav Benes
On Wed, 13 Apr 2016, Michael Ellerman wrote: > Add the powerpc specific livepatch definitions. In particular we provide > a non-default implementation of klp_get_ftrace_location(). > > This is required because the location of the mcount call is not constant > when using -mprofile-kernel (which

[PATCH 3/5] powerpc/livepatch: Add livepatch header

2016-04-13 Thread Michael Ellerman
Add the powerpc specific livepatch definitions. In particular we provide a non-default implementation of klp_get_ftrace_location(). This is required because the location of the mcount call is not constant when using -mprofile-kernel (which we always do for live patching). Signed-off-by: Torsten