summaryrefslogtreecommitdiff
path: root/tools/bpf
diff options
context:
space:
mode:
authorWang Yufen <wangyufen@huawei.com>2022-10-14 16:31:15 +0800
committerAlexei Starovoitov <ast@kernel.org>2022-10-21 08:59:00 -0700
commitb81a677400755cf24c971d1342c4c53d81744d82 (patch)
tree8d5115bda73ae059ec3ea18873d3b86f9a1ba9df /tools/bpf
parentff0e9a579ec9f12cb4fec9bd94b15e3d613a1a77 (diff)
downloadlinux-rpi-b81a677400755cf24c971d1342c4c53d81744d82.tar.gz
linux-rpi-b81a677400755cf24c971d1342c4c53d81744d82.tar.bz2
linux-rpi-b81a677400755cf24c971d1342c4c53d81744d82.zip
bpftool: Update the bash completion(add autoattach to prog load)
Add autoattach optional to prog load|loadall for supporting one-step load-attach-pin_link. Signed-off-by: Wang Yufen <wangyufen@huawei.com> Link: https://lore.kernel.org/r/1665736275-28143-4-git-send-email-wangyufen@huawei.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf')
-rw-r--r--tools/bpf/bpftool/bash-completion/bpftool1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool
index dc1641e3670e..2957b42cab67 100644
--- a/tools/bpf/bpftool/bash-completion/bpftool
+++ b/tools/bpf/bpftool/bash-completion/bpftool
@@ -505,6 +505,7 @@ _bpftool()
_bpftool_once_attr 'type'
_bpftool_once_attr 'dev'
_bpftool_once_attr 'pinmaps'
+ _bpftool_once_attr 'autoattach'
return 0
;;
esac