linux-bl808/tools/bpf/bpftool
Paul Chaignon b22bf1b997 bpftool: Refactor misc. feature probe
There is currently a single miscellaneous feature probe,
HAVE_LARGE_INSN_LIMIT, to check for the 1M instructions limit in the
verifier. Subsequent patches will add additional miscellaneous probes,
which follow the same pattern at the existing probe. This patch
therefore refactors the probe to avoid code duplication in subsequent
patches.

The BPF program type and the checked error numbers in the
HAVE_LARGE_INSN_LIMIT probe are changed to better generalize to other
probes. The feature probe retains its current behavior despite those
changes.

Signed-off-by: Paul Chaignon <paul@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/956c9329a932c75941194f91790d01f31dfbe01b.1641314075.git.paul@isovalent.com
2022-01-05 13:31:40 +01:00
..
bash-completion bpftool: Update the lists of names for maps and prog-attach types 2021-11-14 18:35:02 -08:00
Documentation bpftool: Update doc (use susbtitutions) and test_bpftool_synctypes.py 2021-11-16 13:56:22 +01:00
skeleton
.gitignore bpftool: Fix SPDX tag for Makefiles and .gitignore 2021-11-10 09:00:52 -08:00
btf.c bpftool: Use libbpf_get_error() to check error 2021-11-14 18:38:13 -08:00
btf_dumper.c
cfg.c
cfg.h
cgroup.c
common.c bpftool: Update the lists of names for maps and prog-attach types 2021-11-14 18:35:02 -08:00
feature.c bpftool: Refactor misc. feature probe 2022-01-05 13:31:40 +01:00
gen.c bpftool: Switch bpf_object__load_xattr() to bpf_object__load() 2021-12-10 15:29:18 -08:00
iter.c bpftool: Use libbpf_get_error() to check error 2021-11-14 18:38:13 -08:00
jit_disasm.c
json_writer.c
json_writer.h
link.c
main.c bpftool: Enable line buffering for stdout 2021-12-21 15:44:51 -08:00
main.h bpftool: Enable libbpf's strict mode by default 2021-11-12 16:54:58 +01:00
Makefile bpftool: Enable cross-building with clang 2021-12-16 12:15:05 -08:00
map.c bpftool: Migrate off of deprecated bpf_create_map_xattr() API 2021-12-02 15:23:40 -08:00
map_perf_ring.c bpftool: Update btf_dump__new() and perf_buffer__new_raw() calls 2021-11-11 16:54:06 -08:00
net.c
netlink_dumper.c
netlink_dumper.h
perf.c
pids.c
prog.c bpftool: Switch bpf_object__load_xattr() to bpf_object__load() 2021-12-10 15:29:18 -08:00
struct_ops.c bpftool: Switch bpf_object__load_xattr() to bpf_object__load() 2021-12-10 15:29:18 -08:00
tracelog.c
xlated_dumper.c
xlated_dumper.h