aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2023-09-06 15:35:17 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-09-13 07:31:19 +0000
commit1589dac7cc47bd39a9102b93f335207e1973a968 (patch)
tree74e515bb7669a9dd50fa31c21215ed53b89d7856 /sys/linux
parent89b81d8a020a3c1f0a2a1efdd3c9d9b5a8916486 (diff)
sys/linux: cover perf cookie in BPF_LINK_CREATE
Commit [1] extended bpf(2) BPF_LINK_CREATE to allow userspace to pass an opaque cookie number for perf BPF links. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=82e6b1eee6a8875ef Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/bpf.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index b278900e6..90a8e8c6c 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -194,9 +194,14 @@ link_create_iter {
iter_info_len bytesize[iter_info, int32]
}
+link_create_perf_event {
+ bpf_cookie int64
+}
+
link_create_arg_extra [
target_btf_id bpf_btf_id
iter link_create_iter
+ perf_event link_create_perf_event
]
type bpf_link_create_arg_t[PROG_FD, TARGET_FD, ATTACH_TYPE, FLAGS] {