Home
last modified time | relevance | path

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

/linux/tools/perf/util/
H A Dstat-shadow.c45 const struct metric_expr *mexp, in prepare_metric()
131 struct metric_expr *mexp, in generic_metric()
138 const char *metric_expr = mexp->metric_expr; in generic_metric()
163 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
179 if (strstr(metric_expr, "?")) in generic_metric()
209 double test_generic_metric(struct metric_expr *mexp, int aggr_idx) in test_generic_metric()
221 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
272 * metric_expr. in perf_stat__print_shadow_stats_metricgroup()
282 struct metric_expr *mex in perf_stat__print_shadow_stats_metricgroup()
135 const char *metric_expr = mexp->metric_expr; generic_metric() local
[all...]
H A Dmetricgroup.h38 const char *metric_expr; member
45 struct metric_expr { struct
48 const char *metric_expr; argument
H A Dmetricgroup.c94 struct metric_expr *expr, *tmp; in metric_event_delete()
121 * metric_expr.
136 const char *metric_expr; member
248 m->metric_expr = pm->metric_expr; in metric__new()
416 if (!pm->metric_expr || !pm->compat) in metricgroup__sys_event_iter()
887 root_metric->metric_refs[cnt].metric_expr = pm->metric_expr; in __add_metric()
891 root_metric->metric_refs[cnt+1].metric_expr = NULL; in __add_metric()
899 expr = pm->metric_expr; in __add_metric()
[all...]
H A Dprint-events.c193 const char *metric_expr; member
276 me->metric_expr = pm->metric_expr; in metricgroup__add_to_mep_groups_callback()
308 me->metric_expr, in metricgroup__print()
H A Dexpr.c35 const char *metric_expr;
214 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
222 ref->metric_name, ref->metric_expr); in expr__get_id()
273 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id()
34 const char *metric_expr; global() member
H A Dstat.h207 struct metric_expr;
208 double test_generic_metric(struct metric_expr *mexp, int aggr_idx);
H A Dpython.c1321 struct metric_expr *expr = container_of(pos, struct metric_expr, nd); in pyrf_evlist__metrics()
1334 static int prepare_metric(const struct metric_expr *mexp, in prepare_metric()
1413 struct metric_expr *mexp = NULL; in pyrf_evlist__compute_metric()
1428 struct metric_expr *e = container_of(pos, struct metric_expr, nd); in pyrf_evlist__compute_metric()
1472 if (expr__parse(&result, pctx, mexp->metric_expr)) in pyrf_evlist__compute_metric()
2050 struct metric_expr *e = container_of(mpos, struct metric_expr, nd); in pyrf_evlist__from_evlist()
2167 !add_to_dict(dict, "MetricExpr", pm->metric_expr) || in pyrf__metrics_cb()
/linux/tools/perf/pmu-events/
H A Dpmu-events.h67 const char *metric_expr; member
H A Djevents.py59 'metric_name', 'metric_group', 'metric_expr', 'metric_threshold',
362 self.metric_expr = None
364 self.metric_expr = metric.ParsePerfJson(jd['MetricExpr']).Simplify()
438 if metric and x and attr == 'metric_expr':
473 metrics.append((event.pmu, event.metric_name, event.metric_expr))
478 # print(f'Updated {event.metric_name} from\n"{event.metric_expr}"\n'
480 event.metric_expr = updates[event.metric_name]
1087 \t\tif (!pm.metric_expr)
H A Dempty-pmu-events.c5522 pm->metric_expr = (*p == '\0' ? NULL : p);
5682 if (!pm.metric_expr)
/linux/tools/perf/tests/
H A Dpmu-events.c833 if (strstr(pm->metric_expr, "#slots") && in test__parsing_callback()
852 if (!pm->metric_expr) in test__parsing_callback()
901 struct metric_expr *mexp; in test__parsing_callback()
1023 return metric_parse_fake(pm->metric_name, pm->metric_expr); in test__parsing_threshold_callback()
H A Dparse-metric.c51 struct metric_expr *mexp; in compute_single()
/linux/tools/perf/
H A Dbuiltin-script.c2252 struct metric_expr *expr; in script_find_metrics()
2260 * As the metric_expr is created, the only in script_find_metrics()