Re: [PATCH v2 1/2] ftrace: Make ftrace_regs abstract from direct use

2024-10-09 Thread Heiko Carstens
On Tue, Oct 08, 2024 at 07:05:28PM -0400, Steven Rostedt wrote: > From: Steven Rostedt > > ftrace_regs was created to hold registers that store information to save > function parameters, return value and stack. Since it is a subset of > pt_regs, it should only be used by its accessor functions. B

Re: [PATCH v2 1/2] ftrace: Make ftrace_regs abstract from direct use

2024-10-08 Thread Google
On Tue, 08 Oct 2024 19:05:28 -0400 Steven Rostedt wrote: > From: Steven Rostedt > > ftrace_regs was created to hold registers that store information to save > function parameters, return value and stack. Since it is a subset of > pt_regs, it should only be used by its accessor functions. But be

[PATCH v2 1/2] ftrace: Make ftrace_regs abstract from direct use

2024-10-08 Thread Steven Rostedt
From: Steven Rostedt ftrace_regs was created to hold registers that store information to save function parameters, return value and stack. Since it is a subset of pt_regs, it should only be used by its accessor functions. But because pt_regs can easily be taken from ftrace_regs (on most archs), i