tools: bpftool: add bash completion for CFG dump
authorQuentin Monnet <quentin.monnet@netronome.com>
Fri, 2 Mar 2018 02:01:23 +0000 (18:01 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 2 Mar 2018 02:29:49 +0000 (18:29 -0800)
commitd96fc832bcb6269d96e33d506f33033d7ed08598
treec9d40bc77d803eeea1d26b3e8a6c78467606a704
parentb6c1cedb4935a99d315827b990b23230b0eb13f5
tools: bpftool: add bash completion for CFG dump

Add bash completion for the "visual" keyword used for dumping the CFG of
eBPF programs with bpftool. Make sure we only complete with this keyword
when we dump "xlated" (and not "jited") instructions.

Acked-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/bash-completion/bpftool