aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2023-09-06 15:38:00 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-09-13 07:31:19 +0000
commitea2ace1b4710cee59bacacb344281c9d4887cc15 (patch)
treea566c660a1588da2a0abd06e73b229dce20c2a14 /sys
parentdc09fcecccc26b37679492360a81e9601e7643cb (diff)
sys/linux: cover cookie for tracing BPF links
Commit [1] added the ability to pass a cookie at BPF link creation time for many tracing program types. This commit covers the same in syzkaller. 1 - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2fcc82411e74e5e6a Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys')
-rw-r--r--sys/linux/bpf.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt
index a56d745af..c4c86049d 100644
--- a/sys/linux/bpf.txt
+++ b/sys/linux/bpf.txt
@@ -219,11 +219,17 @@ link_create_kprobe_multi [
syms link_create_kprobe_multi_symbols
]
+link_create_tracing {
+ target_btf_id bpf_btf_id
+ cookie int64
+}
+
link_create_arg_extra [
target_btf_id bpf_btf_id
iter link_create_iter
perf_event link_create_perf_event
kprobe_multi link_create_kprobe_multi
+ tracing link_create_tracing
]
type bpf_link_create_arg_t[PROG_FD, TARGET_FD, ATTACH_TYPE, FLAGS] {