[PATCH bpf-next 0/2] bpf: Two trampoline cleanups

From: Leon Hwang

Date: Fri Oct 16 2026 - 10:24:00 EST


Split these two cleanups for trampoline from the series
"[PATCH bpf-next v2 00/21] bpf: Add tracing_multi link support for bpf progs" [1].

Since the tr->ip is ftrace_location()-ed in bpf_trampoline_lookup(), no
need to call ftrace_location(tr->ip) again in
register/unregister/modify_fentry_multi(). Also no need to call
ftrace_location() for the target addr in register_fentry(), when
initialize ftrace_managed in bpf_trampoline_get().

Links:
[1] https://lore.kernel.org/bpf/20261012154024.29423-1-leon.hwang@xxxxxxxxx/

Leon Hwang (2):
bpf: Initialize ftrace_managed in bpf_trampoline_get()
bpf: Drop unnecessary ftrace_location() in
register/unregister/modify_fentry_multi()

kernel/bpf/trampoline.c | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)

--
2.55.0