]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit8526df04570f5698c97ac661ad1f2f35293557a7
tree8f37ce4091a464062dc007399b41868ece56eff2
parent94a1fedd63edb672933bef44ca9213937e377c05
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