Lines Matching refs:evlist
50 struct perf_evlist *evlist = NULL; in test__perf_time_to_tsc() local
66 evlist = perf_evlist__new(); in test__perf_time_to_tsc()
67 CHECK_NOT_NULL__(evlist); in test__perf_time_to_tsc()
69 perf_evlist__set_maps(evlist, cpus, threads); in test__perf_time_to_tsc()
71 CHECK__(parse_events(evlist, "cycles:u")); in test__perf_time_to_tsc()
73 perf_evlist__config(evlist, &opts); in test__perf_time_to_tsc()
75 evsel = perf_evlist__first(evlist); in test__perf_time_to_tsc()
81 CHECK__(perf_evlist__open(evlist)); in test__perf_time_to_tsc()
83 CHECK__(perf_evlist__mmap(evlist, UINT_MAX, false)); in test__perf_time_to_tsc()
85 pc = evlist->mmap[0].base; in test__perf_time_to_tsc()
95 perf_evlist__enable(evlist); in test__perf_time_to_tsc()
105 perf_evlist__disable(evlist); in test__perf_time_to_tsc()
107 for (i = 0; i < evlist->nr_mmaps; i++) { in test__perf_time_to_tsc()
108 while ((event = perf_evlist__mmap_read(evlist, i)) != NULL) { in test__perf_time_to_tsc()
127 perf_evlist__mmap_consume(evlist, i); in test__perf_time_to_tsc()
156 if (evlist) { in test__perf_time_to_tsc()
157 perf_evlist__disable(evlist); in test__perf_time_to_tsc()
158 perf_evlist__delete(evlist); in test__perf_time_to_tsc()