Lines Matching refs:mexp
374 static int prepare_metric(const struct metric_expr *mexp, in prepare_metric() argument
379 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric()
380 struct metric_ref *metric_refs = mexp->metric_refs; in prepare_metric()
437 mexp->metric_events[i]->pmu == evsel->metric_leader->pmu) { in prepare_metric()
443 if (pos->metric_leader != mexp->metric_events[i]) in prepare_metric()
488 struct metric_expr *mexp, in generic_metric() argument
494 const char *metric_name = mexp->metric_name; in generic_metric()
495 const char *metric_expr = mexp->metric_expr; in generic_metric()
496 const char *metric_threshold = mexp->metric_threshold; in generic_metric()
497 const char *metric_unit = mexp->metric_unit; in generic_metric()
498 struct evsel * const *metric_events = mexp->metric_events; in generic_metric()
499 int runtime = mexp->runtime; in generic_metric()
514 i = prepare_metric(mexp, evsel, pctx, aggr_idx); in generic_metric()
566 double test_generic_metric(struct metric_expr *mexp, int aggr_idx) in test_generic_metric() argument
575 if (prepare_metric(mexp, /*evsel=*/NULL, pctx, aggr_idx) < 0) in test_generic_metric()
578 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
641 struct metric_expr *mexp = from; in perf_stat__print_shadow_stats_metricgroup() local
651 if (!mexp) in perf_stat__print_shadow_stats_metricgroup()
652 mexp = list_first_entry(&me->head, typeof(*mexp), nd); in perf_stat__print_shadow_stats_metricgroup()
654 list_for_each_entry_from(mexp, &me->head, nd) { in perf_stat__print_shadow_stats_metricgroup()
658 name = mexp->default_metricgroup_name; in perf_stat__print_shadow_stats_metricgroup()
665 if (strcmp(name, mexp->default_metricgroup_name)) in perf_stat__print_shadow_stats_metricgroup()
666 return (void *)mexp; in perf_stat__print_shadow_stats_metricgroup()
677 generic_metric(config, mexp, evsel, aggr_idx, out); in perf_stat__print_shadow_stats_metricgroup()