aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2024-04-30 11:28:25 +0000
committerAndrii Nakryiko <[email protected]>2024-04-30 16:45:53 +0000
commitadf46d88ae4b2557f7e2e02547a25fb866935711 (patch)
treeaa4dd40c1ba688087885a2d0374c790aad2b23ac /tools/lib/bpf/libbpf.c
parentbpf: Add support for kprobe session attach (diff)
downloadkernel-adf46d88ae4b2557f7e2e02547a25fb866935711.tar.gz
kernel-adf46d88ae4b2557f7e2e02547a25fb866935711.zip
bpf: Add support for kprobe session context
Adding struct bpf_session_run_ctx object to hold session related data, which is atm is_return bool and data pointer coming in following changes. Placing bpf_session_run_ctx layer in between bpf_run_ctx and bpf_kprobe_multi_run_ctx so the session data can be retrieved regardless of if it's kprobe_multi or uprobe_multi link, which support is coming in future. This way both kprobe_multi and uprobe_multi can use same kfuncs to access the session data. Adding bpf_session_is_return kfunc that returns true if the bpf program is executed from the exit probe of the kprobe multi link attached in wrapper mode. It returns false otherwise. Adding new kprobe hook for kprobe program type. 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/libbpf.c')
0 files changed, 0 insertions, 0 deletions