aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/recursion.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2024-04-30 13:28:26 +0200
committerAndrii Nakryiko <andrii@kernel.org>2024-04-30 09:45:53 -0700
commit5c919acef85147886eb2abf86fb147f94680a8b0 (patch)
tree045b9f1176ff8ddecdf9fe1b31f2b7e19aa4aa16 /tools/testing/selftests/bpf/prog_tests/recursion.c
parentadf46d88ae4b2557f7e2e02547a25fb866935711 (diff)
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 <jolsa@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20240430112830.1184228-4-jolsa@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursion.c')
0 files changed, 0 insertions, 0 deletions