diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-08-15 10:06:04 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-08-17 01:45:08 +0300 |
commit | 47faff371755ba0f1ad76e2df7f5003377d974a5 (patch) | |
tree | fe153bf46bdcfd9db8f22cdcfd18b1ebba2ea3c4 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3ec84f4b1638495ebff068a668dc417b4de5727e (diff) | |
download | linux-47faff371755ba0f1ad76e2df7f5003377d974a5.tar.xz |
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 <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210815070609.987780-12-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions