History

bpf: Store cookies in kprobe_multi bpf_link_info data

Storing cookies in kprobe_multi bpf_link_info data. The cookies field is optional and if provided it needs to be an array of __u64 with kprobe_multi.count length.

Jiri Olsa committed 2 years ago

Commit 9fd112b1 parent d5c16493 files · +17 −0Browse files

Showing the changes to tools/include/uapi/linux (1 of 3 files). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+1−0
@@ -6563,6 +6563,7 @@ struct bpf_link_info { · 6562 unmodified lines
6563 __u32 count; /* in/out: kprobe_multi function count */6563 __u32 count; /* in/out: kprobe_multi function count */
6564 __u32 flags;6564 __u32 flags;
6565 __u64 missed;6565 __u64 missed;
6566 __aligned_u64 cookies;
6566 } kprobe_multi;6567 } kprobe_multi;
6567 struct {6568 struct {
6568 __aligned_u64 path;6569 __aligned_u64 path;