OSDN Git Service

selftests/bpf: add CO-RE relocs testing setup
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:39:53 +0000 (14:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commitdf36e621418b0de4d4afec5f8002d45ee636bb5c
treec52d643b437eac0a4b7d95446ee9eebdb3c3d236
parent2dc26d5a4f2e97364542030a4a51e4a50c14bae3
selftests/bpf: add CO-RE relocs testing setup

Add CO-RE relocation test runner. Add one simple test validating that
libbpf's logic for searching for kernel image and loading BTF out of it
works.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/core_reloc.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_core_reloc_kernel.c [new file with mode: 0644]