linux_dsm_epyc7002/tools/bpf/bpftool
Quentin Monnet 995231c820 tools: bpftool: add bash completion for bpftool
Add a completion file for bash. The completion function runs bpftool
when needed, making it smart enough to help users complete ids or tags
for eBPF programs and maps currently on the system.

Update Makefile to install completion file to
/usr/share/bash-completion/completions when running `make install`.

Emacs file mode and (at the end) Vim modeline have been added, to keep
the style in use for most existing bash completion files. In this, it
differs from tools/perf/perf-completion.sh, which seems to be the only
other completion file among the kernel sources repository. This is also
valid for indent style: 4-space indents, as in other completion files.

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-29 18:37:33 +09:00
..
bash-completion tools: bpftool: add bash completion for bpftool 2017-10-29 18:37:33 +09:00
Documentation tools: bpftool: update documentation for --json and --pretty usage 2017-10-24 01:25:09 +01:00
common.c tools: bpftool: try to mount bpffs if required for pinning objects 2017-10-26 17:52:59 +09:00
jit_disasm.c tools: bpftool: add JSON output for bpftool prog dump jited * command 2017-10-24 01:25:08 +01:00
json_writer.c tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
json_writer.h tools: bpftool: add JSON output for bpftool prog dump xlated * command 2017-10-24 01:25:08 +01:00
main.c tools: bpftool: update documentation for --json and --pretty usage 2017-10-24 01:25:09 +01:00
main.h tools: bpftool: try to mount bpffs if required for pinning objects 2017-10-26 17:52:59 +09:00
Makefile tools: bpftool: add bash completion for bpftool 2017-10-29 18:37:33 +09:00
map.c tools: bpftool: update documentation for --json and --pretty usage 2017-10-24 01:25:09 +01:00
prog.c tools: bpftool: update documentation for --json and --pretty usage 2017-10-24 01:25:09 +01:00