]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Rename "bpftool feature list" into "... feature list_builtins"
authorQuentin Monnet <quentin@isovalent.com>
Fri, 1 Jul 2022 09:38:05 +0000 (10:38 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 5 Jul 2022 09:53:54 +0000 (11:53 +0200)
commit3f284cead297d973c2e2a6c64b4c0d1abeba9d0f
tree5bce7c439af48639054db6c51038e460ed42888c
parent51a901dcf1b824c65c4c1492c7b6672eb42c2328
bpftool: Rename "bpftool feature list" into "... feature list_builtins"

To make it more explicit that the features listed with "bpftool feature
list" are known to bpftool, but not necessary available on the system
(as opposed to the probed features), rename the "feature list" command
into "feature list_builtins".

Note that "bpftool feature list" still works as before given that we
recognise arguments from their prefixes; but the real name of the
subcommand, in particular as displayed in the man page or the
interactive help, will now include "_builtins".

Since we update the bash completion accordingly, let's also take this
chance to redirect error output to /dev/null in the completion script,
to avoid displaying unexpected error messages when users attempt to
tab-complete.

Suggested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220701093805.16920-1-quentin@isovalent.com
tools/bpf/bpftool/Documentation/bpftool-feature.rst
tools/bpf/bpftool/bash-completion/bpftool
tools/bpf/bpftool/feature.c