Lines Matching refs:evlist
16 static int test_expand_events(struct evlist *evlist, in test_expand_events() argument
29 TEST_ASSERT_VAL("evlist is empty", !evlist__empty(evlist)); in test_expand_events()
31 nr_events = evlist->core.nr_entries; in test_expand_events()
38 evlist__for_each_entry(evlist, evsel) { in test_expand_events()
47 was_group_event = evsel__is_group_event(evlist__first(evlist)); in test_expand_events()
48 nr_members = evlist__first(evlist)->core.nr_members; in test_expand_events()
50 ret = evlist__expand_cgroup(evlist, cgrp_str, metric_events, false); in test_expand_events()
57 if (evlist->core.nr_entries != nr_events * nr_cgrps) { in test_expand_events()
63 evlist__for_each_entry(evlist, evsel) { in test_expand_events()
104 struct evlist *evlist = evlist__new_default(); in expand_default_events() local
106 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_default_events()
109 ret = test_expand_events(evlist, &metric_events); in expand_default_events()
110 evlist__delete(evlist); in expand_default_events()
117 struct evlist *evlist; in expand_group_events() local
124 evlist = evlist__new(); in expand_group_events()
125 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_group_events()
128 ret = parse_events(evlist, event_str, &err); in expand_group_events()
137 ret = test_expand_events(evlist, &metric_events); in expand_group_events()
140 evlist__delete(evlist); in expand_group_events()
147 struct evlist *evlist; in expand_libpfm_events() local
151 .value = &evlist, in expand_libpfm_events()
156 evlist = evlist__new(); in expand_libpfm_events()
157 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_libpfm_events()
165 if (evlist__empty(evlist)) { in expand_libpfm_events()
171 ret = test_expand_events(evlist, &metric_events); in expand_libpfm_events()
173 evlist__delete(evlist); in expand_libpfm_events()
180 struct evlist *evlist; in expand_metric_events() local
205 evlist = evlist__new(); in expand_metric_events()
206 TEST_ASSERT_VAL("failed to get evlist", evlist); in expand_metric_events()
209 ret = metricgroup__parse_groups_test(evlist, &ev_map, metric_str, in expand_metric_events()
216 ret = test_expand_events(evlist, &metric_events); in expand_metric_events()
220 evlist__delete(evlist); in expand_metric_events()