Lines Matching refs:evlist
58 struct evlist { struct
75 void (*trace_event_sample_raw)(struct evlist *evlist, argument
102 struct evlist *evlist__new(void); argument
103 struct evlist *evlist__new_default(void);
104 struct evlist *evlist__new_dummy(void);
105 void evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus,
107 void evlist__exit(struct evlist *evlist);
108 void evlist__delete(struct evlist *evlist);
110 void evlist__add(struct evlist *evlist, struct evsel *entry);
111 void evlist__remove(struct evlist *evlist, struct evsel *evsel);
116 int evlist__add_dummy(struct evlist *evlist);
117 struct evsel *evlist__add_aux_dummy(struct evlist *evlist, bool system_wide);
118 static inline struct evsel *evlist__add_dummy_on_all_cpus(struct evlist *evlist) in evlist__add_dummy_on_all_cpus() argument
120 return evlist__add_aux_dummy(evlist, true); in evlist__add_dummy_on_all_cpus()
123 struct evsel *evlist__add_sched_switch(struct evlist *evlist, bool system_wide);
126 int evlist__add_sb_event(struct evlist *evlist, struct perf_event_attr *attr,
128 void evlist__set_cb(struct evlist *evlist, evsel__sb_cb_t cb, void *data);
129 int evlist__start_sb_thread(struct evlist *evlist, struct target *target);
130 void evlist__stop_sb_thread(struct evlist *evlist);
133 int evlist__add_newtp(struct evlist *evlist, const char *sys, const char *name, void *handler);
136 int __evlist__set_tracepoints_handlers(struct evlist *evlist,
140 #define evlist__set_tracepoints_handlers(evlist, array) \ argument
141 __evlist__set_tracepoints_handlers(evlist, array, ARRAY_SIZE(array))
143 int evlist__set_tp_filter(struct evlist *evlist, const char *filter);
144 int evlist__set_tp_filter_pids(struct evlist *evlist, size_t npids, pid_t *pids);
146 int evlist__append_tp_filter(struct evlist *evlist, const char *filter);
148 int evlist__append_tp_filter_pid(struct evlist *evlist, pid_t pid);
149 int evlist__append_tp_filter_pids(struct evlist *evlist, size_t npids, pid_t *pids);
151 struct evsel *evlist__find_tracepoint_by_name(struct evlist *evlist, const char *name);
153 int evlist__add_pollfd(struct evlist *evlist, int fd);
154 int evlist__filter_pollfd(struct evlist *evlist, short revents_and_mask);
157 int evlist__add_wakeup_eventfd(struct evlist *evlist, int fd);
160 int evlist__poll(struct evlist *evlist, int timeout);
162 struct evsel *evlist__id2evsel(struct evlist *evlist, u64 id);
163 struct evsel *evlist__id2evsel_strict(struct evlist *evlist, u64 id);
165 struct perf_sample_id *evlist__id2sid(struct evlist *evlist, u64 id);
167 void evlist__toggle_bkw_mmap(struct evlist *evlist, enum bkw_mmap_state state);
169 void evlist__mmap_consume(struct evlist *evlist, int idx);
171 int evlist__open(struct evlist *evlist);
172 void evlist__close(struct evlist *evlist);
176 void evlist__set_id_pos(struct evlist *evlist);
177 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch…
180 int evlist__prepare_workload(struct evlist *evlist, struct target *target,
183 int evlist__start_workload(struct evlist *evlist);
184 void evlist__cancel_workload(struct evlist *evlist);
193 int evlist__mmap_ex(struct evlist *evlist, unsigned int pages,
197 int evlist__mmap(struct evlist *evlist, unsigned int pages);
198 void evlist__munmap(struct evlist *evlist);
202 void evlist__disable(struct evlist *evlist);
203 void evlist__enable(struct evlist *evlist);
204 void evlist__toggle_enable(struct evlist *evlist);
205 void evlist__disable_evsel(struct evlist *evlist, char *evsel_name);
206 void evlist__enable_evsel(struct evlist *evlist, char *evsel_name);
207 void evlist__disable_non_dummy(struct evlist *evlist);
208 void evlist__enable_non_dummy(struct evlist *evlist);
210 void evlist__set_selected(struct evlist *evlist, struct evsel *evsel);
212 int evlist__create_maps(struct evlist *evlist, struct target *target);
213 int evlist__apply_filters(struct evlist *evlist, struct evsel **err_evsel,
216 u64 __evlist__combined_sample_type(struct evlist *evlist);
217 u64 evlist__combined_sample_type(struct evlist *evlist);
218 u64 evlist__combined_branch_type(struct evlist *evlist);
219 void evlist__update_br_cntr(struct evlist *evlist);
220 bool evlist__sample_id_all(struct evlist *evlist);
221 u16 evlist__id_hdr_size(struct evlist *evlist);
223 int evlist__parse_sample(struct evlist *evlist, union perf_event *event, struct perf_sample *sample…
224 int evlist__parse_sample_timestamp(struct evlist *evlist, union perf_event *event, u64 *timestamp);
226 bool evlist__valid_sample_type(struct evlist *evlist);
227 bool evlist__valid_sample_id_all(struct evlist *evlist);
228 bool evlist__valid_read_format(struct evlist *evlist);
230 void evlist__splice_list_tail(struct evlist *evlist, struct list_head *list);
232 static inline bool evlist__empty(struct evlist *evlist) in evlist__empty() argument
234 return list_empty(&evlist->core.entries); in evlist__empty()
237 static inline struct evsel *evlist__first(struct evlist *evlist) in evlist__first() argument
239 struct perf_evsel *evsel = perf_evlist__first(&evlist->core); in evlist__first()
244 static inline struct evsel *evlist__last(struct evlist *evlist) in evlist__last() argument
246 struct perf_evsel *evsel = perf_evlist__last(&evlist->core); in evlist__last()
251 static inline int evlist__nr_groups(struct evlist *evlist) in evlist__nr_groups() argument
253 return perf_evlist__nr_groups(&evlist->core); in evlist__nr_groups()
256 int evlist__strerror_open(struct evlist *evlist, int err, char *buf, size_t size);
257 int evlist__strerror_mmap(struct evlist *evlist, int err, char *buf, size_t size);
259 bool evlist__can_select_event(struct evlist *evlist, const char *str);
260 void evlist__to_front(struct evlist *evlist, struct evsel *move_evsel);
275 #define evlist__for_each_entry(evlist, evsel) \ argument
276 __evlist__for_each_entry(&(evlist)->core.entries, evsel)
291 #define evlist__for_each_entry_continue(evlist, evsel) \ argument
292 __evlist__for_each_entry_continue(&(evlist)->core.entries, evsel)
307 #define evlist__for_each_entry_from(evlist, evsel) \ argument
308 __evlist__for_each_entry_from(&(evlist)->core.entries, evsel)
323 #define evlist__for_each_entry_reverse(evlist, evsel) \ argument
324 __evlist__for_each_entry_reverse(&(evlist)->core.entries, evsel)
341 #define evlist__for_each_entry_safe(evlist, tmp, evsel) \ argument
342 __evlist__for_each_entry_safe(&(evlist)->core.entries, tmp, evsel)
347 struct evlist *container;
376 #define evlist__for_each_cpu(evlist_cpu_itr, evlist, affinity) \ argument
377 for ((evlist_cpu_itr) = evlist__cpu_begin(evlist, affinity); \
382 struct evlist_cpu_iterator evlist__cpu_begin(struct evlist *evlist, struct affinity *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);
396 bool evlist__exclude_kernel(struct evlist *evlist);
398 void evlist__force_leader(struct evlist *evlist);
400 struct evsel *evlist__reset_weak_group(struct evlist *evlist, struct evsel *evsel, bool close);
425 int evlist__initialize_ctlfd(struct evlist *evlist, int ctl_fd, int ctl_fd_ack);
426 int evlist__finalize_ctlfd(struct evlist *evlist);
427 bool evlist__ctlfd_initialized(struct evlist *evlist);
428 int evlist__ctlfd_process(struct evlist *evlist, enum evlist_ctl_cmd *cmd);
429 int evlist__ctlfd_ack(struct evlist *evlist);
434 int evlist__parse_event_enable_time(struct evlist *evlist, struct record_opts *opts,
440 struct evsel *evlist__find_evsel(struct evlist *evlist, int idx);
442 void evlist__format_evsels(struct evlist *evlist, struct strbuf *sb, size_t max_length);
443 void evlist__check_mem_load_aux(struct evlist *evlist);
444 void evlist__warn_user_requested_cpus(struct evlist *evlist, const char *cpu_list);
445 void evlist__uniquify_evsel_names(struct evlist *evlist, const struct perf_stat_config *config);
446 bool evlist__has_bpf_output(struct evlist *evlist);
447 bool evlist__needs_bpf_sb_event(struct evlist *evlist);