]> git.ipfire.org Git - thirdparty/linux.git/commit
ftrace: Factor ftrace_ops ops_func interface
authorJiri Olsa <jolsa@kernel.org>
Tue, 30 Dec 2025 14:50:09 +0000 (15:50 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 28 Jan 2026 19:44:57 +0000 (11:44 -0800)
commit956747efd82aa60e0ac3e6aef2b9a17adda6f3b1
treeac9aeef089007008a58c66ea5b9c730b5883ead7
parent7d0452497c292153e690652e6df218fead21185f
ftrace: Factor ftrace_ops ops_func interface

We are going to remove "ftrace_ops->private == bpf_trampoline" setup
in following changes.

Adding ip argument to ftrace_ops_func_t callback function, so we can
use it to look up the trampoline.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/bpf/20251230145010.103439-9-jolsa@kernel.org
include/linux/ftrace.h
kernel/bpf/trampoline.c
kernel/trace/ftrace.c