Lines Matching defs:mexp
517 double test_generic_metric(struct metric_expr *mexp, int aggr_idx)
526 if (prepare_metric(mexp->metric_events, mexp->metric_refs, pctx, aggr_idx) < 0)
529 if (expr__parse(&ratio, pctx, mexp->metric_expr))
593 struct metric_expr *mexp = from;
602 if (!mexp)
603 mexp = list_first_entry(&me->head, typeof(*mexp), nd);
605 list_for_each_entry_from(mexp, &me->head, nd) {
609 name = mexp->default_metricgroup_name;
616 if (strcmp(name, mexp->default_metricgroup_name))
617 return (void *)mexp;
628 generic_metric(config, mexp->metric_expr, mexp->metric_threshold,
629 mexp->metric_events, mexp->metric_refs, evsel->name,
630 mexp->metric_name, mexp->metric_unit, mexp->runtime,