Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H A Dstat-shadow.c46 const struct metric_expr *mexp, in prepare_metric() argument
51 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric()
52 struct metric_ref *metric_refs = mexp->metric_refs; in prepare_metric()
71 mexp->metric_events[i]->pmu == evsel->metric_leader->pmu) { in prepare_metric()
77 if (pos->metric_leader != mexp->metric_events[i]) in prepare_metric()
120 struct metric_expr *mexp, in generic_metric() argument
126 const char *metric_name = mexp->metric_name; in generic_metric()
127 const char *metric_expr = mexp->metric_expr; in generic_metric()
128 const char *metric_threshold = mexp->metric_threshold; in generic_metric()
129 const char *metric_unit = mexp->metric_unit; in generic_metric()
[all …]
H A Dpython.c1334 static int prepare_metric(const struct metric_expr *mexp, in prepare_metric() argument
1339 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric()
1340 struct metric_ref *metric_refs = mexp->metric_refs; in prepare_metric()
1413 struct metric_expr *mexp = NULL; in pyrf_evlist__compute_metric() local
1422 mexp == NULL && node; in pyrf_evlist__compute_metric()
1449 mexp = e; in pyrf_evlist__compute_metric()
1455 if (!mexp) { in pyrf_evlist__compute_metric()
1465 ret = prepare_metric(mexp, metric_evsel, pctx, cpu_idx, thread_idx); in pyrf_evlist__compute_metric()
1472 if (expr__parse(&result, pctx, mexp->metric_expr)) in pyrf_evlist__compute_metric()
H A Dstat.h208 double test_generic_metric(struct metric_expr *mexp, int aggr_idx);
/linux/tools/perf/tests/
H A Dparse-metric.c49 struct metric_expr *mexp; in compute_single() local
56 list_for_each_entry (mexp, &me->head, nd) { in compute_single()
57 if (strcmp(mexp->metric_name, name)) in compute_single()
59 return test_generic_metric(mexp, 0); in compute_single()
H A Dpmu-events.c881 struct metric_expr *mexp; in test__parsing_callback() local
883 list_for_each_entry (mexp, &me->head, nd) { in test__parsing_callback()
884 if (strcmp(mexp->metric_name, pm->metric_name)) in test__parsing_callback()
886 pr_debug("Result %f\n", test_generic_metric(mexp, 0)); in test__parsing_callback()