]> git.baikalelectronics.ru Git - kernel.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)
commit13ab0c8d5921e60f4b76183930fc0fbce03bf0f3
tree9203cdc0ece7dedcbd35572e2f089410c5af882c
parent1079b49c3dfabd320772622b5751f19ef0701fc3
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