Home
last modified time | relevance | path

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

1234567

/linux/tools/perf/util/
A Devlist.h93 void evlist__exit(struct evlist *evlist);
94 void evlist__delete(struct evlist *evlist);
114 int evlist__add_dummy(struct evlist *evlist);
161 int evlist__open(struct evlist *evlist);
162 void evlist__close(struct evlist *evlist);
166 void evlist__set_id_pos(struct evlist *evlist);
187 void evlist__munmap(struct evlist *evlist);
191 void evlist__disable(struct evlist *evlist);
192 void evlist__enable(struct evlist *evlist);
204 void evlist__set_leader(struct evlist *evlist);
[all …]
A Devlist.c78 struct evlist *evlist = zalloc(sizeof(*evlist)); in evlist__new() local
88 struct evlist *evlist = evlist__new(); in evlist__new_default() local
90 if (evlist && evlist__add_default(evlist)) { in evlist__new_default()
100 struct evlist *evlist = evlist__new(); in evlist__new_dummy() local
102 if (evlist && evlist__add_dummy(evlist)) { in evlist__new_dummy()
117 void evlist__set_id_pos(struct evlist *evlist) in evlist__set_id_pos() argument
148 void evlist__exit(struct evlist *evlist) in evlist__exit() argument
155 void evlist__delete(struct evlist *evlist) in evlist__delete() argument
170 entry->evlist = evlist; in evlist__add()
770 struct evlist *evlist = container_of(_evlist, struct evlist, core); in perf_evlist__mmap_cb_idx() local
[all …]
A Dsideband_evlist.c15 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()
117 if (evsel__open(counter, evlist->core.cpus, evlist->core.threads) < 0) in evlist__start_sb_thread()
136 evlist__delete(evlist); in evlist__start_sb_thread()
137 evlist = NULL; in evlist__start_sb_thread()
141 void evlist__stop_sb_thread(struct evlist *evlist) in evlist__stop_sb_thread() argument
[all …]
A Dbpf-loader.h46 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 Drecord.c26 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__set_leader(evlist); in evlist__config()
109 if (evlist->core.cpus->map[0] < 0) in evlist__config()
149 evlist__set_id_pos(evlist); in evlist__config()
228 bool evlist__can_select_event(struct evlist *evlist, const char *str) in evlist__can_select_event() argument
230 struct evlist *temp_evlist; in evlist__can_select_event()
246 if (!evlist || perf_cpu_map__empty(evlist->core.cpus)) { in evlist__can_select_event()
[all …]
A Dbpf_counter_cgroup.c44 static int bperf_load_program(struct evlist *evlist) in bperf_load_program() argument
50 __u32 nr_cpus = evlist->core.all_cpus->nr; in bperf_load_program()
74 map_size = evlist->core.nr_entries; in bperf_load_program()
112 evlist__for_each_entry(evlist, evsel) { in bperf_load_program()
128 evlist->core.all_cpus->map[cpu]; in bperf_load_program()
208 static int bperf_cgrp__sync_counters(struct evlist *evlist) in bperf_cgrp__sync_counters() argument
211 int nr_cpus = evlist->core.all_cpus->nr; in bperf_cgrp__sync_counters()
215 cpu = evlist->core.all_cpus->map[i]; in bperf_cgrp__sync_counters()
246 struct evlist *evlist = evsel->evlist; in bperf_cgrp__read() local
265 evlist__for_each_entry(evlist, evsel) { in bperf_cgrp__read()
[all …]
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,
A Dsample-raw.h5 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 Devlist.c30 evlist->nr_entries = 0; in perf_evlist__init()
55 evlist->all_cpus = perf_cpu_map__merge(evlist->all_cpus, evsel->cpus); in __perf_evlist__propagate_maps()
84 struct perf_evlist *evlist = zalloc(sizeof(*evlist)); in perf_evlist__new() local
86 if (evlist != NULL) in perf_evlist__new()
89 return evlist; in perf_evlist__new()
137 if (evlist == NULL) in perf_evlist__delete()
144 free(evlist); in perf_evlist__delete()
390 maps = overwrite ? evlist->mmap_ovw : evlist->mmap; in perf_evlist__mmap_cb_get()
587 evlist->nr_mmaps = perf_evlist__nr_mmaps(evlist); in perf_evlist__mmap_ops()
643 return overwrite ? evlist->mmap_ovw_first : evlist->mmap_first; in perf_evlist__next_mmap()
[all …]
/linux/tools/lib/perf/tests/
A Dtest-evlist.c33 struct perf_evlist *evlist; in test_stat_cpu() local
48 evlist = perf_evlist__new(); in test_stat_cpu()
81 perf_evlist__close(evlist); in test_stat_cpu()
82 perf_evlist__delete(evlist); in test_stat_cpu()
92 struct perf_evlist *evlist; in test_stat_thread() local
109 evlist = perf_evlist__new(); in test_stat_thread()
136 perf_evlist__close(evlist); in test_stat_thread()
137 perf_evlist__delete(evlist); in test_stat_thread()
147 struct perf_evlist *evlist; in test_stat_thread_enable() local
202 perf_evlist__close(evlist); in test_stat_thread_enable()
[all …]
/linux/tools/perf/tests/
A Devent-times.c17 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 Dparse-events.c49 static int test__checkevent_tracepoint(struct evlist *evlist) in test__checkevent_tracepoint() argument
80 static int test__checkevent_raw(struct evlist *evlist) in test__checkevent_raw() argument
668 static int test__group1(struct evlist *evlist) in test__group1() argument
710 static int test__group2(struct evlist *evlist) in test__group2() argument
987 static int test__group_gh1(struct evlist *evlist) in test__group_gh1() argument
1027 static int test__group_gh2(struct evlist *evlist) in test__group_gh2() argument
1067 static int test__group_gh3(struct evlist *evlist) in test__group_gh3() argument
1107 static int test__group_gh4(struct evlist *evlist) in test__group_gh4() argument
1417 static int test__intel_pt(struct evlist *evlist) in test__intel_pt() argument
1643 int (*check)(struct evlist *evlist);
[all …]
A Dexpand-cgroup.c16 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 Dkeep-tracking.c33 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 Dbackward-ring-buffer.c32 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 Dswitch-tracking.c123 static int process_sample_event(struct evlist *evlist, in process_sample_event() argument
173 static int process_event(struct evlist *evlist, union perf_event *event, in process_event() argument
213 static int add_event(struct evlist *evlist, struct list_head *events, in add_event() argument
262 static int process_events(struct evlist *evlist, in process_events() argument
273 md = &evlist->mmap[i]; in process_events()
339 struct evlist *evlist = NULL; in test__switch_tracking() local
357 evlist = evlist__new(); in test__switch_tracking()
358 if (!evlist) { in test__switch_tracking()
475 evlist__enable(evlist); in test__switch_tracking()
541 evlist__disable(evlist); in test__switch_tracking()
[all …]
A Dpfm.c29 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 Dperf-record.c56 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 Dparse-metric.c106 static void load_runtime_stat(struct runtime_stat *st, struct evlist *evlist, in load_runtime_stat() argument
113 evlist__for_each_entry(evlist, evsel) { in load_runtime_stat()
121 static double compute_single(struct rblist *metric_events, struct evlist *evlist, in compute_single() argument
128 evlist__for_each_entry(evlist, evsel) { in compute_single()
150 struct evlist *evlist; in __compute_metric() local
157 evlist = evlist__new(); in __compute_metric()
158 if (!evlist) in __compute_metric()
163 evlist__delete(evlist); in __compute_metric()
182 load_runtime_stat(&st, evlist, vals); in __compute_metric()
194 evlist__free_stats(evlist); in __compute_metric()
[all …]
A Dopenat-syscall-tp-fields.c40 struct evlist *evlist = evlist__new(); in test__syscall_openat_tp_fields() local
45 if (evlist == NULL) { in test__syscall_openat_tp_fields()
56 evlist__add(evlist, evsel); in test__syscall_openat_tp_fields()
58 err = evlist__create_maps(evlist, &opts.target); in test__syscall_openat_tp_fields()
68 err = evlist__open(evlist); in test__syscall_openat_tp_fields()
75 err = evlist__mmap(evlist, UINT_MAX); in test__syscall_openat_tp_fields()
82 evlist__enable(evlist); in test__syscall_openat_tp_fields()
92 for (i = 0; i < evlist->core.nr_mmaps; i++) { in test__syscall_openat_tp_fields()
96 md = &evlist->mmap[i]; in test__syscall_openat_tp_fields()
132 evlist__poll(evlist, 10); in test__syscall_openat_tp_fields()
[all …]
/linux/tools/lib/perf/include/perf/
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);
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/bench/
A Devlist-open-close.c68 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 Devlist.h47 int perf_evlist__alloc_pollfd(struct perf_evlist *evlist);
51 int perf_evlist__mmap_ops(struct perf_evlist *evlist,
55 void perf_evlist__init(struct perf_evlist *evlist);
56 void perf_evlist__exit(struct perf_evlist *evlist);
71 #define perf_evlist__for_each_entry(evlist, evsel) \ argument
72 __perf_evlist__for_each_entry(&(evlist)->entries, evsel)
87 #define perf_evlist__for_each_entry_reverse(evlist, evsel) \ argument
118 u64 perf_evlist__read_format(struct perf_evlist *evlist);
120 void perf_evlist__id_add(struct perf_evlist *evlist,
124 int perf_evlist__id_add_fd(struct perf_evlist *evlist,
[all …]
/linux/tools/perf/
A Dbuiltin-top.c279 struct evlist *evlist = t->evlist; in perf_top__resort_hists() local
291 if (evlist->enabled) { in perf_top__resort_hists()
876 struct evlist *evlist = top->evlist; in perf_top__mmap_read_idx() local
880 md = opts->overwrite ? &evlist->overwrite_mmap[idx] : &evlist->mmap[idx]; in perf_top__mmap_read_idx()
911 struct evlist *evlist = top->evlist; in perf_top__mmap_read() local
946 struct evlist *evlist = top->evlist; in perf_top__overwrite_check() local
992 struct evlist *evlist = top->evlist; in perf_top_overwrite_fallback() local
1013 struct evlist *evlist = top->evlist; in perf_top__start_counters() local
1136 struct evlist *evlist = top->evlist; in deliver_event() local
1295 top->session->evlist = top->evlist; in __cmd_top()
[all …]
/linux/tools/lib/perf/Documentation/examples/
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()
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 …]

Completed in 49 milliseconds

1234567