]> Gentwo Git Trees - linux/.git/commit
tracing: fprobe: use ftrace if CONFIG_DYNAMIC_FTRACE_WITH_ARGS
authorMenglong Dong <menglong8.dong@gmail.com>
Mon, 3 Nov 2025 06:34:34 +0000 (14:34 +0800)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Nov 2025 13:32:10 +0000 (22:32 +0900)
commitcd06078a38aaedfebbf8fa0c009da0f99f4473fb
tree5df8a021c4a2fb08acd4d9a1a0e47a101cacb818
parent08ed5c81f6058bd7d6cd28d1750667ad3ceee3d1
tracing: fprobe: use ftrace if CONFIG_DYNAMIC_FTRACE_WITH_ARGS

For now, we will use ftrace for the fprobe if fp->exit_handler not exists
and CONFIG_DYNAMIC_FTRACE_WITH_REGS is enabled.

However, CONFIG_DYNAMIC_FTRACE_WITH_REGS is not supported by some arch,
such as arm. What we need in the fprobe is the function arguments, so we
can use ftrace for fprobe if CONFIG_DYNAMIC_FTRACE_WITH_ARGS is enabled.

Therefore, use ftrace if CONFIG_DYNAMIC_FTRACE_WITH_REGS or
CONFIG_DYNAMIC_FTRACE_WITH_ARGS enabled.

Link: https://lore.kernel.org/all/20251103063434.47388-1-dongml2@chinatelecom.cn/
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
kernel/trace/fprobe.c