Thread (11 messages) 11 messages, 4 authors, 2024-12-11

Re: [PATCH v2 2/2] ftrace: Consolidate ftrace_regs accessor functions for archs using pt_regs

From: Heiko Carstens <hca@linux.ibm.com>
Date: 2024-10-09 09:37:54
Also in: linux-arch, linux-arm-kernel, linux-riscv, linux-s390, linux-trace-kernel, lkml, loongarch

On Tue, Oct 08, 2024 at 07:05:29PM -0400, Steven Rostedt wrote:
From: Steven Rostedt <rostedt@goodmis.org>

Most architectures use pt_regs within ftrace_regs making a lot of the
accessor functions just calls to the pt_regs internally. Instead of
duplication this effort, use a HAVE_ARCH_FTRACE_REGS for architectures
that have their own ftrace_regs that is not based on pt_regs and will
define all the accessor functions, and for the architectures that just use
pt_regs, it will leave it undefined, and the default accessor functions
will be used.

Note, this will also make it easier to add new accessor functions to
ftrace_regs as it will mean having to touch less architectures.

Suggested-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
...
 arch/s390/include/asm/ftrace.h      | 26 +--------------------
Acked-by: Heiko Carstens <hca@linux.ibm.com> # s390
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help