aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2024-04-30 11:28:26 +0000
committerAndrii Nakryiko <[email protected]>2024-04-30 16:45:53 +0000
commit5c919acef85147886eb2abf86fb147f94680a8b0 (patch)
tree045b9f1176ff8ddecdf9fe1b31f2b7e19aa4aa16 /tools/lib/bpf/bpf.c
parentbpf: Add support for kprobe session context (diff)
downloadkernel-5c919acef85147886eb2abf86fb147f94680a8b0.tar.gz
kernel-5c919acef85147886eb2abf86fb147f94680a8b0.zip
bpf: Add support for kprobe session cookie
Adding support for cookie within the session of kprobe multi entry and return program. The session cookie is u64 value and can be retrieved be new kfunc bpf_session_cookie, which returns pointer to the cookie value. The bpf program can use the pointer to store (on entry) and load (on return) the value. The cookie value is implemented via fprobe feature that allows to share values between entry and return ftrace fprobe callbacks. Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf.c')
0 files changed, 0 insertions, 0 deletions