]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ba75b7ffa0b5e4ed8f9a83aac47f19cd5a7cfdb
treeb3a55d956b993fb1da61b77c666fcef154e46b77
parenta2153c80689496ea2766a76185e56ffc865d54ca
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]