diff options
author | Mauricio Vásquez <mauricio@kinvolk.io> | 2022-02-15 17:58:52 -0500 |
---|---|---|
committer | Quentin Monnet <qmonnet+github@qoba.lt> | 2022-03-08 09:12:12 +0000 |
commit | 493db63d84b8dc07d6c57940672760d04305612b (patch) | |
tree | 626d68eee720c8280752b6d942e4a069ec640ad1 /bash-completion | |
parent | 89fa7dfe3fba383896697e9ea8dafddf905642ff (diff) | |
download | bpftool-493db63d84b8dc07d6c57940672760d04305612b.tar.gz |
bpftool: Add gen min_core_btf command
This command is implemented under the "gen" command in bpftool and the
syntax is the following:
$ bpftool gen min_core_btf INPUT OUTPUT OBJECT [OBJECT...]
INPUT is the file that contains all the BTF types for a kernel and
OUTPUT is the path of the minimize BTF file that will be created with
only the types needed by the objects.
Signed-off-by: Mauricio Vásquez <mauricio@kinvolk.io>
Signed-off-by: Rafael David Tinoco <rafael.tinoco@aquasec.com>
Signed-off-by: Lorenzo Fontana <lorenzo.fontana@elastic.co>
Signed-off-by: Leonardo Di Donato <leonardo.didonato@elastic.co>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220215225856.671072-4-mauricio@kinvolk.io
Diffstat (limited to 'bash-completion')
-rw-r--r-- | bash-completion/bpftool | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bash-completion/bpftool b/bash-completion/bpftool index 493753a..958e1fd 100644 --- a/bash-completion/bpftool +++ b/bash-completion/bpftool @@ -1003,9 +1003,13 @@ _bpftool() ;; esac ;; + min_core_btf) + _filedir + return 0 + ;; *) [[ $prev == $object ]] && \ - COMPREPLY=( $( compgen -W 'object skeleton help' -- "$cur" ) ) + COMPREPLY=( $( compgen -W 'object skeleton help min_core_btf' -- "$cur" ) ) ;; esac ;; |