Home
last modified time | relevance | path

Searched refs:metric_events (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/tools/perf/tests/
Dexpand-cgroup.c17 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 …]
Dparse-metric.c48 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()
Dpmu-events.c876 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/
Dmetricgroup.h62 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);
Dmetricgroup.c35 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 …]
Dstat-shadow.c370 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 …]
Dstat.h112 struct rblist metric_events; member
179 struct rblist *metric_events);
181 struct rblist *metric_events,
189 struct rblist *metric_events);
Dcgroup.c417 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()
Dcgroup.h32 struct rblist *metric_events, bool open_cgroup);
Dstat-display.c857 &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()
Devsel.h111 struct evsel **metric_events; member
Devsel.c296 evsel->metric_events = NULL; in evsel__init()
1504 zfree(&evsel->metric_events); in evsel__exit()
/linux-6.12.1/tools/perf/
Dbuiltin-stat.c1959 &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()