Re: [PATCH 17/17] powerpc/ftrace: Create a dummy stackframe to fix stack unwind

2023-06-28 Thread Naveen N Rao
Christophe Leroy wrote: Le 19/06/2023 à 11:47, Naveen N Rao a écrit : With ppc64 -mprofile-kernel and ppc32 -pg, profiling instructions to call into ftrace are emitted right at function entry. The instruction sequence used is minimal to reduce overhead. Crucially, a stackframe is not created f

Re: [PATCH 17/17] powerpc/ftrace: Create a dummy stackframe to fix stack unwind

2023-06-22 Thread Christophe Leroy
Le 19/06/2023 à 11:47, Naveen N Rao a écrit : > With ppc64 -mprofile-kernel and ppc32 -pg, profiling instructions to > call into ftrace are emitted right at function entry. The instruction > sequence used is minimal to reduce overhead. Crucially, a stackframe is > not created for the function bei

[PATCH 17/17] powerpc/ftrace: Create a dummy stackframe to fix stack unwind

2023-06-19 Thread Naveen N Rao
With ppc64 -mprofile-kernel and ppc32 -pg, profiling instructions to call into ftrace are emitted right at function entry. The instruction sequence used is minimal to reduce overhead. Crucially, a stackframe is not created for the function being traced. This breaks stack unwinding since the functio