Re: [PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-29 Thread AKASHI Takahiro
On Fri, Aug 17, 2018 at 12:27:24PM +0200, Torsten Duwe wrote: > Check for compiler support of -fpatchable-function-entry and use it > to intercept functions immediately on entry, saving the LR in x9. > Disable ftracing in efi/libstub, because this triggers cross-section > linker errors now (-pg is

Re: [PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-19 Thread Ard Biesheuvel
On 17 August 2018 at 12:27, Torsten Duwe wrote: > Check for compiler support of -fpatchable-function-entry and use it > to intercept functions immediately on entry, saving the LR in x9. Could you please add a note that this is safe because IPA register allocation is turned off as well by that opt

Re: [PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-17 Thread Julien Thierry
Hi Torsten, On 17/08/18 11:27, Torsten Duwe wrote: Check for compiler support of -fpatchable-function-entry and use it to intercept functions immediately on entry, saving the LR in x9. Disable ftracing in efi/libstub, because this triggers cross-section linker errors now (-pg is disabled already

[PATCH v2 1/3] arm64: implement ftrace with regs

2018-08-17 Thread Torsten Duwe
Check for compiler support of -fpatchable-function-entry and use it to intercept functions immediately on entry, saving the LR in x9. Disable ftracing in efi/libstub, because this triggers cross-section linker errors now (-pg is disabled already for those files). Add an ftrace_caller which can hand