/linux-6.12.1/tools/perf/tests/ |
D | expand-cgroup.c | 17 struct rblist *metric_events) in test_expand_events() argument 50 ret = evlist__expand_cgroup(evlist, cgrp_str, metric_events, false); in test_expand_events() 103 struct rblist metric_events; in expand_default_events() local 108 rblist__init(&metric_events); in expand_default_events() 109 ret = test_expand_events(evlist, &metric_events); in expand_default_events() 118 struct rblist metric_events; in expand_group_events() local 135 rblist__init(&metric_events); in expand_group_events() 136 ret = test_expand_events(evlist, &metric_events); in expand_group_events() 147 struct rblist metric_events; in expand_libpfm_events() local 169 rblist__init(&metric_events); in expand_libpfm_events() [all …]
|
D | parse-metric.c | 48 static double compute_single(struct rblist *metric_events, struct evlist *evlist, in compute_single() argument 56 me = metricgroup__lookup(metric_events, evsel, false); in compute_single() 72 struct rblist metric_events = { in __compute_metric() local 99 &metric_events); in __compute_metric() 112 *ratio1 = compute_single(&metric_events, evlist, name1); in __compute_metric() 114 *ratio2 = compute_single(&metric_events, evlist, name2); in __compute_metric() 118 metricgroup__rblist_exit(&metric_events); in __compute_metric()
|
D | pmu-events.c | 876 struct rblist metric_events = { in test__parsing_callback() local 903 err = metricgroup__parse_groups_test(evlist, table, pm->metric_name, &metric_events); in test__parsing_callback() 930 struct metric_event *me = metricgroup__lookup(&metric_events, evsel, false); in test__parsing_callback() 952 metricgroup__rblist_exit(&metric_events); in test__parsing_callback()
|
/linux-6.12.1/tools/perf/util/ |
D | metricgroup.h | 62 struct evsel **metric_events; member 69 struct metric_event *metricgroup__lookup(struct rblist *metric_events, 81 struct rblist *metric_events); 85 struct rblist *metric_events); 91 void metricgroup__rblist_exit(struct rblist *metric_events);
|
D | metricgroup.c | 35 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup() argument 44 if (!metric_events) in metricgroup__lookup() 49 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 53 rblist__add_node(metric_events, &me); in metricgroup__lookup() 54 nd = rblist__find(metric_events, &me); in metricgroup__lookup() 98 zfree(&expr->metric_events); in metric_event_delete() 105 static void metricgroup__rblist_init(struct rblist *metric_events) in metricgroup__rblist_init() argument 107 rblist__init(metric_events); in metricgroup__rblist_init() 108 metric_events->node_cmp = metric_event_cmp; in metricgroup__rblist_init() 109 metric_events->node_new = metric_event_new; in metricgroup__rblist_init() [all …]
|
D | stat-shadow.c | 370 struct evsel * const *metric_events = mexp->metric_events; in prepare_metric() local 374 for (i = 0; metric_events[i]; i++) { in prepare_metric() 379 if (evsel__is_tool(metric_events[i])) { in prepare_metric() 383 switch (evsel__tool_event(metric_events[i])) { in prepare_metric() 403 pr_err("Unknown tool event '%s'", evsel__name(metric_events[i])); in prepare_metric() 409 struct perf_stat_evsel *ps = metric_events[i]->stats; in prepare_metric() 419 mexp->metric_events[i]->pmu == evsel->metric_leader->pmu) { in prepare_metric() 425 if (pos->metric_leader != mexp->metric_events[i]) in prepare_metric() 436 if (!metric_events[i]->supported) { in prepare_metric() 449 source_count = evsel__source_count(metric_events[i]); in prepare_metric() [all …]
|
D | stat.h | 112 struct rblist metric_events; member 179 struct rblist *metric_events); 181 struct rblist *metric_events, 189 struct rblist *metric_events);
|
D | cgroup.c | 417 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup() argument 443 if (metric_events) { in evlist__expand_cgroup() 444 orig_metric_events = *metric_events; in evlist__expand_cgroup() 445 rblist__init(metric_events); in evlist__expand_cgroup() 493 if (metric_events) { in evlist__expand_cgroup() 495 metric_events, in evlist__expand_cgroup()
|
D | cgroup.h | 32 struct rblist *metric_events, bool open_cgroup);
|
D | stat-display.c | 857 &config->metric_events); in printout() 861 &out, &config->metric_events); in printout() 996 if (perf_stat__skip_metric_event(counter, &config->metric_events, ena, run)) in print_counter_aggrdata() 1249 &config->metric_events); in print_metric_headers()
|
D | evsel.h | 111 struct evsel **metric_events; member
|
D | evsel.c | 296 evsel->metric_events = NULL; in evsel__init() 1504 zfree(&evsel->metric_events); in evsel__exit()
|
/linux-6.12.1/tools/perf/ |
D | builtin-stat.c | 1959 &stat_config.metric_events); in add_default_attributes() 1993 &stat_config.metric_events); in add_default_attributes() 2028 &stat_config.metric_events) < 0) in add_default_attributes() 2070 &stat_config.metric_events) < 0) in add_default_attributes() 2754 &stat_config.metric_events); in cmd_stat() 2775 &stat_config.metric_events, true) < 0) { in cmd_stat() 2947 metricgroup__rblist_exit(&stat_config.metric_events); in cmd_stat()
|