Lines Matching refs:evlist

68 static int evlist__count_evsel_fds(struct evlist *evlist)  in evlist__count_evsel_fds()  argument
73 evlist__for_each_entry(evlist, evsel) in evlist__count_evsel_fds()
79 static struct evlist *bench__create_evlist(char *evstr) in bench__create_evlist()
82 struct evlist *evlist = evlist__new(); in bench__create_evlist() local
85 if (!evlist) { in bench__create_evlist()
91 ret = parse_events(evlist, evstr, &err); in bench__create_evlist()
100 ret = evlist__create_maps(evlist, &opts.target); in bench__create_evlist()
106 evlist__config(evlist, &opts, NULL); in bench__create_evlist()
108 return evlist; in bench__create_evlist()
111 evlist__delete(evlist); in bench__create_evlist()
115 static int bench__do_evlist_open_close(struct evlist *evlist) in bench__do_evlist_open_close() argument
118 int err = evlist__open(evlist); in bench__do_evlist_open_close()
125 err = evlist__mmap(evlist, opts.mmap_pages); in bench__do_evlist_open_close()
131 evlist__enable(evlist); in bench__do_evlist_open_close()
132 evlist__disable(evlist); in bench__do_evlist_open_close()
133 evlist__munmap(evlist); in bench__do_evlist_open_close()
134 evlist__close(evlist); in bench__do_evlist_open_close()
142 struct evlist *evlist = bench__create_evlist(evstr); in bench_evlist_open_close__run() local
149 if (!evlist) in bench_evlist_open_close__run()
154 printf(" Number of cpus:\t%d\n", evlist->core.cpus->nr); in bench_evlist_open_close__run()
155 printf(" Number of threads:\t%d\n", evlist->core.threads->nr); in bench_evlist_open_close__run()
157 evlist->core.nr_entries, evlist__count_evsel_fds(evlist)); in bench_evlist_open_close__run()
160 evlist__delete(evlist); in bench_evlist_open_close__run()
164 evlist = bench__create_evlist(evstr); in bench_evlist_open_close__run()
165 if (!evlist) in bench_evlist_open_close__run()
169 err = bench__do_evlist_open_close(evlist); in bench_evlist_open_close__run()
171 evlist__delete(evlist); in bench_evlist_open_close__run()
180 evlist__delete(evlist); in bench_evlist_open_close__run()