]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpftool: Use libbpf's btf__parse() API for parsing BTF from file
authorAndrii Nakryiko <andriin@fb.com>
Sun, 2 Aug 2020 01:32:18 +0000 (18:32 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 3 Aug 2020 14:39:48 +0000 (16:39 +0200)
commit9dfe633b1426a5fbf4ec528ba30641cf38b6045b
tree8f37ce4091a464062dc007399b41868ece56eff2
parent801dfb49c1134d3169e6905ffb94f6ae7c7c3474
tools/bpftool: Use libbpf's btf__parse() API for parsing BTF from file

Use generic libbpf API to parse BTF data from file, instead of re-implementing
it in bpftool.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200802013219.864880-3-andriin@fb.com
tools/bpf/bpftool/btf.c