]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: use btf__parse_elf to check presence of BTF/BTF.ext
authorAndrii Nakryiko <andriin@fb.com>
Fri, 24 May 2019 18:58:59 +0000 (11:58 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 24 May 2019 21:05:57 +0000 (14:05 -0700)
commit4a411b8653e57b26d393daebe6215008feb9348b
treea86b5801940c7c73fc38e97abf7fdcf71eff6708
parent6badf4c91ce89343ecd135ec9a9e8099dad3be48
selftests/bpf: use btf__parse_elf to check presence of BTF/BTF.ext

Switch test_btf.c to rely on btf__parse_elf to check presence of BTF and
BTF.ext data, instead of implementing its own ELF parsing.

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