Home
last modified time | relevance | path

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

/Linux-v6.1/tools/perf/pmu-events/
Dempty-pmu-events.c109 .metric_expr = "1 / IPC",
113 .metric_expr = "inst_retired.any / cpu_clk_unhalted.thread",
118 .metric_expr = "idq_uops_not_delivered.core / (4 * (( ( cpu_clk_unhalted.thread / 2 ) * "
123 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any",
127 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any",
131 .metric_expr = "(dcache_miss_cpi + icache_miss_cycles)",
136 .metric_expr = "l2_rqsts.demand_data_rd_hit + l2_rqsts.pf_hit + l2_rqsts.rfo_hit",
140 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + "
145 .metric_expr = "DCache_L2_All_Hits + DCache_L2_All_Miss",
149 .metric_expr = "d_ratio(DCache_L2_All_Hits, DCache_L2_All)",
[all …]
Dpmu-events.h26 const char *metric_expr; member
Djevents.py271 self.metric_expr = jd.get('MetricExpr')
272 if self.metric_expr:
273 self.metric_expr = self.metric_expr.replace('\\', '\\\\')
/Linux-v6.1/tools/perf/util/
Dmetricgroup.h36 const char *metric_expr; member
43 struct metric_expr { struct
46 const char *metric_expr; member
Dmetricgroup.c87 struct metric_expr *expr, *tmp; in metric_event_delete()
128 const char *metric_expr; member
218 m->metric_expr = pe->metric_expr; in metric__new()
474 s, 8, "[", pe->metric_expr) < 0) in metricgroup__print_pmu_event()
520 if (!pe->metric_expr || !pe->compat) in metricgroup__sys_event_iter()
560 if (!pe->metric_expr) in metricgroup__print_callback()
1064 root_metric->metric_refs[cnt].metric_expr = pe->metric_expr; in __add_metric()
1068 root_metric->metric_refs[cnt+1].metric_expr = NULL; in __add_metric()
1075 if (expr__find_ids(pe->metric_expr, NULL, root_metric->pctx) < 0) { in __add_metric()
1138 pr_debug("metric expr %s for %s\n", pe->metric_expr, pe->metric_name); in add_metric()
[all …]
Dexpr.c35 const char *metric_expr; member
205 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
214 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()
Dpmu.c269 perf_pmu_assign_str(old->name, "metric_expr", &old->metric_expr, in perf_pmu_update_alias()
270 &newalias->metric_expr); in perf_pmu_update_alias()
288 zfree(&newalias->metric_expr); in perf_pmu_free_alias()
326 *metric_expr = NULL, *metric_name = NULL, *deprecated = NULL, in __perf_pmu__new_alias() local
334 metric_expr = (char *)pe->metric_expr; in __perf_pmu__new_alias()
390 alias->metric_expr = metric_expr ? strdup(metric_expr) : NULL; in __perf_pmu__new_alias()
1452 info->metric_expr = NULL; in perf_pmu__check_alias()
1469 info->metric_expr = alias->metric_expr; in perf_pmu__check_alias()
1576 char *metric_expr; member
1718 aliases[j].metric_expr = alias->metric_expr; in print_pmu_events()
[all …]
Dstat-shadow.c379 if (!counter->metric_expr) in perf_stat__collect_metric_expr()
385 if (expr__find_ids(counter->metric_expr, in perf_stat__collect_metric_expr()
450 counter->metric_expr = NULL; in perf_stat__collect_metric_expr()
886 const char *metric_expr, in generic_metric() argument
917 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
926 if (strstr(metric_expr, "?")) in generic_metric()
956 double test_generic_metric(struct metric_expr *mexp, int map_idx, struct runtime_stat *st) in test_generic_metric()
968 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
1301 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats()
1302 generic_metric(config, evsel->metric_expr, evsel->metric_events, NULL, in perf_stat__print_shadow_stats()
[all …]
Dpmu.h65 const char *metric_expr; member
87 char *metric_expr; member
Dstat.h279 struct metric_expr;
280 double test_generic_metric(struct metric_expr *mexp, int map_idx, struct runtime_stat *st);
Devsel.h108 const char * metric_expr; member
Dparse-events.c1557 evsel->metric_expr = info.metric_expr; in parse_events_add_pmu()
Devsel.c288 evsel->metric_expr = NULL; in evsel__init()
/Linux-v6.1/tools/perf/tests/
Dpmu-events.c339 if (!is_same(e1->metric_expr, e2->metric_expr)) { in compare_pmu_events()
341 e1->name, e1->metric_expr, e2->metric_expr); in compare_pmu_events()
856 if (!pe->metric_expr) in test__parsing_callback()
911 struct metric_expr *mexp; in test__parsing_callback()
1022 if (!pe->metric_expr) in test__parsing_fake_callback()
1025 return metric_parse_fake(pe->metric_expr); in test__parsing_fake_callback()
Dparse-metric.c51 struct metric_expr *mexp; in compute_single()