]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Allow specifying both ELF and raw BTF for CO-RE BTF override
authorAndrii Nakryiko <andriin@fb.com>
Thu, 8 Oct 2020 00:10:23 +0000 (17:10 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 8 Oct 2020 01:50:27 +0000 (18:50 -0700)
commit8ff52566fc783ef380d3e7e3238387496ccf1b0b
treeca5d85b74792a71d3e62010975edf895d1247daa
parenta8f7279b9a9140f3f6208505ea04bad850c4bd40
libbpf: Allow specifying both ELF and raw BTF for CO-RE BTF override

Use generalized BTF parsing logic, making it possible to parse BTF both from
ELF file, as well as a raw BTF dump. This makes it easier to write custom
tests with manually generated BTFs.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201008001025.292064-4-andrii@kernel.org
tools/lib/bpf/libbpf.c