Lines Matching refs:evlist
27 static int find_comm(struct perf_evlist *evlist, const char *comm) in find_comm() argument
34 for (i = 0; i < evlist->nr_mmaps; i++) { in find_comm()
35 md = &evlist->mmap[i]; in find_comm()
70 struct perf_evlist *evlist = NULL; in test__keep_tracking() local
81 evlist = perf_evlist__new(); in test__keep_tracking()
82 CHECK_NOT_NULL__(evlist); in test__keep_tracking()
84 perf_evlist__set_maps(evlist, cpus, threads); in test__keep_tracking()
86 CHECK__(parse_events(evlist, "dummy:u", NULL)); in test__keep_tracking()
87 CHECK__(parse_events(evlist, "cycles:u", NULL)); in test__keep_tracking()
89 perf_evlist__config(evlist, &opts, NULL); in test__keep_tracking()
91 evsel = perf_evlist__first(evlist); in test__keep_tracking()
97 if (perf_evlist__open(evlist) < 0) { in test__keep_tracking()
103 CHECK__(perf_evlist__mmap(evlist, UINT_MAX)); in test__keep_tracking()
110 perf_evlist__enable(evlist); in test__keep_tracking()
115 perf_evlist__disable(evlist); in test__keep_tracking()
117 found = find_comm(evlist, comm); in test__keep_tracking()
128 perf_evlist__enable(evlist); in test__keep_tracking()
130 evsel = perf_evlist__last(evlist); in test__keep_tracking()
137 perf_evlist__disable(evlist); in test__keep_tracking()
139 found = find_comm(evlist, comm); in test__keep_tracking()
148 if (evlist) { in test__keep_tracking()
149 perf_evlist__disable(evlist); in test__keep_tracking()
150 perf_evlist__delete(evlist); in test__keep_tracking()