Home
last modified time | relevance | path

Searched refs:evlist (Results 1 – 25 of 166) sorted by relevance

1234567

/linux/tools/perf/util/
H A Devlist.h10 #include <internal/evlist.h>
12 #include <perf/evlist.h>
59 struct evlist { struct
77 void (*trace_event_sample_raw)(struct evlist *evlist, argument
89 int pos; /* index at evlist core object to check signals */ argument
106 struct evlist *evlist__new(void); argument
107 struct evlist *evlist__new_default(const struct target *target, bool sample_callchains);
108 struct evlist *evlist__new_dummy(void);
109 void evlist__init(struct evlist *evlis
60 coreevlist global() argument
122 evlist__add_dummy_on_all_cpus(struct evlist * evlist) evlist__add_dummy_on_all_cpus() argument
144 evlist__set_tracepoints_handlers(evlist,array) global() argument
236 evlist__empty(struct evlist * evlist) evlist__empty() argument
241 evlist__first(struct evlist * evlist) evlist__first() argument
248 evlist__last(struct evlist * evlist) evlist__last() argument
255 evlist__nr_groups(struct evlist * evlist) evlist__nr_groups() argument
279 evlist__for_each_entry(evlist,evsel) global() argument
295 evlist__for_each_entry_continue(evlist,evsel) global() argument
311 evlist__for_each_entry_from(evlist,evsel) global() argument
327 evlist__for_each_entry_reverse(evlist,evsel) global() argument
345 evlist__for_each_entry_safe(evlist,tmp,evsel) global() argument
383 evlist__for_each_cpu(evlist_cpu_itr,evlist) global() argument
[all...]
H A Devlist.c17 #include "evlist.h"
63 #include <perf/evlist.h>
77 void evlist__init(struct evlist *evlist, struct perf_cpu_map *cpus, in evlist__init()
80 perf_evlist__init(&evlist->core); in evlist__init()
81 perf_evlist__set_maps(&evlist->core, cpus, threads); in evlist__init()
82 evlist->workload.pid = -1; in evlist__init()
83 evlist->bkw_mmap_state = BKW_MMAP_NOTREADY; in evlist__init()
84 evlist->ctl_fd.fd = -1; in evlist__init()
85 evlist in evlist__init()
76 evlist__init(struct evlist * evlist,struct perf_cpu_map * cpus,struct perf_thread_map * threads) evlist__init() argument
93 struct evlist *evlist = zalloc(sizeof(*evlist)); evlist__new() local
103 struct evlist *evlist = evlist__new(); evlist__new_default() local
137 struct evlist *evlist = evlist__new(); evlist__new_dummy() local
154 evlist__set_id_pos(struct evlist * evlist) evlist__set_id_pos() argument
162 evlist__update_id_pos(struct evlist * evlist) evlist__update_id_pos() argument
172 evlist__purge(struct evlist * evlist) evlist__purge() argument
185 evlist__exit(struct evlist * evlist) evlist__exit() argument
194 evlist__delete(struct evlist * evlist) evlist__delete() argument
207 evlist__add(struct evlist * evlist,struct evsel * entry) evlist__add() argument
217 evlist__remove(struct evlist * evlist,struct evsel * evsel) evlist__remove() argument
223 evlist__splice_list_tail(struct evlist * evlist,struct list_head * list) evlist__splice_list_tail() argument
244 __evlist__set_tracepoints_handlers(struct evlist * evlist,const struct evsel_str_handler * assocs,size_t nr_assocs) __evlist__set_tracepoints_handlers() argument
267 evlist__set_leader(struct evlist * evlist) evlist__set_leader() argument
272 evlist__dummy_event(struct evlist * evlist) evlist__dummy_event() argument
286 evlist__add_dummy(struct evlist * evlist) evlist__add_dummy() argument
297 evlist__add_aux_dummy(struct evlist * evlist,bool system_wide) evlist__add_aux_dummy() argument
316 evlist__add_sched_switch(struct evlist * evlist,bool system_wide) evlist__add_sched_switch() argument
335 evlist__find_tracepoint_by_name(struct evlist * evlist,const char * name) evlist__find_tracepoint_by_name() argument
349 evlist__add_newtp(struct evlist * evlist,const char * sys,const char * name,void * handler) evlist__add_newtp() argument
366 evlist__use_affinity(struct evlist * evlist) evlist__use_affinity() argument
421 evlist_cpu_iterator__init(struct evlist_cpu_iterator * itr,struct evlist * evlist) evlist_cpu_iterator__init() argument
506 evlist__is_enabled(struct evlist * evlist) evlist__is_enabled() argument
520 __evlist__disable(struct evlist * evlist,char * evsel_name,bool excl_dummy) __evlist__disable() argument
566 evlist__disable(struct evlist * evlist) evlist__disable() argument
571 evlist__disable_non_dummy(struct evlist * evlist) evlist__disable_non_dummy() argument
576 evlist__disable_evsel(struct evlist * evlist,char * evsel_name) evlist__disable_evsel() argument
581 __evlist__enable(struct evlist * evlist,char * evsel_name,bool excl_dummy) __evlist__enable() argument
614 evlist__enable(struct evlist * evlist) evlist__enable() argument
619 evlist__enable_non_dummy(struct evlist * evlist) evlist__enable_non_dummy() argument
624 evlist__enable_evsel(struct evlist * evlist,char * evsel_name) evlist__enable_evsel() argument
629 evlist__toggle_enable(struct evlist * evlist) evlist__toggle_enable() argument
634 evlist__add_pollfd(struct evlist * evlist,int fd) evlist__add_pollfd() argument
639 evlist__filter_pollfd(struct evlist * evlist,short revents_and_mask) evlist__filter_pollfd() argument
645 evlist__add_wakeup_eventfd(struct evlist * evlist,int fd) evlist__add_wakeup_eventfd() argument
653 evlist__poll(struct evlist * evlist,int timeout) evlist__poll() argument
658 evlist__id2sid(struct evlist * evlist,u64 id) evlist__id2sid() argument
674 evlist__id2evsel(struct evlist * evlist,u64 id) evlist__id2evsel() argument
691 evlist__id2evsel_strict(struct evlist * evlist,u64 id) evlist__id2evsel_strict() argument
705 evlist__event2id(struct evlist * evlist,union perf_event * event,u64 * id) evlist__event2id() argument
725 evlist__event2evsel(struct evlist * evlist,union perf_event * event) evlist__event2evsel() argument
757 evlist__set_paused(struct evlist * evlist,bool value) evlist__set_paused() argument
777 evlist__pause(struct evlist * evlist) evlist__pause() argument
782 evlist__resume(struct evlist * evlist) evlist__resume() argument
787 evlist__munmap_nofree(struct evlist * evlist) evlist__munmap_nofree() argument
800 evlist__munmap(struct evlist * evlist) evlist__munmap() argument
814 evlist__alloc_mmap(struct evlist * evlist,bool overwrite) evlist__alloc_mmap() argument
848 struct evlist *evlist = container_of(_evlist, struct evlist, core); perf_evlist__mmap_cb_idx() local
858 struct evlist *evlist = container_of(_evlist, struct evlist, core); perf_evlist__mmap_cb_get() local
1011 evlist__mmap_ex(struct evlist * evlist,unsigned int pages,unsigned int auxtrace_pages,bool auxtrace_overwrite,int nr_cblocks,int affinity,int flush,int comp_level) evlist__mmap_ex() argument
1042 evlist__mmap(struct evlist * evlist,unsigned int pages) evlist__mmap() argument
1047 evlist__create_maps(struct evlist * evlist,struct target * target) evlist__create_maps() argument
1099 evlist__apply_filters(struct evlist * evlist,struct evsel ** err_evsel,struct target * target) evlist__apply_filters() argument
1133 evlist__set_tp_filter(struct evlist * evlist,const char * filter) evlist__set_tp_filter() argument
1153 evlist__append_tp_filter(struct evlist * evlist,const char * filter) evlist__append_tp_filter() argument
1199 evlist__set_tp_filter_pids(struct evlist * evlist,size_t npids,pid_t * pids) evlist__set_tp_filter_pids() argument
1208 evlist__append_tp_filter_pids(struct evlist * evlist,size_t npids,pid_t * pids) evlist__append_tp_filter_pids() argument
1217 evlist__append_tp_filter_pid(struct evlist * evlist,pid_t pid) evlist__append_tp_filter_pid() argument
1222 evlist__valid_sample_type(struct evlist * evlist) evlist__valid_sample_type() argument
1241 __evlist__combined_sample_type(struct evlist * evlist) __evlist__combined_sample_type() argument
1254 evlist__combined_sample_type(struct evlist * evlist) evlist__combined_sample_type() argument
1260 evlist__combined_branch_type(struct evlist * evlist) evlist__combined_branch_type() argument
1271 evlist__find_dup_event_from_prev(struct evlist * evlist,struct evsel * event) evlist__find_dup_event_from_prev() argument
1316 evlist__update_br_cntr(struct evlist * evlist) evlist__update_br_cntr() argument
1336 evlist__valid_read_format(struct evlist * evlist) evlist__valid_read_format() argument
1358 evlist__id_hdr_size(struct evlist * evlist) evlist__id_hdr_size() argument
1365 evlist__valid_sample_id_all(struct evlist * evlist) evlist__valid_sample_id_all() argument
1377 evlist__sample_id_all(struct evlist * evlist) evlist__sample_id_all() argument
1383 evlist__set_selected(struct evlist * evlist,struct evsel * evsel) evlist__set_selected() argument
1388 evlist__close(struct evlist * evlist) evlist__close() argument
1407 evlist__create_syswide_maps(struct evlist * evlist) evlist__create_syswide_maps() argument
1437 evlist__open(struct evlist * evlist) evlist__open() argument
1467 evlist__prepare_workload(struct evlist * evlist,struct target * target,const char * argv[],bool pipe_output,void (* exec_error)(int signo,siginfo_t * info,void * ucontext)) evlist__prepare_workload() argument
1589 evlist__start_workload(struct evlist * evlist) evlist__start_workload() argument
1609 evlist__cancel_workload(struct evlist * evlist) evlist__cancel_workload() argument
1620 evlist__parse_sample(struct evlist * evlist,union perf_event * event,struct perf_sample * sample) evlist__parse_sample() argument
1641 evlist__parse_sample_timestamp(struct evlist * evlist,union perf_event * event,u64 * timestamp) evlist__parse_sample_timestamp() argument
1650 evlist__strerror_open(struct evlist * evlist,int err,char * buf,size_t size) evlist__strerror_open() argument
1705 evlist__strerror_mmap(struct evlist * evlist,int err,char * buf,size_t size) evlist__strerror_mmap() argument
1737 evlist__to_front(struct evlist * evlist,struct evsel * move_evsel) evlist__to_front() argument
1753 evlist__get_tracking_event(struct evlist * evlist) evlist__get_tracking_event() argument
1765 evlist__set_tracking_event(struct evlist * evlist,struct evsel * tracking_evsel) evlist__set_tracking_event() argument
1780 evlist__findnew_tracking_event(struct evlist * evlist,bool system_wide) evlist__findnew_tracking_event() argument
1798 evlist__find_evsel_by_str(struct evlist * evlist,const char * str) evlist__find_evsel_by_str() argument
1812 evlist__toggle_bkw_mmap(struct evlist * evlist,enum bkw_mmap_state state) evlist__toggle_bkw_mmap() argument
1869 evlist__exclude_kernel(struct evlist * evlist) evlist__exclude_kernel() argument
1886 evlist__force_leader(struct evlist * evlist) evlist__force_leader() argument
2022 evlist__initialize_ctlfd(struct evlist * evlist,int fd,int ack) evlist__initialize_ctlfd() argument
2044 evlist__ctlfd_initialized(struct evlist * evlist) evlist__ctlfd_initialized() argument
2049 evlist__finalize_ctlfd(struct evlist * evlist) evlist__finalize_ctlfd() argument
2067 evlist__ctlfd_recv(struct evlist * evlist,enum evlist_ctl_cmd * cmd,char * cmd_data,size_t data_size) evlist__ctlfd_recv() argument
2127 evlist__ctlfd_ack(struct evlist * evlist) evlist__ctlfd_ack() argument
2160 evlist__ctlfd_enable(struct evlist * evlist,char * cmd_data,bool enable) evlist__ctlfd_enable() argument
2200 evlist__ctlfd_list(struct evlist * evlist,char * cmd_data) evlist__ctlfd_list() argument
2234 evlist__ctlfd_process(struct evlist * evlist,enum evlist_ctl_cmd * cmd) evlist__ctlfd_process() argument
2343 struct evlist *evlist; global() member
2362 evlist__parse_event_enable_time(struct evlist * evlist,struct record_opts * opts,const char * str,int unset) evlist__parse_event_enable_time() argument
2511 evlist__find_evsel(struct evlist * evlist,int idx) evlist__find_evsel() argument
2522 evlist__format_evsels(struct evlist * evlist,struct strbuf * sb,size_t max_length) evlist__format_evsels() argument
2554 evlist__check_mem_load_aux(struct evlist * evlist) evlist__check_mem_load_aux() argument
2588 evlist__warn_user_requested_cpus(struct evlist * evlist,const char * cpu_list) evlist__warn_user_requested_cpus() argument
2607 evlist__disable_uniquify(const struct evlist * evlist) evlist__disable_uniquify() argument
2631 evlist__set_needs_uniquify(struct evlist * evlist,const struct perf_stat_config * config) evlist__set_needs_uniquify() argument
2649 evlist__uniquify_evsel_names(struct evlist * evlist,const struct perf_stat_config * config) evlist__uniquify_evsel_names() argument
2659 evlist__has_bpf_output(struct evlist * evlist) evlist__has_bpf_output() argument
2671 evlist__needs_bpf_sb_event(struct evlist * evlist) evlist__needs_bpf_sb_event() argument
[all...]
H A Dsideband_evlist.c15 int evlist__add_sb_event(struct evlist *evlist, struct perf_event_attr *attr, in evlist__add_sb_event() argument
25 evsel = evsel__new_idx(attr, evlist->core.nr_entries); in evlist__add_sb_event()
31 evlist__add(evlist, evsel); in evlist__add_sb_event()
37 struct evlist *evlist = arg; in perf_evlist__poll_thread() local
52 if (evlist->thread.done) in perf_evlist__poll_thread()
56 evlist__poll(evlist, 1000); in perf_evlist__poll_thread()
58 for (i = 0; i < evlist->core.nr_mmaps; i++) { in perf_evlist__poll_thread()
59 struct mmap *map = &evlist->mmap[i]; in perf_evlist__poll_thread()
65 struct evsel *evsel = evlist__event2evsel(evlist, event); in perf_evlist__poll_thread()
84 void evlist__set_cb(struct evlist *evlist, evsel__sb_cb_t cb, void *data) in evlist__set_cb() argument
[all …]
H A Dstat.h130 struct evlist;
175 struct evlist *evlist, bool alloc_raw);
176 void evlist__free_stats(struct evlist *evlist);
177 void evlist__reset_stats(struct evlist *evlist);
178 void evlist__reset_prev_raw_counts(struct evlist *evlist);
179 void evlist__copy_prev_raw_counts(struct evlist *evlist);
180 void evlist__save_aggr_prev_raw_counts(struct evlist *evlist);
182 int evlist__alloc_aggr_stats(struct evlist *evlist, int nr_aggr);
183 void evlist__reset_aggr_stats(struct evlist *evlist);
184 void evlist__copy_res_stats(struct perf_stat_config *config, struct evlist *evlist);
[all …]
H A Drecord.c3 #include "evlist.h"
26 static struct evsel *evsel__read_sampler(struct evsel *evsel, struct evlist *evlist) in evsel__read_sampler() argument
32 evlist__for_each_entry(evlist, evsel) { in evsel__read_sampler()
53 static void evsel__config_leader_sampling(struct evsel *evsel, struct evlist *evlist) in evsel__config_leader_sampling() argument
63 read_sampler = evsel__read_sampler(evsel, evlist); in evsel__config_leader_sampling()
95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callchain) in evlist__config() argument
102 if (perf_cpu_map__cpu(evlist in evlist__config()
221 evlist__can_select_event(struct evlist * evlist,const char * str) evlist__can_select_event() argument
[all...]
H A Diostat.h20 struct evlist;
33 int iostat_prepare(struct evlist *evlist, struct perf_stat_config *config);
36 void iostat_list(struct evlist *evlist, struct perf_stat_config *config);
37 void iostat_release(struct evlist *evlist);
38 void iostat_prefix(struct evlist *evlist, struct perf_stat_config *config,
43 void iostat_print_counters(struct evlist *evlist,
/linux/tools/lib/perf/
H A Devlist.c28 void perf_evlist__init(struct perf_evlist *evlist) in perf_evlist__init() argument
30 INIT_LIST_HEAD(&evlist->entries); in perf_evlist__init()
31 evlist->nr_entries = 0; in perf_evlist__init()
32 fdarray__init(&evlist->pollfd, 64); in perf_evlist__init()
33 perf_evlist__reset_id_hash(evlist); in perf_evlist__init()
36 static void __perf_evlist__propagate_maps(struct perf_evlist *evlist, in __perf_evlist__propagate_maps() argument
47 if (evlist->has_user_cpus && !evsel->system_wide) { in __perf_evlist__propagate_maps()
52 evsel->cpus = perf_cpu_map__get(evlist->user_requested_cpus); in __perf_evlist__propagate_maps()
74 if (evlist->has_user_cpus && !evsel->system_wide) { in __perf_evlist__propagate_maps()
75 assert(!perf_cpu_map__has_any_cpu(evlist->user_requested_cpus)); in __perf_evlist__propagate_maps()
[all …]
/linux/tools/perf/tests/
H A Dparse-events.c5 #include "evlist.h"
25 static bool check_evlist(const char *test, int line, bool cond, struct evlist *evlist) in check_evlist() argument
32 evlist__format_evsels(evlist, &sb, 2048); in check_evlist()
33 pr_debug("FAILED %s:%d: %s\nFor evlist: %s\n", __FILE__, line, test, sb.buf); in check_evlist()
37 #define TEST_ASSERT_EVLIST(test, cond, evlist) \ argument
38 if (!check_evlist(test, __LINE__, cond, evlist)) \
56 static int num_core_entries(struct evlist *evlist) in num_core_entries() argument
59 * Returns number of core PMUs if the evlist ha in num_core_entries()
108 test__checkevent_tracepoint(struct evlist * evlist) test__checkevent_tracepoint() argument
121 test__checkevent_tracepoint_multi(struct evlist * evlist) test__checkevent_tracepoint_multi() argument
142 test__checkevent_raw(struct evlist * evlist) test__checkevent_raw() argument
181 test__checkevent_numeric(struct evlist * evlist) test__checkevent_numeric() argument
192 test__checkevent_symbolic_name(struct evlist * evlist) test__checkevent_symbolic_name() argument
206 test__checkevent_symbolic_name_config(struct evlist * evlist) test__checkevent_symbolic_name_config() argument
227 test__checkevent_symbolic_alias(struct evlist * evlist) test__checkevent_symbolic_alias() argument
237 test__checkevent_genhw(struct evlist * evlist) test__checkevent_genhw() argument
250 test__checkevent_breakpoint(struct evlist * evlist) test__checkevent_breakpoint() argument
264 test__checkevent_breakpoint_x(struct evlist * evlist) test__checkevent_breakpoint_x() argument
277 test__checkevent_breakpoint_r(struct evlist * evlist) test__checkevent_breakpoint_r() argument
289 test__checkevent_breakpoint_w(struct evlist * evlist) test__checkevent_breakpoint_w() argument
301 test__checkevent_breakpoint_rw(struct evlist * evlist) test__checkevent_breakpoint_rw() argument
315 test__checkevent_tracepoint_modifier(struct evlist * evlist) test__checkevent_tracepoint_modifier() argument
329 test__checkevent_tracepoint_multi_modifier(struct evlist * evlist) test__checkevent_tracepoint_multi_modifier() argument
345 test__checkevent_raw_modifier(struct evlist * evlist) test__checkevent_raw_modifier() argument
360 test__checkevent_numeric_modifier(struct evlist * evlist) test__checkevent_numeric_modifier() argument
375 test__checkevent_symbolic_name_modifier(struct evlist * evlist) test__checkevent_symbolic_name_modifier() argument
392 test__checkevent_exclude_host_modifier(struct evlist * evlist) test__checkevent_exclude_host_modifier() argument
407 test__checkevent_exclude_guest_modifier(struct evlist * evlist) test__checkevent_exclude_guest_modifier() argument
422 test__checkevent_symbolic_alias_modifier(struct evlist * evlist) test__checkevent_symbolic_alias_modifier() argument
435 test__checkevent_genhw_modifier(struct evlist * evlist) test__checkevent_genhw_modifier() argument
452 test__checkevent_exclude_idle_modifier(struct evlist * evlist) test__checkevent_exclude_idle_modifier() argument
471 test__checkevent_exclude_idle_modifier_1(struct evlist * evlist) test__checkevent_exclude_idle_modifier_1() argument
490 test__checkevent_breakpoint_modifier(struct evlist * evlist) test__checkevent_breakpoint_modifier() argument
504 test__checkevent_breakpoint_x_modifier(struct evlist * evlist) test__checkevent_breakpoint_x_modifier() argument
517 test__checkevent_breakpoint_r_modifier(struct evlist * evlist) test__checkevent_breakpoint_r_modifier() argument
530 test__checkevent_breakpoint_w_modifier(struct evlist * evlist) test__checkevent_breakpoint_w_modifier() argument
543 test__checkevent_breakpoint_rw_modifier(struct evlist * evlist) test__checkevent_breakpoint_rw_modifier() argument
556 test__checkevent_breakpoint_modifier_name(struct evlist * evlist) test__checkevent_breakpoint_modifier_name() argument
569 test__checkevent_breakpoint_x_modifier_name(struct evlist * evlist) test__checkevent_breakpoint_x_modifier_name() argument
582 test__checkevent_breakpoint_r_modifier_name(struct evlist * evlist) test__checkevent_breakpoint_r_modifier_name() argument
595 test__checkevent_breakpoint_w_modifier_name(struct evlist * evlist) test__checkevent_breakpoint_w_modifier_name() argument
608 test__checkevent_breakpoint_rw_modifier_name(struct evlist * evlist) test__checkevent_breakpoint_rw_modifier_name() argument
621 test__checkevent_breakpoint_2_events(struct evlist * evlist) test__checkevent_breakpoint_2_events() argument
638 test__checkevent_pmu(struct evlist * evlist) test__checkevent_pmu() argument
660 test__checkevent_list(struct evlist * evlist) test__checkevent_list() argument
703 test__checkevent_pmu_name(struct evlist * evlist) test__checkevent_pmu_name() argument
726 test__checkevent_pmu_partial_time_callgraph(struct evlist * evlist) test__checkevent_pmu_partial_time_callgraph() argument
758 test__checkevent_pmu_events(struct evlist * evlist) test__checkevent_pmu_events() argument
782 test__checkevent_pmu_events_mix(struct evlist * evlist) test__checkevent_pmu_events_mix() argument
903 test__group1(struct evlist * evlist) test__group1() argument
948 test__group2(struct evlist * evlist) test__group2() argument
1282 test__group_gh1(struct evlist * evlist) test__group_gh1() argument
1327 test__group_gh2(struct evlist * evlist) test__group_gh2() argument
1372 test__group_gh3(struct evlist * evlist) test__group_gh3() argument
1417 test__group_gh4(struct evlist * evlist) test__group_gh4() argument
1462 test__leader_sample1(struct evlist * evlist) test__leader_sample1() argument
1560 test__checkevent_pinned_modifier(struct evlist * evlist) test__checkevent_pinned_modifier() argument
1579 test__pinned_group(struct evlist * evlist) test__pinned_group() argument
1616 test__checkevent_exclusive_modifier(struct evlist * evlist) test__checkevent_exclusive_modifier() argument
1632 test__exclusive_group(struct evlist * evlist) test__exclusive_group() argument
1668 test__checkevent_breakpoint_len(struct evlist * evlist) test__checkevent_breakpoint_len() argument
1683 test__checkevent_breakpoint_len_w(struct evlist * evlist) test__checkevent_breakpoint_len_w() argument
1697 test__checkevent_breakpoint_len_rw_modifier(struct evlist * evlist) test__checkevent_breakpoint_len_rw_modifier() argument
1710 test__checkevent_precise_max_modifier(struct evlist * evlist) test__checkevent_precise_max_modifier() argument
1721 test__checkevent_config_symbol(struct evlist * evlist) test__checkevent_config_symbol() argument
1732 test__checkevent_config_raw(struct evlist * evlist) test__checkevent_config_raw() argument
1741 test__checkevent_config_num(struct evlist * evlist) test__checkevent_config_num() argument
1750 test__checkevent_config_cache(struct evlist * evlist) test__checkevent_config_cache() argument
1776 test__intel_pt(struct evlist * evlist) test__intel_pt() argument
1797 test__ratio_to_prev(struct evlist * evlist) test__ratio_to_prev() argument
1833 test__checkevent_complex_name(struct evlist * evlist) test__checkevent_complex_name() argument
1847 test__checkevent_raw_pmu(struct evlist * evlist) test__checkevent_raw_pmu() argument
1857 test__sym_event_slash(struct evlist * evlist) test__sym_event_slash() argument
1869 test__sym_event_dc(struct evlist * evlist) test__sym_event_dc() argument
1881 test__term_equal_term(struct evlist * evlist) test__term_equal_term() argument
1893 test__term_equal_legacy(struct evlist * evlist) test__term_equal_legacy() argument
1951 test__all_tracepoints(struct evlist * evlist) test__all_tracepoints() argument
2538 struct evlist *evlist; test_event() local
2572 struct evlist *evlist; test_event_fake_pmu() local
2866 test__checkevent_pmu_events_alias(struct evlist * evlist) test__checkevent_pmu_events_alias() argument
[all...]
H A Devent-times.c17 static int attach__enable_on_exec(struct evlist *evlist) in attach__enable_on_exec() argument
19 struct evsel *evsel = evlist__last(evlist); in attach__enable_on_exec()
27 err = evlist__create_maps(evlist, &target); in attach__enable_on_exec()
33 err = evlist__prepare_workload(evlist, &target, argv, false, NULL); in attach__enable_on_exec()
41 err = evlist__open(evlist); in attach__enable_on_exec()
48 return evlist__start_workload(evlist) == 1 ? TEST_OK : TEST_FAIL; in attach__enable_on_exec()
51 static int detach__enable_on_exec(struct evlist *evlist) in detach__enable_on_exec() argument
53 waitpid(evlist->workload.pid, NULL, 0); in detach__enable_on_exec()
57 static int attach__current_disabled(struct evlist *evlist) in attach__current_disabled() argument
59 struct evsel *evsel = evlist__last(evlist); in attach__current_disabled()
[all …]
H A Dexpand-cgroup.c4 #include "evlist.h"
17 static int test_expand_events(struct evlist *evlist) in test_expand_events()
29 TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist)); in test_expand_events()
31 nr_events = evlist->core.nr_entries; in test_expand_events()
38 evlist__for_each_entry(evlist, evsel) { in test_expand_events()
47 was_group_event = evsel__is_group_event(evlist__first(evlist)); in test_expand_events()
48 nr_members = evlist__first(evlist)->core.nr_members; in test_expand_events()
50 ret = evlist__expand_cgroup(evlist, cgrp_st in test_expand_events()
16 test_expand_events(struct evlist * evlist) test_expand_events() argument
102 struct evlist *evlist = evlist__new_default(); expand_default_events() local
114 struct evlist *evlist; expand_group_events() local
141 struct evlist *evlist; expand_libpfm_events() local
172 struct evlist *evlist; expand_metric_events() local
[all...]
H A Dkeep-tracking.c33 static int find_comm(struct evlist *evlist, const char *comm) in find_comm() argument
40 for (i = 0; i < evlist->core.nr_mmaps; i++) { in find_comm()
41 md = &evlist->mmap[i]; in find_comm()
76 struct evlist *evlist = NULL; in test__keep_tracking() local
87 evlist = evlist__new(); in test__keep_tracking()
88 CHECK_NOT_NULL__(evlist); in test__keep_tracking()
90 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__keep_tracking()
92 CHECK__(parse_event(evlist, "dummy:u")); in test__keep_tracking()
93 CHECK__(parse_event(evlist, "cpu-cycles:u")); in test__keep_tracking()
95 evlist__config(evlist, &opts, NULL); in test__keep_tracking()
[all …]
H A Dbackward-ring-buffer.c32 static int count_samples(struct evlist *evlist, int *sample_count, in count_samples() argument
37 for (i = 0; i < evlist->core.nr_mmaps; i++) { in count_samples()
38 struct mmap *map = &evlist->overwrite_mmap[i]; in count_samples()
62 static int do_test(struct evlist *evlist, int mmap_pages, in do_test() argument
68 err = evlist__mmap(evlist, mmap_pages); in do_test()
75 evlist__enable(evlist); in do_test()
77 evlist__disable(evlist); in do_test()
79 err = count_samples(evlist, sample_count, comm_count); in do_test()
80 evlist__munmap(evlist); in do_test()
89 struct evlist *evlist; in test__backward_ring_buffer() local
[all …]
H A Dswitch-tracking.c11 #include <perf/evlist.h>
16 #include "evlist.h"
125 static int process_sample_event(struct evlist *evlist, in process_sample_event() argument
135 if (evlist__parse_sample(evlist, event, &sample)) { in process_sample_event()
141 evsel = evlist__id2evsel(evlist, sample.id); in process_sample_event()
181 static int process_event(struct evlist *evlist, union perf_event *event, in process_event() argument
185 return process_sample_event(evlist, event, switch_tracking); in process_event()
221 static int add_event(struct evlist *evlis argument
270 process_events(struct evlist * evlist,struct switch_tracking * switch_tracking) process_events() argument
348 struct evlist *evlist = NULL; test__switch_tracking() local
[all...]
H A Dpfm.c16 static int count_pfm_events(struct perf_evlist *evlist) in count_pfm_events() argument
21 perf_evlist__for_each_entry(evlist, evsel) { in count_pfm_events()
30 struct evlist *evlist; in test__pfm_events() local
68 evlist = evlist__new(); in test__pfm_events()
69 if (evlist == NULL) in test__pfm_events()
72 opt.value = evlist; in test__pfm_events()
77 count_pfm_events(&evlist->core), in test__pfm_events()
80 evlist__nr_groups(evlist), in test__pfm_events()
83 evlist__delete(evlist); in test__pfm_events()
91 struct evlist *evlist; in test__pfm_group() local
[all …]
H A Dperf-record.c9 #include "evlist.h"
60 struct evlist *evlist = evlist__new_dummy(); in test__PERF_RECORD() local
87 if (evlist == NULL) { /* Fallback for kernels lacking PERF_COUNT_SW_DUMMY */ in test__PERF_RECORD()
90 evlist = evlist__new_default(&target, /*sample_callchains=*/false); in test__PERF_RECORD()
93 if (evlist == NULL) { in test__PERF_RECORD()
94 pr_debug("Not enough memory to create evlist\n"); in test__PERF_RECORD()
105 err = evlist__create_maps(evlist, &opts.target); in test__PERF_RECORD()
114 * so that we have time to open the evlist (calling sys_perf_event_open in test__PERF_RECORD()
117 err = evlist__prepare_workload(evlist, in test__PERF_RECORD()
[all...]
H A Devsel-roundtrip-name.c2 #include "evlist.h"
21 struct evlist *evlist = evlist__new(); in perf_evsel__roundtrip_cache_name_test() local
25 if (evlist == NULL) { in perf_evsel__roundtrip_cache_name_test()
26 pr_debug("Failed to alloc evlist"); in perf_evsel__roundtrip_cache_name_test()
32 err = parse_event(evlist, name); in perf_evsel__roundtrip_cache_name_test()
36 evlist__delete(evlist); in perf_evsel__roundtrip_cache_name_test()
39 evlist__for_each_entry(evlist, evsel) { in perf_evsel__roundtrip_cache_name_test()
45 evlist__delete(evlist); in perf_evsel__roundtrip_cache_name_test()
57 struct evlist *evlis in perf_evsel__name_array_test() local
[all...]
H A Dparse-metric.c34 static void load_runtime_stat(struct evlist *evlist, struct value *vals) in load_runtime_stat() argument
39 evlist__alloc_aggr_stats(evlist, 1); in load_runtime_stat()
40 evlist__for_each_entry(evlist, evsel) { in load_runtime_stat()
49 static double compute_single(struct evlist *evlist, const char *name) in compute_single() argument
55 evlist__for_each_entry(evlist, evsel) { in compute_single()
56 me = metricgroup__lookup(&evlist->metric_events, evsel, false); in compute_single()
74 struct evlist *evlist; in __compute_metric() local
81 evlist = evlist__new(); in __compute_metric()
82 if (!evlist) in __compute_metric()
87 evlist__delete(evlist); in __compute_metric()
[all …]
H A Dperf-time-to-tsc.c81 struct evlist *evlist = NULL; in test__perf_time_to_tsc() local
99 evlist = evlist__new(); in test__perf_time_to_tsc()
100 CHECK_NOT_NULL__(evlist); in test__perf_time_to_tsc()
102 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__perf_time_to_tsc()
104 CHECK__(parse_event(evlist, "cpu-cycles:u")); in test__perf_time_to_tsc()
106 evlist__config(evlist, &opts, NULL); in test__perf_time_to_tsc()
109 evlist__for_each_entry(evlist, evsel) { in test__perf_time_to_tsc()
115 ret = evlist__open(evlist); in test__perf_time_to_tsc()
124 CHECK__(evlist__mmap(evlist, UINT_MAX)); in test__perf_time_to_tsc()
126 pc = evlist->mmap[0].core.base; in test__perf_time_to_tsc()
[all …]
/linux/tools/lib/perf/tests/
H A Dtest-evlist.c37 struct perf_evlist *evlist; in test_stat_cpu() local
52 evlist = perf_evlist__new(); in test_stat_cpu()
53 __T("failed to create evlist", evlist); in test_stat_cpu()
58 perf_evlist__add(evlist, evsel); in test_stat_cpu()
63 perf_evlist__add(evlist, evsel); in test_stat_cpu()
65 perf_evlist__set_leader(evlist); in test_stat_cpu()
69 perf_evlist__set_maps(evlist, cpus, NULL); in test_stat_cpu()
71 err = perf_evlist__open(evlist); in test_stat_cpu()
74 perf_evlist__for_each_evsel(evlist, evsel) { in test_stat_cpu()
85 perf_evlist__close(evlist); in test_stat_cpu()
[all …]
/linux/tools/perf/arch/x86/tests/
H A Dhybrid.c25 static int test__hybrid_hw_event_with_pmu(struct evlist *evlist) in test__hybrid_hw_event_with_pmu() argument
27 struct evsel *evsel = evlist__first(evlist); in test__hybrid_hw_event_with_pmu()
29 TEST_ASSERT_VAL("wrong number of entries", 1 == evlist->core.nr_entries); in test__hybrid_hw_event_with_pmu()
36 static int test__hybrid_hw_group_event(struct evlist *evlist) in test__hybrid_hw_group_event() argument
40 evsel = leader = evlist__first(evlist); in test__hybrid_hw_group_event()
41 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_hw_group_event()
55 static int test__hybrid_sw_hw_group_event(struct evlist *evlist) in test__hybrid_sw_hw_group_event() argument
59 evsel = leader = evlist__first(evlist); in test__hybrid_sw_hw_group_event()
60 TEST_ASSERT_VAL("wrong number of entries", 2 == evlist->core.nr_entries); in test__hybrid_sw_hw_group_event()
72 static int test__hybrid_hw_sw_group_event(struct evlist *evlist) in test__hybrid_hw_sw_group_event() argument
[all …]
/linux/tools/lib/perf/include/perf/
H A Devlist.h13 LIBPERF_API void perf_evlist__add(struct perf_evlist *evlist,
15 LIBPERF_API void perf_evlist__remove(struct perf_evlist *evlist,
18 LIBPERF_API void perf_evlist__delete(struct perf_evlist *evlist);
19 LIBPERF_API struct perf_evsel* perf_evlist__next(struct perf_evlist *evlist,
21 LIBPERF_API int perf_evlist__open(struct perf_evlist *evlist);
22 LIBPERF_API void perf_evlist__close(struct perf_evlist *evlist);
23 LIBPERF_API void perf_evlist__enable(struct perf_evlist *evlist);
24 LIBPERF_API void perf_evlist__disable(struct perf_evlist *evlist);
26 #define perf_evlist__for_each_evsel(evlist, pos) \ argument
27 for ((pos) = perf_evlist__next((evlist), NULL); \
[all …]
/linux/tools/perf/bench/
H A Devlist-open-close.c50 static int evlist__count_evsel_fds(struct evlist *evlist) in evlist__count_evsel_fds() argument
55 evlist__for_each_entry(evlist, evsel) in evlist__count_evsel_fds()
61 static struct evlist *bench__create_evlist(char *evstr, const char *uid_str) in bench__create_evlist()
64 struct evlist *evlist = evlist__new(); in bench__create_evlist() local
67 if (!evlist) { in bench__create_evlist()
73 ret = parse_events(evlist, evstr, &err); in bench__create_evlist()
90 ret = parse_uid_filter(evlist, uid); in bench__create_evlist()
94 ret = evlist__create_maps(evlist, &opts.target); in bench__create_evlist()
100 evlist__config(evlist, &opts, NULL); in bench__create_evlist()
102 return evlist; in bench__create_evlist()
[all …]
/linux/tools/lib/perf/include/internal/
H A Devlist.h54 int perf_evlist__alloc_pollfd(struct perf_evlist *evlist);
55 int perf_evlist__add_pollfd(struct perf_evlist *evlist, int fd,
58 int perf_evlist__mmap_ops(struct perf_evlist *evlist,
62 void perf_evlist__init(struct perf_evlist *evlist);
63 void perf_evlist__exit(struct perf_evlist *evlist);
78 #define perf_evlist__for_each_entry(evlist, evsel) \ argument
79 __perf_evlist__for_each_entry(&(evlist)->entries, evsel)
94 #define perf_evlist__for_each_entry_reverse(evlist, evsel) \ argument
95 __perf_evlist__for_each_entry_reverse(&(evlist)->entries, evsel)
112 #define perf_evlist__for_each_entry_safe(evlist, tmp, evsel) \ argument
[all …]
/linux/tools/lib/perf/Documentation/examples/
H A Dcounting.c21 struct perf_evlist *evlist; in main() local
46 evlist = perf_evlist__new(); in main()
47 if (!evlist) { in main()
56 perf_evlist__add(evlist, evsel); in main()
62 perf_evlist__add(evlist, evsel); in main()
63 perf_evlist__set_maps(evlist, NULL, threads); in main()
64 err = perf_evlist__open(evlist); in main()
69 perf_evlist__enable(evlist); in main()
71 perf_evlist__disable(evlist); in main()
72 perf_evlist__for_each_evsel(evlist, evsel) { in main()
[all …]
/linux/tools/perf/
H A Dbuiltin-top.c29 #include "util/evlist.h"
144 if (!symbol__hists(sym, top->evlist->core.nr_entries)) { in perf_top__parse_source()
270 if (top->evlist->enabled) { in perf_top__show_details()
284 struct evlist *evlist = t->evlist; in perf_top__resort_hists()
287 evlist__for_each_entry(evlist, pos) { in perf_top__resort_hists()
296 if (evlist->enabled) { in perf_top__resort_hists()
316 evlist__for_each_entry(evlist, pos) { in perf_top__resort_hists()
337 (top->evlist in perf_top__print_sym_table()
283 struct evlist *evlist = t->evlist; perf_top__resort_hists() local
881 struct evlist *evlist = top->evlist; perf_top__mmap_read_idx() local
916 struct evlist *evlist = top->evlist; perf_top__mmap_read() local
951 struct evlist *evlist = top->evlist; perf_top__overwrite_check() local
997 struct evlist *evlist = top->evlist; perf_top_overwrite_fallback() local
1018 struct evlist *evlist = top->evlist; perf_top__start_counters() local
1148 struct evlist *evlist = top->evlist; deliver_event() local
[all...]

1234567