Lines Matching refs:evlist
33 static int find_comm(struct evlist *evlist, const char *comm) in find_comm() argument
40 for (i = 0; i < evlist->core.nr_mmaps; i++) { in find_comm()
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()
90 perf_evlist__set_maps(&evlist->core, cpus, threads); in test__keep_tracking()
92 CHECK__(parse_event(evlist, "dummy:u")); in test__keep_tracking()
93 CHECK__(parse_event(evlist, "cycles:u")); in test__keep_tracking()
95 evlist__config(evlist, &opts, NULL); in test__keep_tracking()
97 evsel = evlist__first(evlist); in test__keep_tracking()
103 if (evlist__open(evlist) < 0) { in test__keep_tracking()
109 CHECK__(evlist__mmap(evlist, UINT_MAX)); in test__keep_tracking()
116 evlist__enable(evlist); in test__keep_tracking()
121 evlist__disable(evlist); in test__keep_tracking()
123 found = find_comm(evlist, comm); in test__keep_tracking()
134 evlist__enable(evlist); in test__keep_tracking()
136 evsel = evlist__last(evlist); in test__keep_tracking()
143 evlist__disable(evlist); in test__keep_tracking()
145 found = find_comm(evlist, comm); in test__keep_tracking()
154 if (evlist) { in test__keep_tracking()
155 evlist__disable(evlist); in test__keep_tracking()
156 evlist__delete(evlist); in test__keep_tracking()