Searched refs:metric_events (Results 1 – 12 of 12) sorted by relevance
| /Linux-v5.15/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() 146 struct rblist metric_events; in expand_libpfm_events() local 168 rblist__init(&metric_events); in expand_libpfm_events() [all …]
|
| D | parse-metric.c | 120 static double compute_single(struct rblist *metric_events, struct evlist *evlist, in compute_single() argument 128 me = metricgroup__lookup(metric_events, evsel, false); in compute_single() 144 struct rblist metric_events = { in __compute_metric() local 172 &metric_events); in __compute_metric() 185 *ratio1 = compute_single(&metric_events, evlist, &st, name1); in __compute_metric() 187 *ratio2 = compute_single(&metric_events, evlist, &st, name2); in __compute_metric() 191 metricgroup__rblist_exit(&metric_events); in __compute_metric()
|
| /Linux-v5.15/tools/perf/util/ |
| D | metricgroup.c | 29 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 …]
|
| D | metricgroup.h | 33 struct evsel **metric_events; member 38 struct metric_event *metricgroup__lookup(struct rblist *metric_events, 45 struct rblist *metric_events); 53 struct rblist *metric_events); 59 void metricgroup__rblist_exit(struct rblist *metric_events);
|
| D | stat-shadow.c | 371 struct evsel *counter, *leader, **metric_events, *oc; in perf_stat__collect_metric_expr() local 387 metric_events = counter->metric_events; in perf_stat__collect_metric_expr() 388 if (!metric_events) { in perf_stat__collect_metric_expr() 394 metric_events = calloc(sizeof(struct evsel *), in perf_stat__collect_metric_expr() 396 if (!metric_events) { in perf_stat__collect_metric_expr() 400 counter->metric_events = metric_events; in perf_stat__collect_metric_expr() 446 metric_events[i++] = oc; in perf_stat__collect_metric_expr() 449 metric_events[i] = NULL; in perf_stat__collect_metric_expr() 451 free(metric_events); in perf_stat__collect_metric_expr() 452 counter->metric_events = NULL; in perf_stat__collect_metric_expr() [all …]
|
| D | cgroup.c | 396 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup() argument 422 if (metric_events) { in evlist__expand_cgroup() 423 orig_metric_events = *metric_events; in evlist__expand_cgroup() 424 rblist__init(metric_events); in evlist__expand_cgroup() 470 if (metric_events) { in evlist__expand_cgroup() 473 metric_events, in evlist__expand_cgroup()
|
| D | stat.h | 156 struct rblist metric_events; member 224 struct rblist *metric_events,
|
| D | cgroup.h | 31 struct rblist *metric_events, bool open_cgroup);
|
| D | evsel.h | 97 struct evsel **metric_events; member
|
| D | stat-display.c | 509 &out, &config->metric_events, st); in printout() 1010 &config->metric_events, in print_metric_headers()
|
| D | evsel.c | 258 evsel->metric_events = NULL; in evsel__init() 1429 zfree(&evsel->metric_events); in evsel__exit()
|
| /Linux-v5.15/tools/perf/ |
| D | builtin-stat.c | 1148 &stat_config.metric_events); in parse_metric_groups() 1772 &stat_config.metric_events); in add_default_attributes() 2427 &stat_config.metric_events, true) < 0) { in cmd_stat() 2606 metricgroup__rblist_exit(&stat_config.metric_events); in cmd_stat()
|