Lines Matching refs:evsel

11 #include <internal/evsel.h>
14 #include "evsel.h"
67 struct evsel *selected;
100 void evlist__add(struct evlist *evlist, struct evsel *entry);
101 void evlist__remove(struct evlist *evlist, struct evsel *evsel);
115 int arch_evlist__cmp(const struct evsel *lhs, const struct evsel *rhs);
118 struct evsel *evlist__add_aux_dummy(struct evlist *evlist, bool system_wide);
119 static inline struct evsel *evlist__add_dummy_on_all_cpus(struct evlist *evlist)
124 struct evsel *evlist__add_sched_switch(struct evlist *evlist, bool system_wide);
153 struct evsel *evlist__find_tracepoint_by_id(struct evlist *evlist, int id);
154 struct evsel *evlist__find_tracepoint_by_name(struct evlist *evlist, const char *name);
165 struct evsel *evlist__id2evsel(struct evlist *evlist, u64 id);
166 struct evsel *evlist__id2evsel_strict(struct evlist *evlist, u64 id);
212 void evlist__set_selected(struct evlist *evlist, struct evsel *evsel);
215 int evlist__apply_filters(struct evlist *evlist, struct evsel **err_evsel);
237 static inline struct evsel *evlist__first(struct evlist *evlist)
239 struct perf_evsel *evsel = perf_evlist__first(&evlist->core);
241 return container_of(evsel, struct evsel, core);
244 static inline struct evsel *evlist__last(struct evlist *evlist)
246 struct perf_evsel *evsel = perf_evlist__last(&evlist->core);
248 return container_of(evsel, struct evsel, core);
260 void evlist__to_front(struct evlist *evlist, struct evsel *move_evsel);
265 * @evsel: struct evsel iterator
267 #define __evlist__for_each_entry(list, evsel) \
268 list_for_each_entry(evsel, list, core.node)
273 * @evsel: struct evsel iterator
275 #define evlist__for_each_entry(evlist, evsel) \
276 __evlist__for_each_entry(&(evlist)->core.entries, evsel)
281 * @evsel: struct evsel iterator
283 #define __evlist__for_each_entry_continue(list, evsel) \
284 list_for_each_entry_continue(evsel, list, core.node)
289 * @evsel: struct evsel iterator
291 #define evlist__for_each_entry_continue(evlist, evsel) \
292 __evlist__for_each_entry_continue(&(evlist)->core.entries, evsel)
295 * __evlist__for_each_entry_from - continue iteration from @evsel (included)
297 * @evsel: struct evsel iterator
299 #define __evlist__for_each_entry_from(list, evsel) \
300 list_for_each_entry_from(evsel, list, core.node)
303 * evlist__for_each_entry_from - continue iteration from @evsel (included)
305 * @evsel: struct evsel iterator
307 #define evlist__for_each_entry_from(evlist, evsel) \
308 __evlist__for_each_entry_from(&(evlist)->core.entries, evsel)
313 * @evsel: struct evsel iterator
315 #define __evlist__for_each_entry_reverse(list, evsel) \
316 list_for_each_entry_reverse(evsel, list, core.node)
321 * @evsel: struct evsel iterator
323 #define evlist__for_each_entry_reverse(evlist, evsel) \
324 __evlist__for_each_entry_reverse(&(evlist)->core.entries, evsel)
329 * @tmp: struct evsel temp iterator
330 * @evsel: struct evsel iterator
332 #define __evlist__for_each_entry_safe(list, tmp, evsel) \
333 list_for_each_entry_safe(evsel, tmp, list, core.node)
338 * @evsel: struct evsel iterator
339 * @tmp: struct evsel temp iterator
341 #define evlist__for_each_entry_safe(evlist, tmp, evsel) \
342 __evlist__for_each_entry_safe(&(evlist)->core.entries, tmp, evsel)
348 /** The current evsel of the iterator. */
349 struct evsel *evsel;
350 /** The CPU map index corresponding to the evsel->core.cpus for the current CPU. */
354 * current CPU. Distinct from cpu_map_idx as the evsel's cpu map may
369 * for each evsel on that CPU. When switching between
381 /** Returns an iterator set to the first CPU/evsel of evlist. */
383 /** Move to next element in iterator, updating CPU, evsel and the affinity. */
388 struct evsel *evlist__get_tracking_event(struct evlist *evlist);
389 void evlist__set_tracking_event(struct evlist *evlist, struct evsel *tracking_evsel);
390 struct evsel *evlist__findnew_tracking_event(struct evlist *evlist, bool system_wide);
392 struct evsel *evlist__find_evsel_by_str(struct evlist *evlist, const char *str);
394 struct evsel *evlist__event2evsel(struct evlist *evlist, union perf_event *event);
400 struct evsel *evlist__reset_weak_group(struct evlist *evlist, struct evsel *evsel, bool close);
440 struct evsel *evlist__find_evsel(struct evlist *evlist, int idx);