Lines Matching refs:evlist

15 int evlist__add_sb_event(struct evlist *evlist, struct perf_event_attr *attr,  in evlist__add_sb_event()  argument
25 evsel = evsel__new_idx(attr, evlist->core.nr_entries); in evlist__add_sb_event()
31 evlist__add(evlist, evsel); in evlist__add_sb_event()
37 struct evlist *evlist = arg; in perf_evlist__poll_thread() local
52 if (evlist->thread.done) in perf_evlist__poll_thread()
56 evlist__poll(evlist, 1000); in perf_evlist__poll_thread()
58 for (i = 0; i < evlist->core.nr_mmaps; i++) { in perf_evlist__poll_thread()
59 struct mmap *map = &evlist->mmap[i]; in perf_evlist__poll_thread()
65 struct evsel *evsel = evlist__event2evsel(evlist, event); in perf_evlist__poll_thread()
84 void evlist__set_cb(struct evlist *evlist, evsel__sb_cb_t cb, void *data) in evlist__set_cb() argument
88 evlist__for_each_entry(evlist, evsel) { in evlist__set_cb()
97 int evlist__start_sb_thread(struct evlist *evlist, struct target *target) in evlist__start_sb_thread() argument
101 if (!evlist) in evlist__start_sb_thread()
104 if (evlist__create_maps(evlist, target)) in evlist__start_sb_thread()
107 if (evlist->core.nr_entries > 1) { in evlist__start_sb_thread()
110 evlist__for_each_entry(evlist, counter) in evlist__start_sb_thread()
113 evlist__set_id_pos(evlist); in evlist__start_sb_thread()
116 evlist__for_each_entry(evlist, counter) { in evlist__start_sb_thread()
117 if (evsel__open(counter, evlist->core.cpus, evlist->core.threads) < 0) in evlist__start_sb_thread()
121 if (evlist__mmap(evlist, UINT_MAX)) in evlist__start_sb_thread()
124 evlist__for_each_entry(evlist, counter) { in evlist__start_sb_thread()
129 evlist->thread.done = 0; in evlist__start_sb_thread()
130 if (pthread_create(&evlist->thread.th, NULL, perf_evlist__poll_thread, evlist)) in evlist__start_sb_thread()
136 evlist__delete(evlist); in evlist__start_sb_thread()
137 evlist = NULL; in evlist__start_sb_thread()
141 void evlist__stop_sb_thread(struct evlist *evlist) in evlist__stop_sb_thread() argument
143 if (!evlist) in evlist__stop_sb_thread()
145 evlist->thread.done = 1; in evlist__stop_sb_thread()
146 pthread_join(evlist->thread.th, NULL); in evlist__stop_sb_thread()
147 evlist__delete(evlist); in evlist__stop_sb_thread()