scripts/bpf: Add syscall commands printer
authorJoe Stringer <joe@cilium.io>
Tue, 2 Mar 2021 17:19:42 +0000 (09:19 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 5 Mar 2021 02:39:45 +0000 (18:39 -0800)
commita67882a221e348ab1c925b47efdfec8b11272d3f
treef3cd9c0a6127e1720147530050ce1103deb8e1dd
parent923a932c982fd71856f80dbeaaa3ca41a75e89e0
scripts/bpf: Add syscall commands printer

Add a new target to bpf_doc.py to support generating the list of syscall
commands directly from the UAPI headers. Assuming that developer
submissions keep the main header up to date, this should allow the man
pages to be automatically generated based on the latest API changes
rather than requiring someone to separately go back through the API and
describe each command.

Signed-off-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210302171947.2268128-11-joe@cilium.io
scripts/bpf_doc.py