Lines Matching refs:evlist
32 static int count_samples(struct evlist *evlist, int *sample_count, in count_samples() argument
37 for (i = 0; i < evlist->core.nr_mmaps; i++) { in count_samples()
38 struct mmap *map = &evlist->overwrite_mmap[i]; in count_samples()
62 static int do_test(struct evlist *evlist, int mmap_pages, in do_test() argument
68 err = evlist__mmap(evlist, mmap_pages); in do_test()
75 evlist__enable(evlist); in do_test()
77 evlist__disable(evlist); in do_test()
79 err = count_samples(evlist, sample_count, comm_count); in do_test()
80 evlist__munmap(evlist); in do_test()
89 struct evlist *evlist; in test__backward_ring_buffer() local
106 evlist = evlist__new(); in test__backward_ring_buffer()
107 if (!evlist) { in test__backward_ring_buffer()
112 err = evlist__create_maps(evlist, &opts.target); in test__backward_ring_buffer()
123 err = parse_events(evlist, "syscalls:sys_enter_prctl/overwrite/", &parse_error); in test__backward_ring_buffer()
131 evlist__config(evlist, &opts, NULL); in test__backward_ring_buffer()
133 err = evlist__open(evlist); in test__backward_ring_buffer()
141 err = do_test(evlist, opts.mmap_pages, &sample_count, in test__backward_ring_buffer()
152 evlist__close(evlist); in test__backward_ring_buffer()
154 err = evlist__open(evlist); in test__backward_ring_buffer()
161 err = do_test(evlist, 1, &sample_count, &comm_count); in test__backward_ring_buffer()
167 evlist__delete(evlist); in test__backward_ring_buffer()