Lines Matching refs:evlist
52 struct perf_evlist *evlist = NULL; in test__perf_time_to_tsc() local
68 evlist = perf_evlist__new(); in test__perf_time_to_tsc()
69 CHECK_NOT_NULL__(evlist); in test__perf_time_to_tsc()
71 perf_evlist__set_maps(evlist, cpus, threads); in test__perf_time_to_tsc()
73 CHECK__(parse_events(evlist, "cycles:u", NULL)); in test__perf_time_to_tsc()
75 perf_evlist__config(evlist, &opts); in test__perf_time_to_tsc()
77 evsel = perf_evlist__first(evlist); in test__perf_time_to_tsc()
83 CHECK__(perf_evlist__open(evlist)); in test__perf_time_to_tsc()
85 CHECK__(perf_evlist__mmap(evlist, UINT_MAX, false)); in test__perf_time_to_tsc()
87 pc = evlist->mmap[0].base; in test__perf_time_to_tsc()
97 perf_evlist__enable(evlist); in test__perf_time_to_tsc()
107 perf_evlist__disable(evlist); in test__perf_time_to_tsc()
109 for (i = 0; i < evlist->nr_mmaps; i++) { in test__perf_time_to_tsc()
110 while ((event = perf_evlist__mmap_read(evlist, i)) != NULL) { in test__perf_time_to_tsc()
129 perf_evlist__mmap_consume(evlist, i); in test__perf_time_to_tsc()
158 if (evlist) { in test__perf_time_to_tsc()
159 perf_evlist__disable(evlist); in test__perf_time_to_tsc()
160 perf_evlist__delete(evlist); in test__perf_time_to_tsc()