OSDN Git Service

libbpf: attempt to load kernel BTF from sysfs first
authorAndrii Nakryiko <andriin@fb.com>
Tue, 13 Aug 2019 18:54:43 +0000 (11:54 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 13 Aug 2019 21:19:42 +0000 (23:19 +0200)
commita1916a153c254cd0ad13b23bed262ed56922cc7a
tree5534805c878ae24eb57d84b6d784c1f6f4b4cd7c
parent7fd785685e2243bb639b31557e258d11464c3489
libbpf: attempt to load kernel BTF from sysfs first

Add support for loading kernel BTF from sysfs (/sys/kernel/btf/vmlinux)
as a target BTF. Also extend the list of on disk search paths for
vmlinux ELF image with entries that perf is searching for.

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