bpftool: use libbpf's btf__parse_elf API
authorAndrii Nakryiko <andriin@fb.com>
Fri, 24 May 2019 18:58:58 +0000 (11:58 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 24 May 2019 21:05:57 +0000 (14:05 -0700)
commit58650cc47382af7d87282f53a5b508ac4bf734af
treee90e63a199014f8e230cd8871210b9941c37b9f5
parente6c64855fd7ad565d87b2bd617f4a50d3bdad82f
bpftool: use libbpf's btf__parse_elf API

Use btf__parse_elf() API, provided by libbpf, instead of implementing
ELF parsing by itself.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/btf.c