Lines Matching refs:evsel
40 struct perf_evsel *evsel; member
95 void perf_evsel__init(struct perf_evsel *evsel,
97 void perf_evsel__exit(struct perf_evsel *evsel);
98 void perf_evsel__delete(struct perf_evsel *evsel);
100 void perf_evsel__config(struct perf_evsel *evsel,
117 const char *perf_evsel__name(struct perf_evsel *evsel);
118 const char *perf_evsel__group_name(struct perf_evsel *evsel);
119 int perf_evsel__group_desc(struct perf_evsel *evsel, char *buf, size_t size);
121 int perf_evsel__alloc_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
122 int perf_evsel__alloc_id(struct perf_evsel *evsel, int ncpus, int nthreads);
123 int perf_evsel__alloc_counts(struct perf_evsel *evsel, int ncpus);
124 void perf_evsel__reset_counts(struct perf_evsel *evsel, int ncpus);
125 void perf_evsel__free_fd(struct perf_evsel *evsel);
126 void perf_evsel__free_id(struct perf_evsel *evsel);
127 void perf_evsel__free_counts(struct perf_evsel *evsel);
128 void perf_evsel__close_fd(struct perf_evsel *evsel, int ncpus, int nthreads);
130 void __perf_evsel__set_sample_bit(struct perf_evsel *evsel,
132 void __perf_evsel__reset_sample_bit(struct perf_evsel *evsel,
135 #define perf_evsel__set_sample_bit(evsel, bit) \ argument
136 __perf_evsel__set_sample_bit(evsel, PERF_SAMPLE_##bit)
138 #define perf_evsel__reset_sample_bit(evsel, bit) \ argument
139 __perf_evsel__reset_sample_bit(evsel, PERF_SAMPLE_##bit)
141 void perf_evsel__set_sample_id(struct perf_evsel *evsel);
143 int perf_evsel__set_filter(struct perf_evsel *evsel, int ncpus, int nthreads,
146 int perf_evsel__open_per_cpu(struct perf_evsel *evsel,
148 int perf_evsel__open_per_thread(struct perf_evsel *evsel,
150 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
152 void perf_evsel__close(struct perf_evsel *evsel, int ncpus, int nthreads);
156 void *perf_evsel__rawptr(struct perf_evsel *evsel, struct perf_sample *sample,
158 u64 perf_evsel__intval(struct perf_evsel *evsel, struct perf_sample *sample,
161 static inline char *perf_evsel__strval(struct perf_evsel *evsel, in perf_evsel__strval() argument
165 return perf_evsel__rawptr(evsel, sample, name); in perf_evsel__strval()
170 struct format_field *perf_evsel__field(struct perf_evsel *evsel, const char *name);
172 #define perf_evsel__match(evsel, t, c) \ argument
173 (evsel->attr.type == PERF_TYPE_##t && \
174 evsel->attr.config == PERF_COUNT_##c)
183 int __perf_evsel__read_on_cpu(struct perf_evsel *evsel,
193 static inline int perf_evsel__read_on_cpu(struct perf_evsel *evsel, in perf_evsel__read_on_cpu() argument
196 return __perf_evsel__read_on_cpu(evsel, cpu, thread, false); in perf_evsel__read_on_cpu()
206 static inline int perf_evsel__read_on_cpu_scaled(struct perf_evsel *evsel, in perf_evsel__read_on_cpu_scaled() argument
209 return __perf_evsel__read_on_cpu(evsel, cpu, thread, true); in perf_evsel__read_on_cpu_scaled()
212 int __perf_evsel__read(struct perf_evsel *evsel, int ncpus, int nthreads,
222 static inline int perf_evsel__read(struct perf_evsel *evsel, in perf_evsel__read() argument
225 return __perf_evsel__read(evsel, ncpus, nthreads, false); in perf_evsel__read()
235 static inline int perf_evsel__read_scaled(struct perf_evsel *evsel, in perf_evsel__read_scaled() argument
238 return __perf_evsel__read(evsel, ncpus, nthreads, true); in perf_evsel__read_scaled()
243 int perf_evsel__parse_sample(struct perf_evsel *evsel, union perf_event *event,
246 static inline struct perf_evsel *perf_evsel__next(struct perf_evsel *evsel) in perf_evsel__next() argument
248 return list_entry(evsel->node.next, struct perf_evsel, node); in perf_evsel__next()
258 static inline bool perf_evsel__is_group_leader(const struct perf_evsel *evsel) in perf_evsel__is_group_leader() argument
260 return evsel->leader == evsel; in perf_evsel__is_group_leader()
271 static inline bool perf_evsel__is_group_event(struct perf_evsel *evsel) in perf_evsel__is_group_event() argument
276 return perf_evsel__is_group_leader(evsel) && evsel->nr_members > 1; in perf_evsel__is_group_event()
285 int perf_evsel__fprintf(struct perf_evsel *evsel,
288 bool perf_evsel__fallback(struct perf_evsel *evsel, int err,
290 int perf_evsel__open_strerror(struct perf_evsel *evsel,
294 static inline int perf_evsel__group_idx(struct perf_evsel *evsel) in perf_evsel__group_idx() argument
296 return evsel->idx - evsel->leader->idx; in perf_evsel__group_idx()