diff options
| author | Andrii Nakryiko <[email protected]> | 2021-08-15 07:06:04 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2021-08-16 22:45:08 +0000 |
| commit | 47faff371755ba0f1ad76e2df7f5003377d974a5 (patch) | |
| tree | fe153bf46bdcfd9db8f22cdcfd18b1ebba2ea3c4 /net/unix/unix_bpf.c | |
| parent | libbpf: Add bpf_cookie support to bpf_link_create() API (diff) | |
| download | kernel-47faff371755ba0f1ad76e2df7f5003377d974a5.tar.gz kernel-47faff371755ba0f1ad76e2df7f5003377d974a5.zip | |
libbpf: Add bpf_cookie to perf_event, kprobe, uprobe, and tp attach APIs
Wire through bpf_cookie for all attach APIs that use perf_event_open under the
hood:
- for kprobes, extend existing bpf_kprobe_opts with bpf_cookie field;
- for perf_event, uprobe, and tracepoint APIs, add their _opts variants and
pass bpf_cookie through opts.
For kernel that don't support BPF_LINK_CREATE for perf_events, and thus
bpf_cookie is not supported either, return error and log warning for user.
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
