selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:39:57 +0000 (14:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commitd9db3550300f4390e457c79189e2601c107f9fe6
tree5c097c931205aa519d06738f156dcb8587e61e1e
parent20a9ad2e71368da8e831317f0a545e4bfb31cce1
selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests

Test CO-RE relocation handling of ints, enums, pointers, func protos, etc.

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
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___diff_enum_def.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___diff_func_proto.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___diff_ptr_type.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___err_non_enum.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___err_non_int.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_primitives___err_non_ptr.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h
tools/testing/selftests/bpf/progs/test_core_reloc_primitives.c [new file with mode: 0644]