/linux-6.3-rc2/tools/perf/util/ |
A D | evlist.h | 97 void evlist__exit(struct evlist *evlist); 98 void evlist__delete(struct evlist *evlist); 124 int evlist__add_dummy(struct evlist *evlist); 181 int evlist__open(struct evlist *evlist); 182 void evlist__close(struct evlist *evlist); 186 void evlist__set_id_pos(struct evlist *evlist); 207 void evlist__munmap(struct evlist *evlist); 211 void evlist__disable(struct evlist *evlist); 212 void evlist__enable(struct evlist *evlist); 228 u16 evlist__id_hdr_size(struct evlist *evlist); [all …]
|
A D | evlist.c | 83 struct evlist *evlist = zalloc(sizeof(*evlist)); in evlist__new() local 93 struct evlist *evlist = evlist__new(); in evlist__new_default() local 105 struct evlist *evlist = evlist__new(); in evlist__new_dummy() local 107 if (evlist && evlist__add_dummy(evlist)) { in evlist__new_dummy() 153 void evlist__exit(struct evlist *evlist) in evlist__exit() argument 161 void evlist__delete(struct evlist *evlist) in evlist__delete() argument 176 entry->evlist = evlist; in evlist__add() 831 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_idx() local 841 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_get() local 2234 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 | bpf-loader.h | 46 struct evlist; 76 struct evlist *evlist, int *error_pos); 79 struct evlist *evlist, 85 int bpf__setup_stdout(struct evlist *evlist); 86 struct evsel *bpf__setup_output_event(struct evlist *evlist, const char *name); 87 int bpf__strerror_setup_output_event(struct evlist *evlist, int err, char *buf, size_t size); 125 struct evlist *evlist __maybe_unused, in bpf__config_obj() 138 bpf__setup_stdout(struct evlist *evlist __maybe_unused) in bpf__setup_stdout() 144 bpf__setup_output_event(struct evlist *evlist __maybe_unused, const char *name __maybe_unused) in bpf__setup_output_event() 188 struct evlist *evlist __maybe_unused, in bpf__strerror_config_obj() [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 | stat.h | 223 struct evlist; 261 struct evlist *evlist, bool alloc_raw); 262 void evlist__free_stats(struct evlist *evlist); 263 void evlist__reset_stats(struct evlist *evlist); 264 void evlist__reset_prev_raw_counts(struct evlist *evlist); 265 void evlist__copy_prev_raw_counts(struct evlist *evlist); 266 void evlist__save_aggr_prev_raw_counts(struct evlist *evlist); 268 int evlist__alloc_aggr_stats(struct evlist *evlist, int nr_aggr); 269 void evlist__reset_aggr_stats(struct evlist *evlist); 273 void perf_stat_merge_counters(struct perf_stat_config *config, struct evlist *evlist); [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);
|
A D | evlist-hybrid.h | 10 int evlist__add_default_hybrid(struct evlist *evlist, bool precise); 11 void evlist__warn_hybrid_group(struct evlist *evlist); 12 bool evlist__has_hybrid(struct evlist *evlist); 13 int evlist__fix_hybrid_cpus(struct evlist *evlist, const char *cpu_list);
|
/linux-6.3-rc2/tools/lib/perf/ |
A D | evlist.c | 31 evlist->nr_entries = 0; in perf_evlist__init() 63 evlist->all_cpus = perf_cpu_map__merge(evlist->all_cpus, evsel->cpus); in __perf_evlist__propagate_maps() 96 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); in perf_evlist__new() local 98 if (evlist != NULL) in perf_evlist__new() 101 return evlist; in perf_evlist__new() 149 if (evlist == NULL) in perf_evlist__delete() 156 free(evlist); in perf_evlist__delete() 399 maps = overwrite ? evlist->mmap_ovw : evlist->mmap; in perf_evlist__mmap_cb_get() 629 evlist->nr_mmaps = perf_evlist__nr_mmaps(evlist); in perf_evlist__mmap_ops() 685 return overwrite ? evlist->mmap_ovw_first : evlist->mmap_first; in perf_evlist__next_mmap() [all …]
|
/linux-6.3-rc2/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() 140 evlist__delete(evlist); in expand_group_events() 147 struct evlist *evlist; in expand_libpfm_events() local 151 .value = &evlist, in expand_libpfm_events() 156 evlist = evlist__new(); in expand_libpfm_events() 173 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 | 51 static int test__checkevent_tracepoint(struct evlist *evlist) in test__checkevent_tracepoint() argument 83 static int test__checkevent_raw(struct evlist *evlist) in test__checkevent_raw() argument 675 static int test__group1(struct evlist *evlist) in test__group1() argument 717 static int test__group2(struct evlist *evlist) in test__group2() argument 996 static int test__group_gh1(struct evlist *evlist) in test__group_gh1() argument 1036 static int test__group_gh2(struct evlist *evlist) in test__group_gh2() argument 1076 static int test__group_gh3(struct evlist *evlist) in test__group_gh3() argument 1426 static int test__intel_pt(struct evlist *evlist) in test__intel_pt() argument 1652 int (*check)(struct evlist *evlist); 2063 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() 479 evlist__enable(evlist); in test__switch_tracking() 545 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->core.nr_groups, 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 | 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 runtime_stat *st, struct evlist *evlist, in load_runtime_stat() argument 40 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 55 evlist__for_each_entry(evlist, evsel) { in compute_single() 78 struct evlist *evlist; in __compute_metric() local 85 evlist = evlist__new(); in __compute_metric() 86 if (!evlist) in __compute_metric() 91 evlist__delete(evlist); in __compute_metric() 111 load_runtime_stat(&st, evlist, vals); in __compute_metric() 123 evlist__free_stats(evlist); in __compute_metric() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/tools/lib/perf/include/internal/ |
A D | evlist.h | 55 int perf_evlist__alloc_pollfd(struct perf_evlist *evlist); 59 int perf_evlist__mmap_ops(struct perf_evlist *evlist, 63 void perf_evlist__init(struct perf_evlist *evlist); 64 void perf_evlist__exit(struct perf_evlist *evlist); 79 #define perf_evlist__for_each_entry(evlist, evsel) \ argument 80 __perf_evlist__for_each_entry(&(evlist)->entries, evsel) 95 #define perf_evlist__for_each_entry_reverse(evlist, evsel) \ argument 126 u64 perf_evlist__read_format(struct perf_evlist *evlist); 128 void perf_evlist__id_add(struct perf_evlist *evlist, 132 int perf_evlist__id_add_fd(struct perf_evlist *evlist, [all …]
|
/linux-6.3-rc2/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 …]
|