aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf.c
diff options
context:
space:
mode:
authorKui-Feng Lee <[email protected]>2022-05-10 20:59:21 +0000
committerAndrii Nakryiko <[email protected]>2022-05-11 04:58:31 +0000
commit2fcc82411e74e5e6aba336561cf56fb899bfae4e (patch)
treeb56024a482d12e1bb739e561d7d60acf9e7f731e /tools/lib/bpf/bpf.c
parentbpf, x86: Create bpf_tramp_run_ctx on the caller thread's stack (diff)
downloadkernel-2fcc82411e74e5e6aba336561cf56fb899bfae4e.tar.gz
kernel-2fcc82411e74e5e6aba336561cf56fb899bfae4e.zip
bpf, x86: Attach a cookie to fentry/fexit/fmod_ret/lsm.
Pass a cookie along with BPF_LINK_CREATE requests. Add a bpf_cookie field to struct bpf_tracing_link to attach a cookie. The cookie of a bpf_tracing_link is available by calling bpf_get_attach_cookie when running the BPF program of the attached link. The value of a cookie will be set at bpf_tramp_run_ctx by the trampoline of the link. Signed-off-by: Kui-Feng Lee <[email protected]> Signed-off-by: Alexei Starovoitov <[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