summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorYuan Chen <chenyuan@kylinos.cn>2026-06-10 22:50:53 +0800
committerAndrii Nakryiko <andrii@kernel.org>2026-07-01 13:43:47 -0700
commitd262a25d8b58b697b2a1a2fe4b0078446cc00e11 (patch)
tree96c43ceed711a759157533ad87886d7c43d6b8c8 /tools/perf/scripts/python/bin/stackcollapse-record
parent2ce3f548cfc6a1fe4c53479cf8a21931cdfd51d8 (diff)
libbpf: Skip bpf_object__probe_loading() when BPF token is in use
bpf_object__probe_loading() tries to load trivial SOCKET_FILTER and TRACEPOINT programs to verify the BPF environment works. When a BPF token is in use with restricted program type permissions, these probe loads may fail because the token does not allow the specific program types, even though BPF loading is perfectly functional. Fix by skipping the probe when a token FD is present: BPF token creation itself proves the kernel has a working BPF subsystem. Real BPF issues will be caught during actual program and map loading. Signed-off-by: Yuan Chen <chenyuan@kylinos.cn> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260610145059.113412-2-chenyuan_fl@163.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions