selftests/bpf: add CO-RE relocs array tests
authorAndrii Nakryiko <andriin@fb.com>
Wed, 7 Aug 2019 21:39:56 +0000 (14:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Aug 2019 21:43:49 +0000 (14:43 -0700)
commit20a9ad2e71368da8e831317f0a545e4bfb31cce1
treeb3a55d956b993fb1da61b77c666fcef154e46b77
parentec6438a988a43dcb03f0a04f3f51a48aba54764a
selftests/bpf: add CO-RE relocs array tests

Add tests for various array handling/relocation scenarios.

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_arrays.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___diff_arr_dim.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___diff_arr_val_sz.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_non_array.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_too_shallow.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_too_small.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_wrong_val_type1.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_wrong_val_type2.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h
tools/testing/selftests/bpf/progs/test_core_reloc_arrays.c [new file with mode: 0644]