Lines Matching refs:metric_expr
348 if (!counter->metric_expr) in perf_stat__collect_metric_expr()
354 if (expr__find_other(counter->metric_expr, in perf_stat__collect_metric_expr()
418 counter->metric_expr = NULL; in perf_stat__collect_metric_expr()
845 const char *metric_expr, in generic_metric() argument
867 if (expr__parse(&ratio, &pctx, metric_expr, runtime) == 0) { in generic_metric()
876 if (strstr(metric_expr, "?")) in generic_metric()
906 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st) in test_generic_metric()
914 if (expr__parse(&ratio, &pctx, mexp->metric_expr, 1)) in test_generic_metric()
1165 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats()
1166 generic_metric(config, evsel->metric_expr, evsel->metric_events, NULL, in perf_stat__print_shadow_stats()
1189 struct metric_expr *mexp; in perf_stat__print_shadow_stats()
1194 generic_metric(config, mexp->metric_expr, mexp->metric_events, in perf_stat__print_shadow_stats()