Home
last modified time | relevance | path

Searched refs:metric_events (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dexpand-cgroup.c17 struct rblist *metric_events) in test_expand_events()
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()
16 test_expand_events(struct evlist *evlist, struct rblist *metric_events) test_expand_events() argument
180 struct rblist metric_events; expand_metric_events() local
[all...]
H A 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
162 /* Parse the metric into metric_events list. */ in __compute_metric()
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-6.6/tools/perf/tests/
H A Dexpand-cgroup.c17 struct rblist *metric_events) in test_expand_events()
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()
16 test_expand_events(struct evlist *evlist, struct rblist *metric_events) test_expand_events() argument
181 struct rblist metric_events; expand_metric_events() local
[all...]
H A 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
96 /* Parse the metric into metric_events list. */ in __compute_metric()
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()
H A Dpmu-events.c816 struct rblist metric_events = { in test__parsing_callback() local
843 err = metricgroup__parse_groups_test(evlist, table, pm->metric_name, &metric_events); in test__parsing_callback()
870 struct metric_event *me = metricgroup__lookup(&metric_events, evsel, false); in test__parsing_callback()
892 metricgroup__rblist_exit(&metric_events); in test__parsing_callback()
/kernel/linux/linux-5.10/tools/perf/util/
H A 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 in metricgroup__rblist_init()
103 metricgroup__rblist_exit(struct rblist *metric_events) metricgroup__rblist_exit() argument
153 contains_event(struct evsel **metric_events, int num_events, const char *event_name) contains_event() argument
183 find_evsel_group(struct evlist *perf_evlist, struct expr_parse_ctx *pctx, bool metric_no_merge, bool has_constraint, struct evsel **metric_events, unsigned long *evlist_used) find_evsel_group() argument
312 struct evsel **metric_events; metricgroup__setup_events() local
1080 parse_groups(struct evlist *perf_evlist, const char *str, bool metric_no_group, bool metric_no_merge, struct perf_pmu *fake_pmu, struct rblist *metric_events, struct pmu_events_map *map) parse_groups() argument
1113 metricgroup__parse_groups(const struct option *opt, const char *str, bool metric_no_group, bool metric_no_merge, struct rblist *metric_events) metricgroup__parse_groups() argument
1129 metricgroup__parse_groups_test(struct evlist *evlist, struct pmu_events_map *map, const char *str, bool metric_no_group, bool metric_no_merge, struct rblist *metric_events) metricgroup__parse_groups_test() argument
[all...]
H A 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);
H A 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[ in perf_stat__collect_metric_expr()
786 prepare_metric(struct evsel **metric_events, struct metric_ref *metric_refs, struct expr_parse_ctx *pctx, int cpu, struct runtime_stat *st) prepare_metric() argument
844 generic_metric(struct perf_stat_config *config, const char *metric_expr, struct evsel **metric_events, struct metric_ref *metric_refs, char *name, const char *metric_name, const char *metric_unit, int runtime, int cpu, struct perf_stat_output_ctx *out, struct runtime_stat *st) generic_metric() argument
922 perf_stat__print_shadow_stats(struct perf_stat_config *config, struct evsel *evsel, double avg, int cpu, struct perf_stat_output_ctx *out, struct rblist *metric_events, struct runtime_stat *st) perf_stat__print_shadow_stats() argument
[all...]
H A Dcgroup.c205 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup()
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()
204 evlist__expand_cgroup(struct evlist *evlist, const char *str, struct rblist *metric_events, bool open_cgroup) evlist__expand_cgroup() argument
H A Dcgroup.h29 struct rblist *metric_events, bool open_cgroup);
H A Dstat.h144 struct rblist metric_events; member
211 struct rblist *metric_events,
H A Devsel.h90 struct evsel **metric_events; member
H A Dstat-display.c489 &out, &config->metric_events, st); in printout()
950 &config->metric_events, in print_metric_headers()
H A Devsel.c256 evsel->metric_events = NULL; in evsel__init()
1389 zfree(&evsel->metric_events); in evsel__exit()
/kernel/linux/linux-6.6/tools/perf/util/
H A Dmetricgroup.h31 * will be looked up, matching either a value (from metric_events) or a
33 * metric_events need to be known before parsing so that their values may be
62 struct evsel **metric_events; member
69 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
80 struct rblist *metric_events);
84 struct rblist *metric_events);
90 void metricgroup__rblist_exit(struct rblist *metric_events);
H A Dstat-shadow.c358 static int prepare_metric(struct evsel **metric_events, in prepare_metric() argument
365 for (i = 0; metric_events[i]; i++) { in prepare_metric()
370 if (evsel__is_tool(metric_events[i])) { in prepare_metric()
374 switch (metric_events[i]->tool_event) { in prepare_metric()
394 pr_err("Unknown tool event '%s'", evsel__name(metric_events[i])); in prepare_metric()
400 struct perf_stat_evsel *ps = metric_events[i]->stats; in prepare_metric()
406 if (!metric_events[i]->supported) { in prepare_metric()
418 source_count = evsel__source_count(metric_events[i]); in prepare_metric()
421 n = strdup(evsel__metric_id(metric_events[i])); in prepare_metric()
441 struct evsel **metric_events, in generic_metric()
438 generic_metric(struct perf_stat_config *config, const char *metric_expr, const char *metric_threshold, struct evsel **metric_events, struct metric_ref *metric_refs, char *name, const char *metric_name, const char *metric_unit, int runtime, int aggr_idx, struct perf_stat_output_ctx *out) generic_metric() argument
584 perf_stat__print_shadow_stats_metricgroup(struct perf_stat_config *config, struct evsel *evsel, int aggr_idx, int *num, void *from, struct perf_stat_output_ctx *out, struct rblist *metric_events) perf_stat__print_shadow_stats_metricgroup() argument
637 perf_stat__print_shadow_stats(struct perf_stat_config *config, struct evsel *evsel, double avg, int aggr_idx, struct perf_stat_output_ctx *out, struct rblist *metric_events) perf_stat__print_shadow_stats() argument
700 perf_stat__skip_metric_event(struct evsel *evsel, struct rblist *metric_events, u64 ena, u64 run) perf_stat__skip_metric_event() argument
[all...]
H A Dmetricgroup.c35 struct metric_event *metricgroup__lookup(struct rblist *metric_events, in metricgroup__lookup() argument
44 if (!metric_events) in metricgroup__lookup()
47 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
51 rblist__add_node(metric_events, &me); in metricgroup__lookup()
52 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
96 zfree(&expr->metric_events); in metric_event_delete()
103 static void metricgroup__rblist_init(struct rblist *metric_events) in metricgroup__rblist_init() argument
105 rblist__init(metric_events); in metricgroup__rblist_init()
106 metric_events->node_cmp = metric_event_cmp; in metricgroup__rblist_init()
107 metric_events in metricgroup__rblist_init()
111 metricgroup__rblist_exit(struct rblist *metric_events) metricgroup__rblist_exit() argument
256 contains_metric_id(struct evsel **metric_events, int num_events, const char *metric_id) contains_metric_id() argument
280 struct evsel **metric_events; setup_metric_events() local
1578 struct evsel **metric_events; parse_groups() local
1685 metricgroup__parse_groups(struct evlist *perf_evlist, const char *pmu, const char *str, bool metric_no_group, bool metric_no_merge, bool metric_no_threshold, const char *user_requested_cpu_list, bool system_wide, struct rblist *metric_events) metricgroup__parse_groups() argument
1705 metricgroup__parse_groups_test(struct evlist *evlist, const struct pmu_metrics_table *table, const char *str, struct rblist *metric_events) metricgroup__parse_groups_test() argument
[all...]
H A Dstat.h111 struct rblist metric_events; member
178 struct rblist *metric_events);
180 struct rblist *metric_events,
188 struct rblist *metric_events);
H A Dcgroup.c409 struct rblist *metric_events, bool open_cgroup) in evlist__expand_cgroup()
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()
485 metric_events, in evlist__expand_cgroup()
408 evlist__expand_cgroup(struct evlist *evlist, const char *str, struct rblist *metric_events, bool open_cgroup) evlist__expand_cgroup() argument
H A Dcgroup.h31 struct rblist *metric_events, bool open_cgroup);
H A Dstat-display.c843 &config->metric_events); in printout()
847 &out, &config->metric_events); in printout()
982 if (perf_stat__skip_metric_event(counter, &config->metric_events, ena, run)) in print_counter_aggrdata()
1215 &config->metric_events); in print_metric_headers()
H A Devsel.h110 struct evsel **metric_events; member
H A Devsel.c291 evsel->metric_events = NULL; in evsel__init()
1487 zfree(&evsel->metric_events); in evsel__exit()
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-stat.c2064 &stat_config.metric_events); in add_default_attributes()
2097 &stat_config.metric_events); in add_default_attributes()
2131 &stat_config.metric_events) < 0) in add_default_attributes()
2172 &stat_config.metric_events) < 0) in add_default_attributes()
2704 &stat_config.metric_events); in cmd_stat()
2725 &stat_config.metric_events, true) < 0) { in cmd_stat()
2897 metricgroup__rblist_exit(&stat_config.metric_events); in cmd_stat()
/kernel/linux/linux-5.10/tools/perf/
H A 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()

Completed in 35 milliseconds