Home
last modified time | relevance | path

Searched refs:metric_expr (Results 1 – 12 of 12) sorted by relevance

/tools/perf/util/
A Dmetricgroup.h38 const char *metric_expr; member
45 struct metric_expr { struct
48 const char *metric_expr; argument
A Dmetricgroup.c94 struct metric_expr *expr, *tmp; in metric_event_delete()
136 const char *metric_expr; member
246 m->metric_expr = pm->metric_expr; in metric__new()
407 if (!pm->metric_expr || !pm->compat) in metricgroup__sys_event_iter()
876 root_metric->metric_refs[cnt].metric_expr = pm->metric_expr; in __add_metric()
888 expr = pm->metric_expr; in __add_metric()
945 if (!strstr(pm->metric_expr, "?")) { in add_metric()
1381 struct metric_expr *expr; in parse_groups()
1429 m->metric_name, m->metric_expr); in parse_groups()
1445 expr->metric_expr = m->metric_expr; in parse_groups()
[all …]
A Dstat-shadow.c374 static int prepare_metric(const struct metric_expr *mexp, in prepare_metric()
488 struct metric_expr *mexp, in generic_metric()
495 const char *metric_expr = mexp->metric_expr; in generic_metric() local
520 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
536 if (strstr(metric_expr, "?")) in generic_metric()
566 double test_generic_metric(struct metric_expr *mexp, int aggr_idx) 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()
A Dexpr.c34 const char *metric_expr; member
204 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
212 ref->metric_name, ref->metric_expr); in expr__add_ref()
263 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id()
A Dprint-events.c305 const char *metric_expr; member
388 me->metric_expr = pm->metric_expr; in metricgroup__add_to_mep_groups_callback()
420 me->metric_expr, in metricgroup__print()
A Dstat.h233 struct metric_expr;
234 double test_generic_metric(struct metric_expr *mexp, int aggr_idx);
A Dpython.c1651 struct metric_expr *e = container_of(mpos, struct metric_expr, nd); in pyrf_evlist__from_evlist()
/tools/perf/pmu-events/
A Dpmu-events.h67 const char *metric_expr; member
A Djevents.py357 self.metric_expr = None
359 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
463 metrics.append((event.pmu, event.metric_name, event.metric_expr))
470 event.metric_expr = updates[event.metric_name]
A Dempty-pmu-events.c374 pm->metric_expr = (*p == '\0' ? NULL : p); in decompress_metric()
527 if (!pm.metric_expr) in pmu_metrics_table__for_each_metric_pmu()
/tools/perf/tests/
A Dparse-metric.c50 struct metric_expr *mexp; in compute_single()
A Dpmu-events.c851 if (!pm->metric_expr) in test__parsing_callback()
903 struct metric_expr *mexp; in test__parsing_callback()
1018 return metric_parse_fake(pm->metric_name, pm->metric_expr); in test__parsing_fake_callback()

Completed in 27 milliseconds