Home
last modified time | relevance | path

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

/Linux-v4.19/tools/perf/util/
Dmetricgroup.c94 const char *metric_expr; member
132 struct metric_expr *expr; in metricgroup__setup_events()
150 eg->metric_name, eg->metric_expr); in metricgroup__setup_events()
160 expr = malloc(sizeof(struct metric_expr)); in metricgroup__setup_events()
165 expr->metric_expr = eg->metric_expr; in metricgroup__setup_events()
301 if (!pe->metric_expr) in metricgroup__print()
386 if (!pe->metric_expr) in metricgroup__add_metric()
394 pr_debug("metric expr %s for %s\n", pe->metric_expr, pe->metric_name); in metricgroup__add_metric()
396 if (expr__find_other(pe->metric_expr, in metricgroup__add_metric()
417 eg->metric_expr = pe->metric_expr; in metricgroup__add_metric()
[all …]
Dmetricgroup.h16 struct metric_expr { struct
18 const char *metric_expr; argument
Dpmu.c262 perf_pmu_assign_str(old->name, "metric_expr", &old->metric_expr, in perf_pmu_update_alias()
263 &newalias->metric_expr); in perf_pmu_update_alias()
281 zfree(&newalias->metric_expr); in perf_pmu_free_alias()
309 char *metric_expr, in __perf_pmu__new_alias() argument
367 alias->metric_expr = metric_expr ? strdup(metric_expr) : NULL; in __perf_pmu__new_alias()
785 (char *)pe->metric_expr, in pmu_add_cpu_aliases()
1212 info->metric_expr = NULL; in perf_pmu__check_alias()
1229 info->metric_expr = alias->metric_expr; in perf_pmu__check_alias()
1325 char *metric_expr; member
1424 aliases[j].metric_expr = alias->metric_expr; in print_pmu_events()
[all …]
Dpmu.h37 const char *metric_expr; member
58 char *metric_expr; member
Dstat-shadow.c325 if (!counter->metric_expr) in perf_stat__collect_metric_expr()
329 if (expr__find_other(counter->metric_expr, counter->name, in perf_stat__collect_metric_expr()
384 counter->metric_expr = NULL; in perf_stat__collect_metric_expr()
701 static void generic_metric(const char *metric_expr, in generic_metric() argument
737 const char *p = metric_expr; in generic_metric()
962 } else if (evsel->metric_expr) { in perf_stat__print_shadow_stats()
963 generic_metric(evsel->metric_expr, evsel->metric_events, evsel->name, in perf_stat__print_shadow_stats()
986 struct metric_expr *mexp; in perf_stat__print_shadow_stats()
991 generic_metric(mexp->metric_expr, mexp->metric_events, in perf_stat__print_shadow_stats()
Devsel.h143 const char * metric_expr; member
Dparse-events.c1296 evsel->metric_expr = info.metric_expr; in parse_events_add_pmu()
Devsel.c243 evsel->metric_expr = NULL; in perf_evsel__init()
/Linux-v4.19/tools/perf/pmu-events/
Djevents.c319 char *metric_expr, in print_events_table_entry() argument
346 if (metric_expr) in print_events_table_entry()
347 fprintf(outfp, "\t.metric_expr = \"%s\",\n", metric_expr); in print_events_table_entry()
366 char *metric_expr; member
393 op(metric_expr); \
413 char *unit, char *perpkg, char *metric_expr, in save_arch_std_events() argument
476 char **perpkg, char **unit, char **metric_expr, char **metric_name, in try_fixup() argument
504 char *metric_expr, in json_events() argument
531 char *metric_expr = NULL; in json_events() local
617 addfield(map, &metric_expr, "", "", val); in json_events()
[all …]
Dpmu-events.h17 const char *metric_expr; member
Djevents.h9 char *unit, char *perpkg, char *metric_expr,