diff options
author | Andrii Nakryiko <[email protected]> | 2022-10-05 21:24:52 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-10-06 08:19:30 -0700 |
commit | ce3e44a09dce74ca68fa56c23333378d936969b0 (patch) | |
tree | 178a34cb6db8de0afb364f28f39c027566e83df1 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 8a76145a2ec2a81dfe34d7ac42e8c242f095e8c8 (diff) |
scripts/bpf_doc.py: update logic to not assume sequential enum values
Relax bpf_doc.py's expectation of all BPF_FUNC_xxx enumerators having
sequential values increasing by one. Instead, only make sure that
relative order of BPF helper descriptions in comments matches
enumerators definitions order.
Also additionally make sure that helper IDs are not duplicated.
And also make sure that for cases when we have multiple descriptions for
the same BPF helper (e.g., for bpf_get_socket_cookie()), all such
descriptions are grouped together.
Such checks should capture all the same (and more) issues in upstream
UAPI headers, but also handle backported kernels correctly.
Reported-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions