]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tools/bpftool: Auto-detect split BTFs in common cases
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 2 Dec 2020 06:52:43 +0000 (22:52 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 3 Dec 2020 18:17:27 +0000 (10:17 -0800)
commitfa4528379a51ff8d5271e1bcfa0d5ef71657869f
tree9203cdc0ece7dedcbd35572e2f089410c5af882c
parent0cfdcd6378071f383c900e3d8862347e2af1d1ca
tools/bpftool: Auto-detect split BTFs in common cases

In case of working with module's split BTF from /sys/kernel/btf/*,
auto-substitute /sys/kernel/btf/vmlinux as the base BTF. This makes using
bpftool with module BTFs faster and simpler.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201202065244.530571-4-andrii@kernel.org
tools/bpf/bpftool/btf.c