]> git.ipfire.org Git - people/ms/linux.git/blobdiff - tools/lib/bpf/bpf.h
libbpf: Add bpf_link_create support for multi kprobes
[people/ms/linux.git] / tools / lib / bpf / bpf.h
index 5253cb4a4c0a6f31a6ea42fe6c5254cfa245c1ea..f4b4afb6d4ba754be0cc01a49c58410ff7c977fa 100644 (file)
@@ -413,10 +413,17 @@ struct bpf_link_create_opts {
                struct {
                        __u64 bpf_cookie;
                } perf_event;
+               struct {
+                       __u32 flags;
+                       __u32 cnt;
+                       const char **syms;
+                       const unsigned long *addrs;
+                       const __u64 *cookies;
+               } kprobe_multi;
        };
        size_t :0;
 };
-#define bpf_link_create_opts__last_field perf_event
+#define bpf_link_create_opts__last_field kprobe_multi.cookies
 
 LIBBPF_API int bpf_link_create(int prog_fd, int target_fd,
                               enum bpf_attach_type attach_type,