| /tools/perf/util/ |
| A D | evlist.h | 107 void evlist__exit(struct evlist *evlist); 108 void evlist__delete(struct evlist *evlist); 116 int evlist__add_dummy(struct evlist *evlist); 171 int evlist__open(struct evlist *evlist); 172 void evlist__close(struct evlist *evlist); 176 void evlist__set_id_pos(struct evlist *evlist); 198 void evlist__munmap(struct evlist *evlist); 202 void evlist__disable(struct evlist *evlist); 203 void evlist__enable(struct evlist *evlist); 221 u16 evlist__id_hdr_size(struct evlist *evlist); [all …]
|
| A D | evlist.c | 92 struct evlist *evlist = zalloc(sizeof(*evlist)); in evlist__new() local 102 struct evlist *evlist = evlist__new(); in evlist__new_default() local 128 struct evlist *evlist = evlist__new(); in evlist__new_dummy() local 130 if (evlist && evlist__add_dummy(evlist)) { in evlist__new_dummy() 176 void evlist__exit(struct evlist *evlist) in evlist__exit() argument 185 void evlist__delete(struct evlist *evlist) in evlist__delete() argument 201 entry->evlist = evlist; in evlist__add() 789 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_idx() local 799 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_get() local 2294 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 | 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, struct perf_env *env);
|
| 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 | stat.h | 150 struct evlist; 198 struct evlist *evlist, bool alloc_raw); 199 void evlist__free_stats(struct evlist *evlist); 200 void evlist__reset_stats(struct evlist *evlist); 201 void evlist__reset_prev_raw_counts(struct evlist *evlist); 202 void evlist__copy_prev_raw_counts(struct evlist *evlist); 203 void evlist__save_aggr_prev_raw_counts(struct evlist *evlist); 205 int evlist__alloc_aggr_stats(struct evlist *evlist, int nr_aggr); 206 void evlist__reset_aggr_stats(struct evlist *evlist); 207 void evlist__copy_res_stats(struct perf_stat_config *config, struct evlist *evlist); [all …]
|
| A D | iostat.c | 7 __weak int iostat_prepare(struct evlist *evlist __maybe_unused, in iostat_prepare() 21 __weak void iostat_list(struct evlist *evlist __maybe_unused, in iostat_list() 26 __weak void iostat_release(struct evlist *evlist __maybe_unused) in iostat_release() 40 __weak void iostat_prefix(struct evlist *evlist __maybe_unused, in iostat_prefix() 47 __weak void iostat_print_counters(struct evlist *evlist __maybe_unused, in iostat_print_counters()
|
| 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 …]
|
| /tools/lib/perf/ |
| A D | evlist.c | 31 evlist->nr_entries = 0; in perf_evlist__init() 168 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); in perf_evlist__new() local 170 if (evlist != NULL) in perf_evlist__new() 173 return evlist; in perf_evlist__new() 221 if (evlist == NULL) in perf_evlist__delete() 228 free(evlist); in perf_evlist__delete() 477 maps = overwrite ? evlist->mmap_ovw : evlist->mmap; in perf_evlist__mmap_cb_get() 707 evlist->nr_mmaps = perf_evlist__nr_mmaps(evlist); in perf_evlist__mmap_ops() 742 if (evlist->mmap) { in perf_evlist__munmap() 752 zfree(&evlist->mmap); in perf_evlist__munmap() [all …]
|
| /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 …]
|
| /tools/perf/tests/ |
| A D | event-times.c | 17 static int attach__enable_on_exec(struct evlist *evlist) in attach__enable_on_exec() argument 51 static int detach__enable_on_exec(struct evlist *evlist) in detach__enable_on_exec() argument 57 static int attach__current_disabled(struct evlist *evlist) in attach__current_disabled() argument 83 static int attach__current_enabled(struct evlist *evlist) in attach__current_enabled() argument 103 static int detach__disable(struct evlist *evlist) in detach__disable() argument 110 static int attach__cpu_disabled(struct evlist *evlist) in attach__cpu_disabled() argument 139 static int attach__cpu_enabled(struct evlist *evlist) in attach__cpu_enabled() argument 165 struct evlist *evlist = NULL; in test_times() local 169 evlist = evlist__new(); in test_times() 170 if (!evlist) { in test_times() [all …]
|
| A D | expand-cgroup.c | 16 static int test_expand_events(struct evlist *evlist) in test_expand_events() argument 102 struct evlist *evlist = evlist__new_default(); in expand_default_events() local 107 evlist__delete(evlist); in expand_default_events() 114 struct evlist *evlist; in expand_group_events() local 120 evlist = evlist__new(); in expand_group_events() 134 evlist__delete(evlist); in expand_group_events() 141 struct evlist *evlist; in expand_libpfm_events() local 144 .value = &evlist, in expand_libpfm_events() 149 evlist = evlist__new(); in expand_libpfm_events() 165 evlist__delete(evlist); in expand_libpfm_events() [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 105 evlist = evlist__new(); in test__backward_ring_buffer() 106 if (!evlist) { in test__backward_ring_buffer() 132 err = evlist__open(evlist); in test__backward_ring_buffer() 151 evlist__close(evlist); in test__backward_ring_buffer() [all …]
|
| A D | parse-events.c | 114 static int test__checkevent_raw(struct evlist *evlist) in test__checkevent_raw() argument 856 static int test__group1(struct evlist *evlist) in test__group1() argument 904 static int test__group2(struct evlist *evlist) in test__group2() argument 1220 static int test__group_gh1(struct evlist *evlist) in test__group_gh1() argument 1267 static int test__group_gh2(struct evlist *evlist) in test__group_gh2() argument 1314 static int test__group_gh3(struct evlist *evlist) in test__group_gh3() argument 1361 static int test__group_gh4(struct evlist *evlist) in test__group_gh4() argument 1731 static int test__intel_pt(struct evlist *evlist) in test__intel_pt() argument 1864 int (*check)(struct evlist *evlist); 2462 struct evlist *evlist; in test_event() local [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 | switch-tracking.c | 125 static int process_sample_event(struct evlist *evlist, in process_sample_event() argument 181 static int process_event(struct evlist *evlist, union perf_event *event, in process_event() argument 221 static int add_event(struct evlist *evlist, struct list_head *events, in add_event() argument 270 static int process_events(struct evlist *evlist, in process_events() argument 281 md = &evlist->mmap[i]; in process_events() 348 struct evlist *evlist = NULL; in test__switch_tracking() local 366 evlist = evlist__new(); in test__switch_tracking() 367 if (!evlist) { in test__switch_tracking() 475 evlist__enable(evlist); in test__switch_tracking() 541 evlist__disable(evlist); in test__switch_tracking() [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 evlist *evlist, const char *name) in compute_single() argument 73 struct evlist *evlist; in __compute_metric() local 80 evlist = evlist__new(); in __compute_metric() 81 if (!evlist) in __compute_metric() 86 evlist__delete(evlist); in __compute_metric() 103 load_runtime_stat(evlist, vals); in __compute_metric() 113 evlist__free_stats(evlist); in __compute_metric() [all …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /tools/perf/bench/ |
| A D | evlist-open-close.c | 49 static int evlist__count_evsel_fds(struct evlist *evlist) in evlist__count_evsel_fds() argument 63 struct evlist *evlist = evlist__new(); in bench__create_evlist() local 66 if (!evlist) { in bench__create_evlist() 101 return evlist; in bench__create_evlist() 104 evlist__delete(evlist); in bench__create_evlist() 108 static int bench__do_evlist_open_close(struct evlist *evlist) in bench__do_evlist_open_close() argument 127 evlist__close(evlist); in bench__do_evlist_open_close() 135 struct evlist *evlist = bench__create_evlist(evstr, uid_str); in bench_evlist_open_close__run() local 142 if (!evlist) in bench_evlist_open_close__run() 150 evlist->core.nr_entries, evlist__count_evsel_fds(evlist)); in bench_evlist_open_close__run() [all …]
|
| /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 …]
|
| /tools/perf/python/ |
| A D | tracepoint.py | 19 evlist = perf.parse_events("sched:sched_switch", cpus, threads) 21 for ev in evlist: 24 evlist.config() 26 for ev in evlist: 30 evlist.open() 31 evlist.mmap() 32 evlist.enable(); 35 evlist.poll(timeout = -1) 37 event = evlist.read_on_cpu(cpu)
|