Re: [PATCH v16 01/18] tracing: Use arch_ftrace_regs() for ftrace_regs_*() macros
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-10-15 21:27:39
Also in:
bpf, linux-arch, lkml
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2024-10-15 21:27:39
Also in:
bpf, linux-arch, lkml
FYI, for anything to do with function hooks (fentry), the subject should be "ftrace:" not "tracing:". Tracing has to do with the tracing infrastructure, whereas ftrace is the function hook infrastructure. I just accepted the first two patches of this series and made the changes to the subjects. If a change is for function graph infrastructure specifically, you can use "fgraph:" instead. -- Steve On Tue, 15 Oct 2024 10:28:43 +0900 "Masami Hiramatsu (Google)" [off-list ref] wrote:
From: Masami Hiramatsu (Google) <mhiramat@kernel.org> Since the arch_ftrace_get_regs(fregs) is only valid when the FL_SAVE_REGS is set, we need to use `&arch_ftrace_regs()->regs` for ftrace_regs_*() APIs because those APIs are for ftrace_regs, not complete pt_regs.