Re: [PATCH v8 4/5] arm64: implement ftrace with regs

2019-02-13 Thread Julien Thierry
Hi Torsten, On 08/02/2019 15:10, Torsten Duwe wrote: > Implement ftrace with regs, based on the new gcc flag > -fpatchable-function-entry (=2) > > Now that gcc8 added 2 NOPs at the beginning of each function, replace > the first NOP thus generated with a quick LR saver (move it to scratch > reg x

[PATCH v8 4/5] arm64: implement ftrace with regs

2019-02-08 Thread Torsten Duwe
Implement ftrace with regs, based on the new gcc flag -fpatchable-function-entry (=2) Now that gcc8 added 2 NOPs at the beginning of each function, replace the first NOP thus generated with a quick LR saver (move it to scratch reg x9), so the 2nd replacement insn, the call to ftrace, does not clob