aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorQuentin Monnet <[email protected]>2022-04-04 14:09:44 +0000
committerAndrii Nakryiko <[email protected]>2022-04-04 21:46:15 +0000
commit4eeebce6ac4ad80ee8243bb847c98e0e55848d47 (patch)
tree8f626a3472aa33e2a05956fd4f55d0fb2e30faa7 /tools/bpf/bpftool/prog.c
parentsamples: bpf: Fix linking xdp_router_ipv4 after migration (diff)
downloadkernel-4eeebce6ac4ad80ee8243bb847c98e0e55848d47.tar.gz
kernel-4eeebce6ac4ad80ee8243bb847c98e0e55848d47.zip
selftests/bpf: Fix parsing of prog types in UAPI hdr for bpftool sync
The script for checking that various lists of types in bpftool remain in sync with the UAPI BPF header uses a regex to parse enum bpf_prog_type. If this enum contains a set of values different from the list of program types in bpftool, it complains. This script should have reported the addition, some time ago, of the new BPF_PROG_TYPE_SYSCALL, which was not reported to bpftool's program types list. It failed to do so, because it failed to parse that new type from the enum. This is because the new value, in the BPF header, has an explicative comment on the same line, and the regex does not support that. Let's update the script to support parsing enum values when they have comments on the same line. Signed-off-by: Quentin Monnet <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions