]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: change prototype of bpf_session_{cookie,is_return}
authorMenglong Dong <menglong8.dong@gmail.com>
Sat, 24 Jan 2026 06:19:58 +0000 (14:19 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 25 Jan 2026 02:49:35 +0000 (18:49 -0800)
commit8fe4dc4f6456b3d2c9e6f8aeb1f978b7bff0f6c8
tree03ecc2b143f7964ce4e8595f7daf25b4147b517d
parentf1b56b3cbdb2d2a51d8ea91008eddf4d1d9f277b
bpf: change prototype of bpf_session_{cookie,is_return}

Add the function argument of "void *ctx" to bpf_session_cookie() and
bpf_session_is_return(), which is a preparation of the next patch.

The two kfunc is seldom used now, so it will not introduce much effect
to change their function prototype.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20260124062008.8657-4-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c
kernel/trace/bpf_trace.c
tools/testing/selftests/bpf/bpf_kfuncs.h
tools/testing/selftests/bpf/progs/kprobe_multi_session_cookie.c
tools/testing/selftests/bpf/progs/uprobe_multi_session.c
tools/testing/selftests/bpf/progs/uprobe_multi_session_cookie.c
tools/testing/selftests/bpf/progs/uprobe_multi_session_recursive.c