aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorQuentin Monnet <[email protected]>2022-10-20 10:03:32 +0000
committerDaniel Borkmann <[email protected]>2022-10-21 21:41:13 +0000
commit2c76238eaddd7c519f6b5a7ed80f7da6f4e11373 (patch)
treece8d616673b2479dbe4403e2109abdc8f31a6c6a /scripts/bpf_doc.py
parentbpftool: Set binary name to "bpftool" in help and version output (diff)
downloadkernel-2c76238eaddd7c519f6b5a7ed80f7da6f4e11373.tar.gz
kernel-2c76238eaddd7c519f6b5a7ed80f7da6f4e11373.zip
bpftool: Add "bootstrap" feature to version output
Along with the version number, "bpftool version" displays a list of features that were selected at compilation time for bpftool. It would be useful to indicate in that list whether a binary is a bootstrap version of bpftool. Given that an increasing number of components rely on bootstrap versions for generating skeletons, this could help understand what a binary is capable of if it has been copied outside of the usual "bootstrap" directory. To detect a bootstrap version, we simply rely on the absence of implementation for the do_prog() function. To do this, we must move the (unchanged) list of commands before do_version(), which in turn requires renaming this "cmds" array to avoid shadowing it with the "cmds" argument in cmd_select(). Signed-off-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions