diff options
| author | Leon Hwang <leon.hwang@linux.dev> | 2026-10-16 22:20:13 +0800 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-10-16 16:47:47 +0000 |
| commit | 09ec92d707236e4af9484092e470078c238531d5 (patch) | |
| tree | 9ab0679fd028a10fc5a1a7a6c107fc8eae3a7601 /tools/perf/scripts/python | |
| parent | 760c953525bab88f053e61f1c1a6b2a5f76911c0 (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
