Lines Matching refs:evlist

33 	struct perf_evlist *evlist;  in test_stat_cpu()  local
48 evlist = perf_evlist__new(); in test_stat_cpu()
49 __T("failed to create evlist", evlist); in test_stat_cpu()
54 perf_evlist__add(evlist, evsel); in test_stat_cpu()
59 perf_evlist__add(evlist, evsel); in test_stat_cpu()
61 perf_evlist__set_leader(evlist); in test_stat_cpu()
65 perf_evlist__set_maps(evlist, cpus, NULL); in test_stat_cpu()
67 err = perf_evlist__open(evlist); in test_stat_cpu()
70 perf_evlist__for_each_evsel(evlist, evsel) { 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()
110 __T("failed to create evlist", evlist); in test_stat_thread()
115 perf_evlist__add(evlist, evsel); in test_stat_thread()
120 perf_evlist__add(evlist, evsel); in test_stat_thread()
122 perf_evlist__set_leader(evlist); in test_stat_thread()
126 perf_evlist__set_maps(evlist, NULL, threads); in test_stat_thread()
128 err = perf_evlist__open(evlist); in test_stat_thread()
131 perf_evlist__for_each_evsel(evlist, evsel) { 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
166 evlist = perf_evlist__new(); in test_stat_thread_enable()
167 __T("failed to create evlist", evlist); in test_stat_thread_enable()
172 perf_evlist__add(evlist, evsel); in test_stat_thread_enable()
177 perf_evlist__add(evlist, evsel); in test_stat_thread_enable()
179 perf_evlist__set_leader(evlist); in test_stat_thread_enable()
183 perf_evlist__set_maps(evlist, NULL, threads); in test_stat_thread_enable()
185 err = perf_evlist__open(evlist); in test_stat_thread_enable()
188 perf_evlist__for_each_evsel(evlist, evsel) { in test_stat_thread_enable()
193 perf_evlist__enable(evlist); in test_stat_thread_enable()
195 perf_evlist__for_each_evsel(evlist, evsel) { in test_stat_thread_enable()
200 perf_evlist__disable(evlist); in test_stat_thread_enable()
202 perf_evlist__close(evlist); in test_stat_thread_enable()
203 perf_evlist__delete(evlist); in test_stat_thread_enable()
211 struct perf_evlist *evlist; in test_mmap_thread() local
265 evlist = perf_evlist__new(); in test_mmap_thread()
266 __T("failed to create evlist", evlist); in test_mmap_thread()
272 perf_evlist__add(evlist, evsel); in test_mmap_thread()
274 perf_evlist__set_maps(evlist, cpus, threads); in test_mmap_thread()
276 err = perf_evlist__open(evlist); in test_mmap_thread()
279 err = perf_evlist__mmap(evlist, 4); in test_mmap_thread()
282 perf_evlist__enable(evlist); in test_mmap_thread()
293 perf_evlist__for_each_mmap(evlist, map, false) { in test_mmap_thread()
306 perf_evlist__delete(evlist); in test_mmap_thread()
322 struct perf_evlist *evlist; in test_mmap_cpus() local
351 evlist = perf_evlist__new(); in test_mmap_cpus()
352 __T("failed to create evlist", evlist); in test_mmap_cpus()
358 perf_evlist__add(evlist, evsel); in test_mmap_cpus()
360 perf_evlist__set_maps(evlist, cpus, NULL); in test_mmap_cpus()
362 err = perf_evlist__open(evlist); in test_mmap_cpus()
365 err = perf_evlist__mmap(evlist, 4); in test_mmap_cpus()
368 perf_evlist__enable(evlist); in test_mmap_cpus()
388 perf_evlist__disable(evlist); in test_mmap_cpus()
390 perf_evlist__for_each_mmap(evlist, map, false) { in test_mmap_cpus()
403 perf_evlist__delete(evlist); in test_mmap_cpus()