Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
104 struct rblist metric_events; in expand_default_events() local
109 rblist__init(&metric_events); in expand_default_events()
110 ret = test_expand_events(evlist, &metric_events); in expand_default_events()
119 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()
147 struct rblist metric_events; in expand_libpfm_events() local
169 rblist__init(&metric_events); in expand_libpfm_events()
[all …]
Dparse-metric.c113 static double compute_single(struct rblist *metric_events, struct evlist *evlist, in compute_single() argument
121 me = metricgroup__lookup(metric_events, evsel, false); in compute_single()
137 struct rblist metric_events = { in __compute_metric() local
165 &metric_events); in __compute_metric()
178 *ratio1 = compute_single(&metric_events, evlist, &st, name1); in __compute_metric()
180 *ratio2 = compute_single(&metric_events, evlist, &st, name2); in __compute_metric()
184 metricgroup__rblist_exit(&metric_events); in __compute_metric()
/kernel/linux/linux-4.19/tools/perf/util/
Dmetricgroup.c31 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup() argument
40 if (!metric_events) in metricgroup__lookup()
43 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
47 rblist__add_node(metric_events, &me); in metricgroup__lookup()
48 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
82 static void metricgroup__rblist_init(struct rblist *metric_events) in metricgroup__rblist_init() argument
84 rblist__init(metric_events); in metricgroup__rblist_init()
85 metric_events->node_cmp = metric_event_cmp; in metricgroup__rblist_init()
86 metric_events->node_new = metric_event_new; in metricgroup__rblist_init()
99 struct perf_evsel **metric_events, in record_evsel() argument
[all …]
Dmetricgroup.h20 struct perf_evsel **metric_events; member
23 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
28 struct rblist *metric_events);
Dstat-shadow.c315 struct perf_evsel *counter, *leader, **metric_events, *oc; in perf_stat__collect_metric_expr() local
327 metric_events = counter->metric_events; in perf_stat__collect_metric_expr()
328 if (!metric_events) { in perf_stat__collect_metric_expr()
333 metric_events = calloc(sizeof(struct perf_evsel *), in perf_stat__collect_metric_expr()
335 if (!metric_events) in perf_stat__collect_metric_expr()
337 counter->metric_events = metric_events; in perf_stat__collect_metric_expr()
377 metric_events[i] = oc; in perf_stat__collect_metric_expr()
380 metric_events[i] = NULL; in perf_stat__collect_metric_expr()
383 free(metric_events); in perf_stat__collect_metric_expr()
384 counter->metric_events = NULL; in perf_stat__collect_metric_expr()
[all …]
Dstat.h154 struct rblist *metric_events,
Devsel.h145 struct perf_evsel **metric_events; member
Devsel.c245 evsel->metric_events = NULL; in perf_evsel__init()
1295 zfree(&evsel->metric_events); in perf_evsel__exit()
/kernel/linux/linux-5.10/tools/perf/util/
Dmetricgroup.c29 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup() argument
38 if (!metric_events) in metricgroup__lookup()
41 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
45 rblist__add_node(metric_events, &me); in metricgroup__lookup()
46 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
88 free(expr->metric_events); in metric_event_delete()
95 static void metricgroup__rblist_init(struct rblist *metric_events) in metricgroup__rblist_init() argument
97 rblist__init(metric_events); in metricgroup__rblist_init()
98 metric_events->node_cmp = metric_event_cmp; in metricgroup__rblist_init()
99 metric_events->node_new = metric_event_new; in metricgroup__rblist_init()
[all …]
Dmetricgroup.h34 struct evsel **metric_events; member
39 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
46 struct rblist *metric_events);
53 struct rblist *metric_events);
59 void metricgroup__rblist_exit(struct rblist *metric_events);
Dstat-shadow.c336 struct evsel *counter, *leader, **metric_events, *oc; in perf_stat__collect_metric_expr() local
352 metric_events = counter->metric_events; in perf_stat__collect_metric_expr()
353 if (!metric_events) { in perf_stat__collect_metric_expr()
359 metric_events = calloc(sizeof(struct evsel *), in perf_stat__collect_metric_expr()
361 if (!metric_events) { in perf_stat__collect_metric_expr()
365 counter->metric_events = metric_events; in perf_stat__collect_metric_expr()
411 metric_events[i++] = oc; in perf_stat__collect_metric_expr()
414 metric_events[i] = NULL; in perf_stat__collect_metric_expr()
416 free(metric_events); in perf_stat__collect_metric_expr()
417 counter->metric_events = NULL; in perf_stat__collect_metric_expr()
[all …]
Dcgroup.c205 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup() argument
230 if (metric_events) { in evlist__expand_cgroup()
231 orig_metric_events = *metric_events; in evlist__expand_cgroup()
232 rblist__init(metric_events); in evlist__expand_cgroup()
275 if (metric_events) { in evlist__expand_cgroup()
278 metric_events, in evlist__expand_cgroup()
Dstat.h144 struct rblist metric_events; member
211 struct rblist *metric_events,
Dcgroup.h29 struct rblist *metric_events, bool open_cgroup);
Devsel.h90 struct evsel **metric_events; member
Dstat-display.c489 &out, &config->metric_events, st); in printout()
949 &config->metric_events, in print_metric_headers()
Devsel.c256 evsel->metric_events = NULL; in evsel__init()
1380 zfree(&evsel->metric_events); in evsel__exit()
/kernel/linux/linux-5.10/tools/perf/
Dbuiltin-stat.c1051 &stat_config.metric_events); in parse_metric_groups()
1644 &stat_config.metric_events); in add_default_attributes()
2238 &stat_config.metric_events, true) < 0) in cmd_stat()
2406 metricgroup__rblist_exit(&stat_config.metric_events); in cmd_stat()
/kernel/linux/linux-4.19/tools/perf/
Dbuiltin-stat.c140 static struct rblist metric_events; variable
1219 &out, &metric_events, st); in printout()
1653 &metric_events, in print_metric_headers()
1961 return metricgroup__parse_groups(opt, str, &metric_events); in parse_metric_groups()
2417 &metric_events); in add_default_attributes()