| /linux/tools/perf/util/ |
| A D | evlist.h | 99 void evlist__exit(struct evlist *evlist); 100 void evlist__delete(struct evlist *evlist); 119 int evlist__add_dummy(struct evlist *evlist); 176 int evlist__open(struct evlist *evlist); 177 void evlist__close(struct evlist *evlist); 181 void evlist__set_id_pos(struct evlist *evlist); 202 void evlist__munmap(struct evlist *evlist); 206 void evlist__disable(struct evlist *evlist); 207 void evlist__enable(struct evlist *evlist); 225 u16 evlist__id_hdr_size(struct evlist *evlist); [all …]
|
| A D | evlist.c | 88 struct evlist *evlist = zalloc(sizeof(*evlist)); in evlist__new() local 98 struct evlist *evlist = evlist__new(); in evlist__new_default() local 124 struct evlist *evlist = evlist__new(); in evlist__new_dummy() local 126 if (evlist && evlist__add_dummy(evlist)) { in evlist__new_dummy() 172 void evlist__exit(struct evlist *evlist) in evlist__exit() argument 180 void evlist__delete(struct evlist *evlist) in evlist__delete() argument 197 entry->evlist = evlist; in evlist__add() 841 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_idx() local 851 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_get() local 2339 struct evlist *evlist; member [all …]
|
| A D | sideband_evlist.c | 15 int evlist__add_sb_event(struct evlist *evlist, struct perf_event_attr *attr, in evlist__add_sb_event() argument 37 struct evlist *evlist = arg; in perf_evlist__poll_thread() local 52 if (evlist->thread.done) 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 97 int evlist__start_sb_thread(struct evlist *evlist, struct target *target) in evlist__start_sb_thread() argument 101 if (!evlist) in evlist__start_sb_thread() 137 evlist__delete(evlist); in evlist__start_sb_thread() 138 evlist = NULL; in evlist__start_sb_thread() 142 void evlist__stop_sb_thread(struct evlist *evlist) in evlist__stop_sb_thread() argument 144 if (!evlist) in evlist__stop_sb_thread() [all …]
|
| A D | stat.h | 152 struct evlist; 192 struct evlist *evlist, bool alloc_raw); 193 void evlist__free_stats(struct evlist *evlist); 194 void evlist__reset_stats(struct evlist *evlist); 195 void evlist__reset_prev_raw_counts(struct evlist *evlist); 196 void evlist__copy_prev_raw_counts(struct evlist *evlist); 197 void evlist__save_aggr_prev_raw_counts(struct evlist *evlist); 199 int evlist__alloc_aggr_stats(struct evlist *evlist, int nr_aggr); 200 void evlist__reset_aggr_stats(struct evlist *evlist); 201 void evlist__copy_res_stats(struct perf_stat_config *config, struct evlist *evlist); [all …]
|
| A D | record.c | 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 95 void evlist__config(struct evlist *evlist, struct record_opts *opts, struct callchain_param *callch… in evlist__config() argument 107 evlist__for_each_entry(evlist, evsel) { in evlist__config() 114 evlist__for_each_entry(evlist, evsel) in evlist__config() 138 evlist__for_each_entry(evlist, evsel) in evlist__config() 142 evlist__set_id_pos(evlist); in evlist__config() 221 bool evlist__can_select_event(struct evlist *evlist, const char *str) in evlist__can_select_event() argument 223 struct evlist *temp_evlist; in evlist__can_select_event() [all …]
|
| A D | iostat.h | 20 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,
|
| A D | sample-raw.h | 5 struct evlist; 9 void evlist__s390_sample_raw(struct evlist *evlist, union perf_event *event, 11 bool evlist__has_amd_ibs(struct evlist *evlist); 12 void evlist__amd_sample_raw(struct evlist *evlist, union perf_event *event, 14 void evlist__init_trace_event_sample_raw(struct evlist *evlist);
|
| /linux/tools/lib/perf/ |
| A D | evlist.c | 31 evlist->nr_entries = 0; in perf_evlist__init() 78 evlist->all_cpus = perf_cpu_map__merge(evlist->all_cpus, evsel->cpus); in __perf_evlist__propagate_maps() 111 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); in perf_evlist__new() local 113 if (evlist != NULL) in perf_evlist__new() 116 return evlist; in perf_evlist__new() 164 if (evlist == NULL) in perf_evlist__delete() 171 free(evlist); in perf_evlist__delete() 420 maps = overwrite ? evlist->mmap_ovw : evlist->mmap; in perf_evlist__mmap_cb_get() 650 evlist->nr_mmaps = perf_evlist__nr_mmaps(evlist); in perf_evlist__mmap_ops() 685 if (evlist->mmap) { in perf_evlist__munmap() [all …]
|
| /linux/tools/perf/tests/ |
| A D | expand-cgroup.c | 16 static int test_expand_events(struct evlist *evlist, in test_expand_events() argument 104 struct evlist *evlist = evlist__new_default(); in expand_default_events() local 110 evlist__delete(evlist); in expand_default_events() 117 struct evlist *evlist; in expand_group_events() local 124 evlist = evlist__new(); in expand_group_events() 139 evlist__delete(evlist); in expand_group_events() 146 struct evlist *evlist; in expand_libpfm_events() local 150 .value = &evlist, in expand_libpfm_events() 155 evlist = evlist__new(); in expand_libpfm_events() 172 evlist__delete(evlist); in expand_libpfm_events() [all …]
|
| A D | event-times.c | 17 static int attach__enable_on_exec(struct evlist *evlist) in attach__enable_on_exec() argument 53 static int detach__enable_on_exec(struct evlist *evlist) in detach__enable_on_exec() argument 59 static int attach__current_disabled(struct evlist *evlist) in attach__current_disabled() argument 85 static int attach__current_enabled(struct evlist *evlist) in attach__current_enabled() argument 105 static int detach__disable(struct evlist *evlist) in detach__disable() argument 112 static int attach__cpu_disabled(struct evlist *evlist) in attach__cpu_disabled() argument 141 static int attach__cpu_enabled(struct evlist *evlist) in attach__cpu_enabled() argument 167 struct evlist *evlist = NULL; in test_times() local 171 evlist = evlist__new(); in test_times() 172 if (!evlist) { in test_times() [all …]
|
| A D | parse-events.c | 117 static int test__checkevent_raw(struct evlist *evlist) in test__checkevent_raw() argument 863 static int test__group1(struct evlist *evlist) in test__group1() argument 912 static int test__group2(struct evlist *evlist) in test__group2() argument 1233 static int test__group_gh1(struct evlist *evlist) in test__group_gh1() argument 1280 static int test__group_gh2(struct evlist *evlist) in test__group_gh2() argument 1327 static int test__group_gh3(struct evlist *evlist) in test__group_gh3() argument 1374 static int test__group_gh4(struct evlist *evlist) in test__group_gh4() argument 1744 static int test__intel_pt(struct evlist *evlist) in test__intel_pt() argument 1879 int (*check)(struct evlist *evlist); 2489 struct evlist *evlist; in test_event() local [all …]
|
| A D | keep-tracking.c | 33 static int find_comm(struct evlist *evlist, const char *comm) in find_comm() argument 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() 116 evlist__enable(evlist); in test__keep_tracking() 121 evlist__disable(evlist); in test__keep_tracking() 134 evlist__enable(evlist); in test__keep_tracking() 143 evlist__disable(evlist); in test__keep_tracking() 154 if (evlist) { in test__keep_tracking() [all …]
|
| A D | backward-ring-buffer.c | 32 static int count_samples(struct evlist *evlist, int *sample_count, in count_samples() argument 62 static int do_test(struct evlist *evlist, int mmap_pages, in do_test() argument 75 evlist__enable(evlist); in do_test() 77 evlist__disable(evlist); in do_test() 80 evlist__munmap(evlist); in do_test() 89 struct evlist *evlist; in test__backward_ring_buffer() local 106 evlist = evlist__new(); in test__backward_ring_buffer() 107 if (!evlist) { in test__backward_ring_buffer() 133 err = evlist__open(evlist); in test__backward_ring_buffer() 152 evlist__close(evlist); in test__backward_ring_buffer() [all …]
|
| A D | switch-tracking.c | 125 static int process_sample_event(struct evlist *evlist, in process_sample_event() argument 175 static int process_event(struct evlist *evlist, union perf_event *event, in process_event() argument 215 static int add_event(struct evlist *evlist, struct list_head *events, in add_event() argument 264 static int process_events(struct evlist *evlist, in process_events() argument 275 md = &evlist->mmap[i]; in process_events() 342 struct evlist *evlist = NULL; in test__switch_tracking() local 360 evlist = evlist__new(); in test__switch_tracking() 361 if (!evlist) { in test__switch_tracking() 469 evlist__enable(evlist); in test__switch_tracking() 535 evlist__disable(evlist); in test__switch_tracking() [all …]
|
| A D | pfm.c | 29 struct evlist *evlist; in test__pfm_events() local 67 evlist = evlist__new(); in test__pfm_events() 68 if (evlist == NULL) in test__pfm_events() 71 opt.value = evlist; in test__pfm_events() 79 evlist__nr_groups(evlist), in test__pfm_events() 82 evlist__delete(evlist); in test__pfm_events() 90 struct evlist *evlist; in test__pfm_group() local 152 evlist = evlist__new(); in test__pfm_group() 153 if (evlist == NULL) in test__pfm_group() 156 opt.value = evlist; in test__pfm_group() [all …]
|
| A D | evsel-roundtrip-name.c | 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() 32 err = parse_event(evlist, name); in perf_evsel__roundtrip_cache_name_test() 36 evlist__delete(evlist); in perf_evsel__roundtrip_cache_name_test() 45 evlist__delete(evlist); in perf_evsel__roundtrip_cache_name_test() 57 struct evlist *evlist = evlist__new(); in perf_evsel__name_array_test() local 61 if (evlist == NULL) { in perf_evsel__name_array_test() 65 err = parse_event(evlist, names[i]); in perf_evsel__name_array_test() 69 evlist__delete(evlist); in perf_evsel__name_array_test() 73 evlist__for_each_entry(evlist, evsel) { in perf_evsel__name_array_test() [all …]
|
| A D | perf-record.c | 56 struct evlist *evlist = evlist__new_dummy(); in test__PERF_RECORD() local 74 evlist = evlist__new_default(); in test__PERF_RECORD() 76 if (evlist == NULL) { in test__PERF_RECORD() 108 evsel = evlist__first(evlist); in test__PERF_RECORD() 112 evlist__config(evlist, &opts, NULL); in test__PERF_RECORD() 136 err = evlist__open(evlist); in test__PERF_RECORD() 159 evlist__enable(evlist); in test__PERF_RECORD() 164 evlist__start_workload(evlist); in test__PERF_RECORD() 173 md = &evlist->mmap[i]; in test__PERF_RECORD() 291 evlist__poll(evlist, -1); in test__PERF_RECORD() [all …]
|
| A D | perf-time-to-tsc.c | 81 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() 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() 126 pc = evlist->mmap[0].core.base; in test__perf_time_to_tsc() 136 evlist__enable(evlist); in test__perf_time_to_tsc() 146 evlist__disable(evlist); in test__perf_time_to_tsc() 149 md = &evlist->mmap[i]; in test__perf_time_to_tsc() [all …]
|
| A D | parse-metric.c | 33 static void load_runtime_stat(struct evlist *evlist, struct value *vals) in load_runtime_stat() argument 38 evlist__alloc_aggr_stats(evlist, 1); in load_runtime_stat() 39 evlist__for_each_entry(evlist, evsel) { in load_runtime_stat() 48 static double compute_single(struct rblist *metric_events, struct evlist *evlist, in compute_single() argument 77 struct evlist *evlist; in __compute_metric() local 84 evlist = evlist__new(); in __compute_metric() 85 if (!evlist) in __compute_metric() 90 evlist__delete(evlist); in __compute_metric() 108 load_runtime_stat(evlist, vals); in __compute_metric() 119 evlist__free_stats(evlist); in __compute_metric() [all …]
|
| /linux/tools/lib/perf/tests/ |
| A D | test-evlist.c | 37 struct perf_evlist *evlist; in test_stat_cpu() local 52 evlist = perf_evlist__new(); in test_stat_cpu() 85 perf_evlist__close(evlist); in test_stat_cpu() 86 perf_evlist__delete(evlist); in test_stat_cpu() 96 struct perf_evlist *evlist; in test_stat_thread() local 113 evlist = perf_evlist__new(); in test_stat_thread() 140 perf_evlist__close(evlist); in test_stat_thread() 141 perf_evlist__delete(evlist); in test_stat_thread() 151 struct perf_evlist *evlist; in test_stat_thread_enable() local 206 perf_evlist__close(evlist); in test_stat_thread_enable() [all …]
|
| /linux/tools/lib/perf/include/perf/ |
| A D | evlist.h | 13 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); 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); \ 29 (pos) = perf_evlist__next((evlist), (pos))) [all …]
|
| /linux/tools/perf/arch/x86/tests/ |
| A D | hybrid.c | 25 static int test__hybrid_hw_event_with_pmu(struct evlist *evlist) in test__hybrid_hw_event_with_pmu() argument 36 static int test__hybrid_hw_group_event(struct evlist *evlist) in test__hybrid_hw_group_event() argument 55 static int test__hybrid_sw_hw_group_event(struct evlist *evlist) in test__hybrid_sw_hw_group_event() argument 72 static int test__hybrid_hw_sw_group_event(struct evlist *evlist) in test__hybrid_hw_sw_group_event() argument 89 static int test__hybrid_group_modifier1(struct evlist *evlist) in test__hybrid_group_modifier1() argument 112 static int test__hybrid_raw1(struct evlist *evlist) in test__hybrid_raw1() argument 126 static int test__hybrid_raw2(struct evlist *evlist) in test__hybrid_raw2() argument 136 static int test__hybrid_cache_event(struct evlist *evlist) in test__hybrid_cache_event() argument 146 static int test__checkevent_pmu(struct evlist *evlist) in test__checkevent_pmu() argument 187 int (*check)(struct evlist *evlist); [all …]
|
| /linux/tools/perf/bench/ |
| A D | evlist-open-close.c | 68 static int evlist__count_evsel_fds(struct evlist *evlist) in evlist__count_evsel_fds() argument 82 struct evlist *evlist = evlist__new(); in bench__create_evlist() local 85 if (!evlist) { in bench__create_evlist() 108 return evlist; in bench__create_evlist() 111 evlist__delete(evlist); in bench__create_evlist() 115 static int bench__do_evlist_open_close(struct evlist *evlist) in bench__do_evlist_open_close() argument 134 evlist__close(evlist); in bench__do_evlist_open_close() 142 struct evlist *evlist = bench__create_evlist(evstr); in bench_evlist_open_close__run() local 149 if (!evlist) in bench_evlist_open_close__run() 157 evlist->core.nr_entries, evlist__count_evsel_fds(evlist)); in bench_evlist_open_close__run() [all …]
|
| /linux/tools/lib/perf/include/internal/ |
| A D | evlist.h | 54 int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); 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 125 u64 perf_evlist__read_format(struct perf_evlist *evlist); 127 void perf_evlist__id_add(struct perf_evlist *evlist, 131 int perf_evlist__id_add_fd(struct perf_evlist *evlist, [all …]
|
| /linux/tools/lib/perf/Documentation/examples/ |
| A D | counting.c | 21 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() 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() 77 perf_evlist__close(evlist); in main() [all …]
|