selftests/bpf: Test subskeleton functionality
authorDelyan Kratunov <delyank@fb.com>
Wed, 16 Mar 2022 23:37:31 +0000 (23:37 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 18 Mar 2022 06:12:48 +0000 (23:12 -0700)
commit3cccbaa0332169d4ff05587062a7ed528aeddb60
tree0d4e0cc3507328c62a20e13f324d2412af5c6108
parent00389c58ffe993782a8ba4bb5a34a102b1f6fe24
selftests/bpf: Test subskeleton functionality

This patch changes the selftests/bpf Makefile to also generate
a subskel.h for every skel.h it would have normally generated.

Separately, it also introduces a new subskeleton test which tests
library objects, externs, weak symbols, kconfigs, and user maps.

Signed-off-by: Delyan Kratunov <delyank@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/1bd24956940bbbfe169bb34f7f87b11df52ef011.1647473511.git.delyank@fb.com
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/subskeleton.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_subskeleton.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_subskeleton_lib.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_subskeleton_lib2.c [new file with mode: 0644]