Home
last modified time | relevance | path

Searched refs:mexp (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/tools/perf/util/
H A Dstat-shadow.c524 double test_generic_metric(struct metric_expr *mexp, int aggr_idx) in test_generic_metric() argument
533 if (prepare_metric(mexp->metric_events, mexp->metric_refs, pctx, aggr_idx) < 0) in test_generic_metric()
536 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
600 struct metric_expr *mexp = from; in perf_stat__print_shadow_stats_metricgroup() local
609 if (!mexp) in perf_stat__print_shadow_stats_metricgroup()
610 mexp = list_first_entry(&me->head, typeof(*mexp), nd); in perf_stat__print_shadow_stats_metricgroup()
612 list_for_each_entry_from(mexp, &me->head, nd) { in perf_stat__print_shadow_stats_metricgroup()
616 name = mexp->default_metricgroup_name; in perf_stat__print_shadow_stats_metricgroup()
623 if (strcmp(name, mexp->default_metricgroup_name)) in perf_stat__print_shadow_stats_metricgroup()
624 return (void *)mexp; in perf_stat__print_shadow_stats_metricgroup()
[all …]
H A Dstat.h227 double test_generic_metric(struct metric_expr *mexp, int aggr_idx);
/openbmc/linux/tools/perf/tests/
H A Dparse-metric.c51 struct metric_expr *mexp; in compute_single() local
58 list_for_each_entry (mexp, &me->head, nd) { in compute_single()
59 if (strcmp(mexp->metric_name, name)) in compute_single()
61 return test_generic_metric(mexp, 0); in compute_single()
H A Dpmu-events.c873 struct metric_expr *mexp; in test__parsing_callback() local
875 list_for_each_entry (mexp, &me->head, nd) { in test__parsing_callback()
876 if (strcmp(mexp->metric_name, pm->metric_name)) in test__parsing_callback()
878 pr_debug("Result %f\n", test_generic_metric(mexp, 0)); in test__parsing_callback()