diff options
| author | 2026-10-16 22:20:13 +0800 | |
|---|---|---|
| committer | 2026-10-16 16:47:47 +0000 | |
| commit | 09ec92d707236e4af9484092e470078c238531d5 (patch) | |
| tree | 9ab0679fd028a10fc5a1a7a6c107fc8eae3a7601 /scripts/Makefile.thinlto | |
| parent | selftests/bpf: Fix spelling mistakes in descr literal strings (diff) | |
bpf: Initialize ftrace_managed in bpf_trampoline_get()
A trampoline managed by ftrace is determined by its target, that said
ftrace_managed is already known when the trampoline is initialized. so,
set 'ftrace_managed = tr->ip != 0' in bpf_trampoline_get() instead of
relying on the first regular or tracing_multi attachment to set it.
This makes the backend selection independent of attachment order and keeps
the registration callbacks focused on installing the trampoline.
No functional change intended.
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://patch.msgid.link/20261016142014.12420-2-leon.hwang@linux.dev
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
