Re: [PATCH 08/12] powerpc/ftrace: Rework ftrace_caller()

2016-02-25 Thread Torsten Duwe
On Thu, Feb 25, 2016 at 01:28:31AM +1100, Michael Ellerman wrote: > The main change is to just use paca->kernel_toc, rather than a branch to > +4 and mflr etc. That makes the code simpler and should also perform > better. Indeed. > There was also a sequence after ftrace_call() where we load from

Re: [PATCH 08/12] powerpc/ftrace: Rework ftrace_caller()

2016-02-24 Thread Balbir Singh
On 25/02/16 01:28, Michael Ellerman wrote: > The main change is to just use paca->kernel_toc, rather than a branch to > +4 and mflr etc. That makes the code simpler and should also perform > better. > > There was also a sequence after ftrace_call() where we load from > pt_regs->nip, move to LR,

[PATCH 08/12] powerpc/ftrace: Rework ftrace_caller()

2016-02-24 Thread Michael Ellerman
The main change is to just use paca->kernel_toc, rather than a branch to +4 and mflr etc. That makes the code simpler and should also perform better. There was also a sequence after ftrace_call() where we load from pt_regs->nip, move to LR, then a few instructions later load from LRSAVE and move