Re: arm: Add livepatch arch specific code

2017-01-17 Thread Miroslav Benes
> > But apply_relocate_add() is not implemented on arm yet. I guess it would > > nice to have it... otherwise we could get to an unpleasant situation. > > Livepatch module can rely on its livepatching relocations (that is, there > > are some). apply_relocate_add() returns 0 on arm, so everything s

Re: arm: Add livepatch arch specific code

2017-01-16 Thread Jessica Yu
+++ Jessica Yu [16/01/17 19:22 -0500]: +++ Miroslav Benes [16/01/17 17:47 +0100]: On Tue, 6 Dec 2016, Abel Vesa wrote: klp_get_ftrace_location is used by ftrace to get the entry for a specific function from the mcount list. klp_arch_set_pc is used to set the pc from the regs passed as an argum

Re: arm: Add livepatch arch specific code

2017-01-16 Thread Jessica Yu
+++ Miroslav Benes [16/01/17 17:47 +0100]: On Tue, 6 Dec 2016, Abel Vesa wrote: klp_get_ftrace_location is used by ftrace to get the entry for a specific function from the mcount list. klp_arch_set_pc is used to set the pc from the regs passed as an argument to the ftrace_ops_no_ops function to