selftests/bpf: Add split BTF basic test
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Nov 2020 04:33:55 +0000 (20:33 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Nov 2020 02:37:30 +0000 (18:37 -0800)
commit197389da2fbfbc3cefb229268c32d858d9575c96
tree9dcf2f870a918f7d46969d18479fc4d348b992af
parentba451366bf44498f22dd16c31a792083bd6f2ae1
selftests/bpf: Add split BTF basic test

Add selftest validating ability to programmatically generate and then dump
split BTF.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20201105043402.2530976-6-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/btf_split.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_progs.h