bpftool: Update documentation where progs/maps can be passed by name
authorQuentin Monnet <qmo@kernel.org>
Sat, 13 Apr 2024 01:14:26 +0000 (02:14 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Apr 2024 15:58:25 +0000 (17:58 +0200)
commit986e7663f98ec7441d9d948263ec0dda71e7479f
treecd7b8920e9940a6a8daec85ed3a3b050a63641af
parent1f586614f3ffa80fdf2116b2a1bebcdb5969cef8
bpftool: Update documentation where progs/maps can be passed by name

When using references to BPF programs, bpftool supports passing programs
by name on the command line. The manual pages for "bpftool prog" and
"bpftool map" (for prog_array updates) mention it, but we have a few
additional subcommands that support referencing programs by name but do
not mention it in their documentation. Let's update the pages for
subcommands "btf", "cgroup", and "net".

Similarly, we can reference maps by name when passing them to "bpftool
prog load", so we update the page for "bpftool prog" as well.

Signed-off-by: Quentin Monnet <qmo@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20240413011427.14402-2-qmo@kernel.org
tools/bpf/bpftool/Documentation/bpftool-btf.rst
tools/bpf/bpftool/Documentation/bpftool-cgroup.rst
tools/bpf/bpftool/Documentation/bpftool-net.rst
tools/bpf/bpftool/Documentation/bpftool-prog.rst