selftests/bpf: Add flexible array relocation tests
authorAndrii Nakryiko <andriin@fb.com>
Sun, 15 Dec 2019 07:08:44 +0000 (23:08 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 16 Dec 2019 00:53:51 +0000 (16:53 -0800)
commit5f2eeceffb92a0d799b141df7af3d1ac77337dc4
treed4caafe2b8a17549f4b088f75beb8044761d7579
parent1b484b301cec404e8a329f05edf848fc0a5875c0
selftests/bpf: Add flexible array relocation tests

Add few tests validation CO-RE relocation handling of flexible array accesses.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191215070844.1014385-3-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___equiv_zero_sz_arr.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___err_bad_zero_sz_arr.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf__core_reloc_arrays___fixed_arr.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