Home
last modified time | relevance | path

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

/linux/tools/perf/tests/
A Dparse-metric.c18 .metric_expr = "inst_retired.any / cpu_clk_unhalted.thread",
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)",
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)",
62 .metric_expr = "ipc + m2",
66 .metric_expr = "ipc + m1",
70 .metric_expr = "1/m3",
[all …]
A Dpmu-events.c333 if (!is_same(e1->metric_expr, e2->metric_expr)) { in compare_pmu_events()
335 e1->name, e1->metric_expr, e2->metric_expr); in compare_pmu_events()
799 pe->metric_name, id, pe->metric_expr); in check_parse_cpu()
804 id, pe->metric_name, pe->metric_expr); in check_parse_cpu()
829 pr_debug("On expression %s\n", pe->metric_expr); in expr_failure()
877 ref->metric_expr = pe->metric_expr; in resolve_metric_simple()
880 rc = expr__find_ids(pe->metric_expr, NULL, pctx); in resolve_metric_simple()
928 if (!pe->metric_expr) in test__parsing()
964 if (expr__parse(&result, ctx, pe->metric_expr)) { in test__parsing()
1064 if (!pe->metric_expr) in test__parsing_fake()
[all …]
A Dexpand-cgroup.c186 .metric_expr = "instructions / cycles", in expand_metric_events()
190 .metric_expr = "1 / IPC", in expand_metric_events()
194 .metric_expr = NULL, in expand_metric_events()
/linux/tools/perf/util/
A Dmetricgroup.c86 struct metric_expr *expr, *tmp; in metric_event_delete()
118 const char *metric_expr; member
138 const char *metric_expr; member
216 m->metric_expr = pe->metric_expr; in metric__new()
564 if (!pe->metric_expr) in metricgroup__print()
1008 root_metric->metric_refs[cnt].metric_expr = pe->metric_expr; in __add_metric()
1046 if (__pe->metric_expr && \
1406 struct metric_expr *expr; in parse_groups()
1463 expr->metric_expr = m->metric_expr; in parse_groups()
1539 if (!pe->metric_expr) in metricgroup__has_metric()
[all …]
A Dmetricgroup.h37 const char *metric_expr; member
44 struct metric_expr { struct
47 const char *metric_expr; argument
A Dexpr.c34 const char *metric_expr; member
213 data_ptr->ref.metric_expr = ref->metric_expr; in expr__add_ref()
222 ref->metric_name, ref->metric_expr); in expr__add_ref()
271 if (expr__parse(&data->ref.val, ctx, data->ref.metric_expr)) { in expr__resolve_id()
A 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()
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
1744 aliases[j].metric_expr = alias->metric_expr; in print_pmu_events()
1786 if (aliases[j].metric_expr) in print_pmu_events()
[all …]
A Dstat-shadow.c389 if (!counter->metric_expr) in perf_stat__collect_metric_expr()
395 if (expr__find_ids(counter->metric_expr, in perf_stat__collect_metric_expr()
460 counter->metric_expr = NULL; in perf_stat__collect_metric_expr()
870 const char *metric_expr, in generic_metric() argument
898 if (expr__parse(&ratio, pctx, metric_expr) == 0) { in generic_metric()
907 if (strstr(metric_expr, "?")) in generic_metric()
949 if (expr__parse(&ratio, pctx, mexp->metric_expr)) in test_generic_metric()
1282 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats()
1283 generic_metric(config, evsel->metric_expr, evsel->metric_events, NULL, in perf_stat__print_shadow_stats()
1303 struct metric_expr *mexp; in perf_stat__print_shadow_stats()
[all …]
A Dpmu.h62 const char *metric_expr; member
84 char *metric_expr; member
A Dstat.h256 struct metric_expr;
257 double test_generic_metric(struct metric_expr *mexp, int cpu, struct runtime_stat *st);
A Devsel.h97 const char * metric_expr; member
A Dparse-events.c1640 evsel->metric_expr = info.metric_expr; in parse_events_add_pmu()
A Devsel.c256 evsel->metric_expr = NULL; in evsel__init()
/linux/tools/perf/pmu-events/
A Djevents.c67 char *metric_expr; member
397 if (je->metric_expr) in print_events_table_entry()
398 fprintf(outfp, "\t.metric_expr = \"%s\",\n", je->metric_expr); in print_events_table_entry()
423 char *metric_expr; member
453 op(metric_expr); \
674 addfield(map, &je.metric_expr, "", "", val); in json_events()
675 for (s = je.metric_expr; *s; s++) in json_events()
732 free(je.metric_expr); in json_events()
A Dpmu-events.h24 const char *metric_expr; member

Completed in 41 milliseconds