diff options
| author | Jiayuan Chen <[email protected]> | 2025-05-16 14:47:02 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-05-27 17:31:20 +0000 |
| commit | 1ae7a84ed85317b12a3395470f0cfcc900b2a61a (patch) | |
| tree | fa66b2c3432e424c9fed17c17eddc38ef458c829 /tools/bpf/bpftool/bash-completion | |
| parent | selftests/bpf: Add unit tests with __bpf_trap() kfunc (diff) | |
| download | kernel-1ae7a84ed85317b12a3395470f0cfcc900b2a61a.tar.gz kernel-1ae7a84ed85317b12a3395470f0cfcc900b2a61a.zip | |
bpftool: Add support for custom BTF path in prog load/loadall
This patch exposes the btf_custom_path feature to bpftool, allowing users
to specify a custom BTF file when loading BPF programs using prog load or
prog loadall commands.
The argument 'btf_custom_path' in libbpf is used for those kernels that
don't have CONFIG_DEBUG_INFO_BTF enabled but still want to perform CO-RE
relocations.
Suggested-by: Quentin Monnet <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Signed-off-by: Jiayuan Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/bash-completion')
| -rw-r--r-- | tools/bpf/bpftool/bash-completion/bpftool | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/bash-completion/bpftool b/tools/bpf/bpftool/bash-completion/bpftool index 1ce409a6cbd9..27512feb5c70 100644 --- a/tools/bpf/bpftool/bash-completion/bpftool +++ b/tools/bpf/bpftool/bash-completion/bpftool @@ -505,13 +505,13 @@ _bpftool() _bpftool_get_map_names return 0 ;; - pinned|pinmaps) + pinned|pinmaps|kernel_btf) _filedir return 0 ;; *) COMPREPLY=( $( compgen -W "map" -- "$cur" ) ) - _bpftool_once_attr 'type pinmaps autoattach' + _bpftool_once_attr 'type pinmaps autoattach kernel_btf' _bpftool_one_of_list 'offload_dev xdpmeta_dev' return 0 ;; |
