diff options
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r-- | tools/perf/util/evsel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 4a7bdc713bab..64ec8e1a7a28 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h | |||
@@ -74,10 +74,7 @@ struct perf_evsel { | |||
74 | off_t id_offset; | 74 | off_t id_offset; |
75 | }; | 75 | }; |
76 | struct cgroup_sel *cgrp; | 76 | struct cgroup_sel *cgrp; |
77 | struct { | 77 | void *handler; |
78 | void *func; | ||
79 | void *data; | ||
80 | } handler; | ||
81 | struct cpu_map *cpus; | 78 | struct cpu_map *cpus; |
82 | unsigned int sample_size; | 79 | unsigned int sample_size; |
83 | int id_pos; | 80 | int id_pos; |
@@ -197,6 +194,12 @@ static inline bool perf_evsel__match2(struct perf_evsel *e1, | |||
197 | (e1->attr.config == e2->attr.config); | 194 | (e1->attr.config == e2->attr.config); |
198 | } | 195 | } |
199 | 196 | ||
197 | #define perf_evsel__cmp(a, b) \ | ||
198 | ((a) && \ | ||
199 | (b) && \ | ||
200 | (a)->attr.type == (b)->attr.type && \ | ||
201 | (a)->attr.config == (b)->attr.config) | ||
202 | |||
200 | int __perf_evsel__read_on_cpu(struct perf_evsel *evsel, | 203 | int __perf_evsel__read_on_cpu(struct perf_evsel *evsel, |
201 | int cpu, int thread, bool scale); | 204 | int cpu, int thread, bool scale); |
202 | 205 | ||