| /Linux-v5.10/tools/perf/tests/ |
| D | parse-metric.c | 17 .metric_expr = "inst_retired.any / cpu_clk_unhalted.thread", 22 .metric_expr = "idq_uops_not_delivered.core / (4 * (( ( cpu_clk_unhalted.thread / 2 ) * " 27 .metric_expr = "l1d\\-loads\\-misses / inst_retired.any", 31 .metric_expr = "l1i\\-loads\\-misses / inst_retired.any", 35 .metric_expr = "(dcache_miss_cpi + icache_miss_cycles)", 40 .metric_expr = "l2_rqsts.demand_data_rd_hit + l2_rqsts.pf_hit + l2_rqsts.rfo_hit", 44 .metric_expr = "max(l2_rqsts.all_demand_data_rd - l2_rqsts.demand_data_rd_hit, 0) + " 49 .metric_expr = "dcache_l2_all_hits + dcache_l2_all_miss", 53 .metric_expr = "d_ratio(dcache_l2_all_hits, dcache_l2_all)", 57 .metric_expr = "d_ratio(dcache_l2_all_miss, dcache_l2_all)", [all …]
|
| D | pmu-events.c | 216 if (!is_same(table->metric_expr, te->metric_expr)) { in test_pmu_event_table() 218 table->name, table->metric_expr, in test_pmu_event_table() 219 te->metric_expr); in test_pmu_event_table() 423 pe->metric_name, id, pe->metric_expr); in check_parse_cpu() 428 id, pe->metric_name, pe->metric_expr); in check_parse_cpu() 457 pr_debug("On expression %s\n", pe->metric_expr); in expr_failure() 483 if (!pe->metric_expr) in test_parsing() 486 if (expr__find_other(pe->metric_expr, NULL, &ctx, 0) in test_parsing() 508 if (expr__parse(&result, &ctx, pe->metric_expr, 0)) { in test_parsing() 602 if (!pe->metric_expr) in test_parsing_fake() [all …]
|
| D | expand-cgroup.c | 185 .metric_expr = "instructions / cycles", in expand_metric_events() 189 .metric_expr = "1 / IPC", in expand_metric_events() 193 .metric_expr = NULL, in expand_metric_events()
|
| /Linux-v5.10/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 300 struct metric_expr *expr; in metricgroup__setup_events() 327 m->metric_name, m->metric_expr); in metricgroup__setup_events() 339 expr = malloc(sizeof(struct metric_expr)); in metricgroup__setup_events() 370 metric_refs[i].metric_expr = ref->metric_expr; in metricgroup__setup_events() 376 expr->metric_expr = m->metric_expr; in metricgroup__setup_events() 523 if (!pe->metric_expr) in metricgroup__print() 556 s, 8, "[", pe->metric_expr) < 0) in metricgroup__print() [all …]
|
| D | metricgroup.h | 26 const char *metric_expr; member 29 struct metric_expr { struct 31 const char *metric_expr; argument
|
| D | expr.c | 116 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref() 126 ref->metric_name, ref->metric_expr); in expr__add_ref() 157 if (expr__parse(&data->val, ctx, data->ref.metric_expr, 1)) { in expr__resolve_id()
|
| D | pmu.c | 265 perf_pmu_assign_str(old->name, "metric_expr", &old->metric_expr, in perf_pmu_update_alias() 266 &newalias->metric_expr); in perf_pmu_update_alias() 284 zfree(&newalias->metric_expr); in perf_pmu_free_alias() 312 char *metric_expr, in __perf_pmu__new_alias() argument 372 alias->metric_expr = metric_expr ? strdup(metric_expr) : NULL; in __perf_pmu__new_alias() 782 (char *)pe->metric_expr, in pmu_add_cpu_aliases_map() 1290 info->metric_expr = NULL; in perf_pmu__check_alias() 1307 info->metric_expr = alias->metric_expr; in perf_pmu__check_alias() 1414 char *metric_expr; member 1527 aliases[j].metric_expr = alias->metric_expr; in print_pmu_events() [all …]
|
| D | stat-shadow.c | 348 if (!counter->metric_expr) in perf_stat__collect_metric_expr() 354 if (expr__find_other(counter->metric_expr, in perf_stat__collect_metric_expr() 418 counter->metric_expr = NULL; in perf_stat__collect_metric_expr() 845 const char *metric_expr, in generic_metric() argument 867 if (expr__parse(&ratio, &pctx, metric_expr, runtime) == 0) { in generic_metric() 876 if (strstr(metric_expr, "?")) in generic_metric() 906 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st) in test_generic_metric() 914 if (expr__parse(&ratio, &pctx, mexp->metric_expr, 1)) in test_generic_metric() 1165 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats() 1166 generic_metric(config, evsel->metric_expr, evsel->metric_events, NULL, in perf_stat__print_shadow_stats() [all …]
|
| D | pmu.h | 50 const char *metric_expr; member 72 char *metric_expr; member
|
| D | stat.h | 247 struct metric_expr; 248 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st);
|
| D | expr.h | 31 const char *metric_expr; member
|
| D | evsel.h | 88 const char * metric_expr; member
|
| D | parse-events.c | 1553 evsel->metric_expr = info.metric_expr; in parse_events_add_pmu()
|
| D | evsel.c | 254 evsel->metric_expr = NULL; in evsel__init()
|
| /Linux-v5.10/tools/perf/pmu-events/ |
| D | jevents.c | 65 char *metric_expr; member 374 if (je->metric_expr) in print_events_table_entry() 375 fprintf(outfp, "\t.metric_expr = \"%s\",\n", je->metric_expr); in print_events_table_entry() 399 char *metric_expr; member 429 op(metric_expr); \ 640 addfield(map, &je.metric_expr, "", "", val); in json_events() 641 for (s = je.metric_expr; *s; s++) in json_events() 694 free(je.metric_expr); in json_events()
|
| D | pmu-events.h | 23 const char *metric_expr; member
|