Lines Matching refs:evlist
33 static void load_runtime_stat(struct evlist *evlist, struct value *vals) in load_runtime_stat() argument
38 evlist__alloc_aggr_stats(evlist, 1); in load_runtime_stat()
39 evlist__for_each_entry(evlist, evsel) { in load_runtime_stat()
48 static double compute_single(struct evlist *evlist, const char *name) in compute_single() argument
54 evlist__for_each_entry(evlist, evsel) { in compute_single()
55 me = metricgroup__lookup(&evlist->metric_events, evsel, false); in compute_single()
73 struct evlist *evlist; in __compute_metric() local
80 evlist = evlist__new(); in __compute_metric()
81 if (!evlist) in __compute_metric()
86 evlist__delete(evlist); in __compute_metric()
90 perf_evlist__set_maps(&evlist->core, cpus, NULL); in __compute_metric()
94 err = metricgroup__parse_groups_test(evlist, pme_test, name); in __compute_metric()
98 err = evlist__alloc_stats(/*config=*/NULL, evlist, /*alloc_raw=*/false); in __compute_metric()
103 load_runtime_stat(evlist, vals); in __compute_metric()
107 *ratio1 = compute_single(evlist, name1); in __compute_metric()
109 *ratio2 = compute_single(evlist, name2); in __compute_metric()
113 evlist__free_stats(evlist); in __compute_metric()
115 evlist__delete(evlist); in __compute_metric()