• Q
    tools: bpftool: add bash completion for bpftool · 995231c8
    Quentin Monnet 提交于
    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: NQuentin Monnet <quentin.monnet@netronome.com>
    Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    995231c8
Makefile 2.1 KB