Commit cb4bfacf authored by Menglong Dong's avatar Menglong Dong Committed by Alexei Starovoitov
Browse files

selftests/bpf: test fsession mixed with fentry and fexit



Test the fsession when it is used together with fentry, fexit.

Signed-off-by: default avatarMenglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20260124062008.8657-14-dongml2@chinatelecom.cn


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 8909b3fb
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -161,3 +161,19 @@ int BPF_PROG(test9, int a, int ret)
	test9_exit_result = a == 1 && ret == 2 && *cookie == 0x123456ULL;
	return 0;
}

__u64 test10_result = 0;
SEC("fexit/bpf_fentry_test1")
int BPF_PROG(test10, int a, int ret)
{
	test10_result = a == 1 && ret == 2;
	return 0;
}

__u64 test11_result = 0;
SEC("fentry/bpf_fentry_test1")
int BPF_PROG(test11, int a)
{
	test11_result = a == 1;
	return 0;
}