]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ftrace: Use arch_ftrace_regs() for ftrace_regs_*() macros
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 15 Oct 2024 01:28:43 +0000 (10:28 +0900)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 15 Oct 2024 21:22:11 +0000 (17:22 -0400)
commit0b582611a8f4270fa357a22a546909b2dd5fc5fe
treee6aa70534db6bdedd605975572bb9c1de0b8c5e6
parente4cf33ca48128d580e25ebe779b7ba7b4b4cf733
ftrace: Use arch_ftrace_regs() for ftrace_regs_*() macros

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.

Cc: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Florent Revest <revest@chromium.org>
Cc: Martin KaFai Lau <martin.lau@linux.dev>
Cc: bpf <bpf@vger.kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Alan Maguire <alan.maguire@oracle.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/172895572290.107311.16057631001860177198.stgit@devnote2
Fixes: e4cf33ca4812 ("ftrace: Consolidate ftrace_regs accessor functions for archs using pt_regs")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/linux/ftrace_regs.h