diff options
author | Stanislav Fomichev <sdf@google.com> | 2018-11-09 17:21:45 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-11 00:56:11 +0100 |
commit | 3767a94b3253fc8c3df96913d7dec796619161c7 (patch) | |
tree | a7348ea5d18eb6f6283a1325ff5fd31e2ceda59b /tools/bpf/bpftool/bash-completion | |
parent | bpftool: add loadall command (diff) | |
download | linux-3767a94b3253fc8c3df96913d7dec796619161c7.tar.xz linux-3767a94b3253fc8c3df96913d7dec796619161c7.zip |
bpftool: add pinmaps argument to the load/loadall
This new additional argument lets users pin all maps from the object at
specified path.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/bash-completion')
-rw-r--r-- | tools/bpf/bpftool/bash-completion/bpftool | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool index 780ebafb756a..a05d0071f39f 100644 --- a/tools/bpf/bpftool/bash-completion/bpftool +++ b/tools/bpf/bpftool/bash-completion/bpftool @@ -346,7 +346,7 @@ _bpftool() _bpftool_get_map_ids return 0 ;; - pinned) + pinned|pinmaps) _filedir return 0 ;; @@ -358,6 +358,7 @@ _bpftool() COMPREPLY=( $( compgen -W "map" -- "$cur" ) ) _bpftool_once_attr 'type' _bpftool_once_attr 'dev' + _bpftool_once_attr 'pinmaps' return 0 ;; esac |