| /Linux-v5.15/tools/perf/tests/ |
| D | parse-metric.c | 18 .metric_expr = "inst_retired.any / cpu_clk_unhalted.thread", 23 .metric_expr = "idq_uops_not_delivered.core / (4 * (( ( cpu_clk_unhalted.thread / 2 ) * " 28 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any", 32 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any", 36 .metric_expr = "(dcache_miss_cpi + icache_miss_cycles)", 41 .metric_expr = "l2_rqsts.demand_data_rd_hit + l2_rqsts.pf_hit + l2_rqsts.rfo_hit", 45 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + " 50 .metric_expr = "dcache_l2_all_hits + dcache_l2_all_miss", 54 .metric_expr = "d_ratio(dcache_l2_all_hits, dcache_l2_all)", 58 .metric_expr = "d_ratio(dcache_l2_all_miss, dcache_l2_all)", [all …]
|
| D | pmu-events.c | 288 if (!is_same(e1->metric_expr, e2->metric_expr)) { in compare_pmu_events() 290 e1->name, e1->metric_expr, e2->metric_expr); in compare_pmu_events() 729 pe->metric_name, id, pe->metric_expr); in check_parse_cpu() 734 id, pe->metric_name, pe->metric_expr); in check_parse_cpu() 763 pr_debug("On expression %s\n", pe->metric_expr); in expr_failure() 811 ref->metric_expr = pe->metric_expr; in resolve_metric_simple() 814 rc = expr__find_other(pe->metric_expr, NULL, pctx, 0); in resolve_metric_simple() 856 if (!pe->metric_expr) in test_parsing() 859 if (expr__find_other(pe->metric_expr, NULL, &ctx, 0) in test_parsing() 893 if (expr__parse(&result, &ctx, pe->metric_expr, 0)) { in test_parsing() [all …]
|
| D | expand-cgroup.c | 184 .metric_expr = "instructions / cycles", in expand_metric_events() 188 .metric_expr = "1 / IPC", in expand_metric_events() 192 .metric_expr = NULL, in expand_metric_events()
|
| /Linux-v5.15/tools/perf/util/ |
| D | metricgroup.c | 84 struct metric_expr *expr, *tmp; in metric_event_delete() 115 const char *metric_expr; member 123 const char *metric_expr; member 309 struct metric_expr *expr; in metricgroup__setup_events() 336 m->metric_name, m->metric_expr); in metricgroup__setup_events() 348 expr = malloc(sizeof(struct metric_expr)); in metricgroup__setup_events() 379 metric_refs[i].metric_expr = ref->metric_expr; in metricgroup__setup_events() 385 expr->metric_expr = m->metric_expr; in metricgroup__setup_events() 550 s, 8, "[", pe->metric_expr) < 0) in metricgroup__print_pmu_event() 596 if (!pe->metric_expr || !pe->compat) in metricgroup__sys_event_iter() [all …]
|
| D | metricgroup.h | 25 const char *metric_expr; member 28 struct metric_expr { struct 30 const char *metric_expr; argument
|
| D | expr.c | 26 const char *metric_expr; member 140 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref() 149 ref->metric_name, ref->metric_expr); in expr__add_ref() 186 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr, 1)) { in expr__resolve_id()
|
| D | pmu.c | 269 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() 1478 info->metric_expr = NULL; in perf_pmu__check_alias() 1495 info->metric_expr = alias->metric_expr; in perf_pmu__check_alias() 1602 char *metric_expr; member 1715 aliases[j].metric_expr = alias->metric_expr; in print_pmu_events() [all …]
|
| D | stat-shadow.c | 383 if (!counter->metric_expr) in perf_stat__collect_metric_expr() 389 if (expr__find_other(counter->metric_expr, in perf_stat__collect_metric_expr() 453 counter->metric_expr = NULL; in perf_stat__collect_metric_expr() 871 const char *metric_expr, in generic_metric() argument 893 if (expr__parse(&ratio, &pctx, metric_expr, runtime) == 0) { in generic_metric() 902 if (strstr(metric_expr, "?")) in generic_metric() 932 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st) in test_generic_metric() 940 if (expr__parse(&ratio, &pctx, mexp->metric_expr, 1)) in test_generic_metric() 1273 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats() 1274 generic_metric(config, evsel->metric_expr, evsel->metric_events, NULL, in perf_stat__print_shadow_stats() [all …]
|
| D | pmu.h | 58 const char *metric_expr; member 80 char *metric_expr; member
|
| D | stat.h | 256 struct metric_expr; 257 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st);
|
| D | evsel.h | 95 const char * metric_expr; member
|
| D | parse-events.c | 1641 evsel->metric_expr = info.metric_expr; in parse_events_add_pmu()
|
| D | evsel.c | 256 evsel->metric_expr = NULL; in evsel__init()
|
| /Linux-v5.15/tools/perf/pmu-events/ |
| D | jevents.c | 66 char *metric_expr; member 398 if (je->metric_expr) in print_events_table_entry() 399 fprintf(outfp, "\t.metric_expr = \"%s\",\n", je->metric_expr); in print_events_table_entry() 424 char *metric_expr; member 454 op(metric_expr); \ 667 addfield(map, &je.metric_expr, "", "", val); in json_events() 668 for (s = je.metric_expr; *s; s++) in json_events() 722 free(je.metric_expr); in json_events()
|
| D | pmu-events.h | 24 const char *metric_expr; member
|