diff options
author | Roman Gushchin <guro@fb.com> | 2018-07-06 17:28:16 -0400 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-06 19:38:38 -0400 |
commit | 02000b55850deeadffe433e4b4930a8831f477de (patch) | |
tree | 89a68f60818302aae7f64c034cda6de94b4e2046 /tools/bpf | |
parent | 7d31a0a168979e671e25073c492c29c42610e7e2 (diff) |
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() | |||
414 | _filedir | 414 | _filedir |
415 | return 0 | 415 | return 0 |
416 | ;; | 416 | ;; |
417 | tree) | ||
418 | _filedir | ||
419 | return 0 | ||
420 | ;; | ||
417 | attach|detach) | 421 | attach|detach) |
418 | local ATTACH_TYPES='ingress egress sock_create sock_ops \ | 422 | local ATTACH_TYPES='ingress egress sock_create sock_ops \ |
419 | device bind4 bind6 post_bind4 post_bind6 connect4 \ | 423 | device bind4 bind6 post_bind4 post_bind6 connect4 \ |
@@ -455,7 +459,7 @@ _bpftool() | |||
455 | *) | 459 | *) |
456 | [[ $prev == $object ]] && \ | 460 | [[ $prev == $object ]] && \ |
457 | COMPREPLY=( $( compgen -W 'help attach detach \ | 461 | COMPREPLY=( $( compgen -W 'help attach detach \ |
458 | show list' -- "$cur" ) ) | 462 | show list tree' -- "$cur" ) ) |
459 | ;; | 463 | ;; |
460 | esac | 464 | esac |
461 | ;; | 465 | ;; |