Lines Matching refs:ev
190 struct evsel *ev, *current_leader = NULL; in find_evsel_group() local
206 evlist__for_each_entry (perf_evlist, ev) { in find_evsel_group()
211 if (has_constraint && ev->weak_group) in find_evsel_group()
214 if (metric_no_merge && test_bit(ev->idx, evlist_used)) in find_evsel_group()
216 if (!has_constraint && ev->leader != current_leader) { in find_evsel_group()
224 current_leader = ev->leader; in find_evsel_group()
234 if (contains_event(metric_events, matched_events, ev->name)) in find_evsel_group()
237 if (hashmap__find(&pctx->ids, ev->name, (void **)&val_ptr)) in find_evsel_group()
238 metric_events[matched_events++] = ev; in find_evsel_group()
246 evlist__for_each_entry(perf_evlist, ev) { in find_evsel_group()
247 if (!strcmp(ev->name, "duration_time")) { in find_evsel_group()
248 metric_events[matched_events++] = ev; in find_evsel_group()
262 ev = metric_events[i]; in find_evsel_group()
264 set_bit(ev->idx, evlist_used); in find_evsel_group()
269 ev->metric_leader = ev; in find_evsel_group()
276 evlist__for_each_entry_continue(perf_evlist, ev) { in find_evsel_group()
282 ev->leader != metric_events[i]->leader) in find_evsel_group()
284 if (!strcmp(metric_events[i]->name, ev->name)) { in find_evsel_group()
285 set_bit(ev->idx, evlist_used); in find_evsel_group()
286 ev->metric_leader = metric_events[i]; in find_evsel_group()