OSDN Git Service

tools/bpftool: Add bpftool support for split BTF
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Nov 2020 04:34:01 +0000 (20:34 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Nov 2020 02:37:31 +0000 (18:37 -0800)
commit75fa1777694c245c1e59ac774cb1d58a15ecefeb
treee963ce371e93ab69cf3d88277a18cbe504d31e59
parent232338fa2fb47726ab7c459419115a6ab6bfb3e3
tools/bpftool: Add bpftool support for split BTF

Add ability to work with split BTF by providing extra -B flag, which allows to
specify the path to the base BTF file.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201105043402.2530976-12-andrii@kernel.org
tools/bpf/bpftool/btf.c
tools/bpf/bpftool/main.c
tools/bpf/bpftool/main.h