summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorEduard Zingerman <eddyz87@gmail.com>2025-06-25 11:24:12 -0700
committerAlexei Starovoitov <ast@kernel.org>2025-06-25 15:13:15 -0700
commitb23e97ffc25294025a68924b6feac9cd431c3eb5 (patch)
tree6a6e57214440f69d84f7c2f30189a58cf14961f6 /tools/perf/scripts/python
parent0967f5399b64aafb0bff1e76bca45446a3e1b6af (diff)
bpf: add bpf_features enum
This commit adds a kernel side enum for use in conjucntion with BTF CO-RE bpf_core_enum_value_exists. The goal of the enum is to assist with available BPF features detection. Intended usage looks as follows: if (bpf_core_enum_value_exists(enum bpf_features, BPF_FEAT_<f>)) ... use feature f ... Signed-off-by: Eduard Zingerman <eddyz87@gmail.com> Link: https://lore.kernel.org/r/20250625182414.30659-2-eddyz87@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions