diff options
author | Jiri Olsa <jolsa@kernel.org> | 2024-05-31 21:45:00 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-05-31 14:54:48 -0700 |
commit | aeb8fe0283d4d3b0f27a87c5f5c938e7324f7d8f (patch) | |
tree | 201b1e04eaab996d844cc22683aecb263ef35d75 /scripts/Makefile | |
parent | 62da3acd28955e7299babebdfcb14243b789e773 (diff) |
bpf: Fix bpf_session_cookie BTF_ID in special_kfunc_set list
The bpf_session_cookie is unavailable for !CONFIG_FPROBE as reported
by Sebastian [1].
To fix that we remove CONFIG_FPROBE ifdef for session kfuncs, which
is fine, because there's filter for session programs.
Then based on bpf_trace.o dependency:
obj-$(CONFIG_BPF_EVENTS) += bpf_trace.o
we add bpf_session_cookie BTF_ID in special_kfunc_set list dependency
on CONFIG_BPF_EVENTS.
[1] https://lore.kernel.org/bpf/20240531071557.MvfIqkn7@linutronix.de/T/#m71c6d5ec71db2967288cb79acedc15cc5dbfeec5
Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Suggested-by: Alexei Starovoitov <ast@kernel.org>
Fixes: 5c919acef8514 ("bpf: Add support for kprobe session cookie")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20240531194500.2967187-1-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile')
0 files changed, 0 insertions, 0 deletions