Kui-Feng Lee 2fcc82411e 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 <kuifeng@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220510205923.3206889-4-kuifeng@fb.com
2022-05-10 21:58:31 -07:00
..
2022-03-24 19:37:53 -07:00
2022-04-02 10:32:14 -07:00
2022-03-24 13:13:26 -07:00
2021-06-25 19:57:24 -04:00
2022-03-23 11:40:25 -07:00
2022-03-23 11:40:25 -07:00
2022-03-15 10:28:12 +01:00
2022-03-23 11:40:25 -07:00
2022-01-16 10:15:32 +02:00
2022-03-26 14:54:41 -07:00
2022-03-23 11:40:25 -07:00