]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: add fsession support
authorMenglong Dong <menglong8.dong@gmail.com>
Sat, 24 Jan 2026 06:19:56 +0000 (14:19 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 25 Jan 2026 02:49:35 +0000 (18:49 -0800)
commit2d419c44658f75e7655794341a95c0687830f3df
tree0b4ee620358c66e239a874ac9e08f339f69ab88a
parentc7900f225a102219f5fe2c1c93a7dec5467315ee
bpf: add fsession support

The fsession is something that similar to kprobe session. It allow to
attach a single BPF program to both the entry and the exit of the target
functions.

Introduce the struct bpf_fsession_link, which allows to add the link to
both the fentry and fexit progs_hlist of the trampoline.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Co-developed-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20260124062008.8657-2-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
include/uapi/linux/bpf.h
kernel/bpf/btf.c
kernel/bpf/syscall.c
kernel/bpf/trampoline.c
kernel/bpf/verifier.c
net/bpf/test_run.c
net/core/bpf_sk_storage.c
tools/include/uapi/linux/bpf.h
tools/testing/selftests/bpf/prog_tests/tracing_failure.c