]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - tools/perf/util/bpf-event.h
perf bpf: Save bpf_prog_info in a rbtree in perf_env
[thirdparty/linux.git] / tools / perf / util / bpf-event.h
index 6698683612a79a899cbdf8d97b8fbd84134221d3..fad932f7404fcfb86680c5a76bf571f6bca1a71d 100644 (file)
@@ -3,14 +3,19 @@
 #define __PERF_BPF_EVENT_H
 
 #include <linux/compiler.h>
+#include <linux/rbtree.h>
 #include "event.h"
 
 struct machine;
 union perf_event;
 struct perf_sample;
-struct perf_tool;
 struct record_opts;
 
+struct bpf_prog_info_node {
+       struct bpf_prog_info_linear     *info_linear;
+       struct rb_node                  rb_node;
+};
+
 #ifdef HAVE_LIBBPF_SUPPORT
 int machine__process_bpf_event(struct machine *machine, union perf_event *event,
                               struct perf_sample *sample);