selftests/bpf: add btf_dump BTF-to-C conversion tests
authorAndrii Nakryiko <andriin@fb.com>
Fri, 24 May 2019 18:59:04 +0000 (11:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 24 May 2019 21:05:58 +0000 (14:05 -0700)
commit2d2a3ad872f884d618f11e1a2028cff862503dcd
treeac6c8d467949cdb304024b3aff5bd113e3bff3c6
parent351131b51c7a27daf0fbdce80b619b8d130374c6
selftests/bpf: add btf_dump BTF-to-C conversion tests

Add new test_btf_dump set of tests, validating BTF-to-C conversion
correctness. Tests rely on clang to generate BTF from provided C test
cases.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_multidim.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_namespacing.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_ordering.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_packing.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_padding.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_btf_dump.c [new file with mode: 0644]