selftests/bpf: Add struct argument tests with fentry/fexit programs.
authorYonghong Song <yhs@fb.com>
Wed, 31 Aug 2022 15:27:13 +0000 (08:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 7 Sep 2022 02:51:14 +0000 (19:51 -0700)
commit1642a3945e223a922312fab2401ecdf58b3825b9
tree895a5763cbbec0c272a28e5e3d5253318f40c51e
parent34586d29f8dfc4ae30642c5b9a4db8a4a7af6869
selftests/bpf: Add struct argument tests with fentry/fexit programs.

Add various struct argument tests with fentry/fexit programs.
Also add one test with a kernel func which does not have any
argument to test BPF_PROG2 macro in such situation.

Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220831152713.2080039-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
tools/testing/selftests/bpf/prog_tests/tracing_struct.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/tracing_struct.c [new file with mode: 0644]