]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc6c47746513aef1c658e162df6668eb4a5703cb
treeac6c8d467949cdb304024b3aff5bd113e3bff3c6
parentd9ea0b1a011043aea0cc144f226ad0906b48423b
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]