Home
last modified time | relevance | path

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

/linux-6.1.9/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
136 rblist__init(&metric_events); in expand_group_events()
137 ret = test_expand_events(evlist, &metric_events); in expand_group_events()
148 struct rblist metric_events; in expand_libpfm_events() local
170 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
102 &metric_events); in __compute_metric()
115 *ratio1 = compute_single(&metric_events, evlist, &st, name1); in __compute_metric()
117 *ratio2 = compute_single(&metric_events, evlist, &st, name2); in __compute_metric()
121 metricgroup__rblist_exit(&metric_events); in __compute_metric()
Dpmu-events.c851 struct rblist metric_events = { in test__parsing_callback() local
881 &metric_events); in test__parsing_callback()
908 struct metric_event *me = metricgroup__lookup(&metric_events, evsel, false); in test__parsing_callback()
930 metricgroup__rblist_exit(&metric_events); in test__parsing_callback()
/linux-6.1.9/tools/perf/util/
Dmetricgroup.h57 struct evsel **metric_events; member
64 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
73 struct rblist *metric_events);
79 struct rblist *metric_events);
85 void metricgroup__rblist_exit(struct rblist *metric_events);
Dmetricgroup.c32 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup() argument
41 if (!metric_events) in metricgroup__lookup()
44 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
48 rblist__add_node(metric_events, &me); in metricgroup__lookup()
49 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
92 free(expr->metric_events); in metric_event_delete()
99 static void metricgroup__rblist_init(struct rblist *metric_events) in metricgroup__rblist_init() argument
101 rblist__init(metric_events); in metricgroup__rblist_init()
102 metric_events->node_cmp = metric_event_cmp; in metricgroup__rblist_init()
103 metric_events->node_new = metric_event_new; in metricgroup__rblist_init()
[all …]
Dstat-shadow.c363 struct evsel *counter, *leader, **metric_events, *oc; in perf_stat__collect_metric_expr() local
383 metric_events = counter->metric_events; in perf_stat__collect_metric_expr()
384 if (!metric_events) { in perf_stat__collect_metric_expr()
390 metric_events = calloc(sizeof(struct evsel *), in perf_stat__collect_metric_expr()
392 if (!metric_events) { in perf_stat__collect_metric_expr()
396 counter->metric_events = metric_events; in perf_stat__collect_metric_expr()
443 metric_events[i++] = oc; in perf_stat__collect_metric_expr()
446 metric_events[i] = NULL; in perf_stat__collect_metric_expr()
448 free(metric_events); in perf_stat__collect_metric_expr()
449 counter->metric_events = NULL; in perf_stat__collect_metric_expr()
[all …]
Dcgroup.c409 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup() argument
435 if (metric_events) { in evlist__expand_cgroup()
436 orig_metric_events = *metric_events; in evlist__expand_cgroup()
437 rblist__init(metric_events); in evlist__expand_cgroup()
483 if (metric_events) { in evlist__expand_cgroup()
486 metric_events, in evlist__expand_cgroup()
Dcgroup.h31 struct rblist *metric_events, bool open_cgroup);
Dstat.h163 struct rblist metric_events; member
246 struct rblist *metric_events,
Devsel.h110 struct evsel **metric_events; member
Dstat-display.c653 &out, &config->metric_events, st); in printout()
1174 &config->metric_events, in print_metric_headers()
Devsel.c290 evsel->metric_events = NULL; in evsel__init()
1510 zfree(&evsel->metric_events); in evsel__exit()
/linux-6.1.9/tools/perf/
Dbuiltin-stat.c1760 &stat_config.metric_events); in add_default_attributes()
2415 &stat_config.metric_events); in cmd_stat()
2433 &stat_config.metric_events, true) < 0) { in cmd_stat()
2606 metricgroup__rblist_exit(&stat_config.metric_events); in cmd_stat()