]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: factor out get_func_* tests for fsession
authorMenglong Dong <menglong8.dong@gmail.com>
Tue, 24 Feb 2026 09:22:08 +0000 (17:22 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Mar 2026 16:36:26 +0000 (08:36 -0800)
commitc1eee8d1e84fd199571b09a0b66d3da6a1d160a9
treef5960a4a18c2ded0e5e94edefb8c077c13a6fcb2
parent63d2b7d101267767f2a87921539b2cbbf9cc48b0
selftests/bpf: factor out get_func_* tests for fsession

The fsession is already supported by x86_64, arm64, riscv and s390, so we
don't need to disable it in the compile time according to the
architecture. Factor out the testings for it. Therefore, the testing can
be disabled for the architecture that doesn't support it manually.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20260224092208.1395085-4-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
tools/testing/selftests/bpf/progs/get_func_args_fsession_test.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/get_func_args_test.c
tools/testing/selftests/bpf/progs/get_func_ip_fsession_test.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/get_func_ip_test.c