]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: add testcases for fsession
authorMenglong Dong <menglong8.dong@gmail.com>
Sat, 24 Jan 2026 06:20:05 +0000 (14:20 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 25 Jan 2026 02:49:36 +0000 (18:49 -0800)
commitf7afef5617b685c3491db3593ca09abc33815774
tree58047bf4664e3919e1c173238b313afbc02526b2
parent85fc4be6d811372f8f9a2a131a092735418fdbf2
selftests/bpf: add testcases for fsession

Add testcases for BPF_TRACE_FSESSION. The function arguments and return
value are tested both in the entry and exit. And the kfunc
bpf_session_is_ret() is also tested.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20260124062008.8657-11-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/fsession_test.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/fsession_test.c [new file with mode: 0644]