diff options
author | Roman Gushchin <guro@fb.com> | 2018-07-06 14:28:16 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-07 01:38:38 +0200 |
commit | 02000b55850deeadffe433e4b4930a8831f477de (patch) | |
tree | 89a68f60818302aae7f64c034cda6de94b4e2046 /tools/bpf | |
parent | 7d31a0a168979e671e25073c492c29c42610e7e2 (diff) | |
download | linux-stable-02000b55850deeadffe433e4b4930a8831f477de.tar.gz linux-stable-02000b55850deeadffe433e4b4930a8831f477de.tar.bz2 linux-stable-02000b55850deeadffe433e4b4930a8831f477de.zip |
bpftool: add bash completion for cgroup tree command
This commit adds a bash completion to the bpftool cgroup tree
command.
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Jakub Kicinski <jakub.kicinski@netronome.com>
Cc: Quentin Monnet <quentin.monnet@netronome.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/bpf')
-rw-r--r-- | tools/bpf/bpftool/bash-completion/bpftool | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool index fffd76f4998b..ce0bc0cda361 100644 --- a/tools/bpf/bpftool/bash-completion/bpftool +++ b/tools/bpf/bpftool/bash-completion/bpftool @@ -414,6 +414,10 @@ _bpftool() _filedir return 0 ;; + tree) + _filedir + return 0 + ;; attach|detach) local ATTACH_TYPES='ingress egress sock_create sock_ops \ device bind4 bind6 post_bind4 post_bind6 connect4 \ @@ -455,7 +459,7 @@ _bpftool() *) [[ $prev == $object ]] && \ COMPREPLY=( $( compgen -W 'help attach detach \ - show list' -- "$cur" ) ) + show list tree' -- "$cur" ) ) ;; esac ;; |