Lines Matching refs:mexp

365 static int prepare_metric(const struct metric_expr *mexp,  in prepare_metric()  argument
370 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric()
371 struct metric_ref *metric_refs = mexp->metric_refs; in prepare_metric()
419 mexp->metric_events[i]->pmu == evsel->metric_leader->pmu) { in prepare_metric()
425 if (pos->metric_leader != mexp->metric_events[i]) in prepare_metric()
470 struct metric_expr *mexp, in generic_metric() argument
476 const char *metric_name = mexp->metric_name; in generic_metric()
477 const char *metric_expr = mexp->metric_expr; in generic_metric()
478 const char *metric_threshold = mexp->metric_threshold; in generic_metric()
479 const char *metric_unit = mexp->metric_unit; in generic_metric()
480 struct evsel * const *metric_events = mexp->metric_events; in generic_metric()
481 int runtime = mexp->runtime; in generic_metric()
496 i = prepare_metric(mexp, evsel, pctx, aggr_idx); in generic_metric()
548 double test_generic_metric(struct metric_expr *mexp, int aggr_idx) in test_generic_metric() argument
557 if (prepare_metric(mexp, /*evsel=*/NULL, pctx, aggr_idx) < 0) in test_generic_metric()
560 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
624 struct metric_expr *mexp = from; in perf_stat__print_shadow_stats_metricgroup() local
633 if (!mexp) in perf_stat__print_shadow_stats_metricgroup()
634 mexp = list_first_entry(&me->head, typeof(*mexp), nd); in perf_stat__print_shadow_stats_metricgroup()
636 list_for_each_entry_from(mexp, &me->head, nd) { in perf_stat__print_shadow_stats_metricgroup()
640 name = mexp->default_metricgroup_name; in perf_stat__print_shadow_stats_metricgroup()
647 if (strcmp(name, mexp->default_metricgroup_name)) in perf_stat__print_shadow_stats_metricgroup()
648 return (void *)mexp; in perf_stat__print_shadow_stats_metricgroup()
659 generic_metric(config, mexp, evsel, aggr_idx, out); in perf_stat__print_shadow_stats_metricgroup()