libbpf: extract BTF loading logic
authorAndrii Nakryiko <andriin@fb.com>
Mon, 17 Jun 2019 19:26:51 +0000 (12:26 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 17 Jun 2019 22:10:12 +0000 (00:10 +0200)
commit9c6660d0406f8c32d21957ca9853108513bea8b1
tree9407c9684bd1e8016248bef3aa3aa0f84f046981
parentd7fe74f9404a9736e9d4f754c30e43640a822c17
libbpf: extract BTF loading logic

As a preparation for adding BTF-based BPF map loading, extract .BTF and
.BTF.ext loading logic.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c