Lines Matching refs:config

71 static void print_running_std(struct perf_stat_config *config, u64 run, u64 ena)  in print_running_std()  argument
74 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running_std()
77 static void print_running_csv(struct perf_stat_config *config, u64 run, u64 ena) in print_running_csv() argument
83 fprintf(config->output, "%s%" PRIu64 "%s%.2f", in print_running_csv()
84 config->csv_sep, run, config->csv_sep, enabled_percent); in print_running_csv()
87 static void print_running_json(struct perf_stat_config *config, u64 run, u64 ena) in print_running_json() argument
93 fprintf(config->output, "\"event-runtime\" : %" PRIu64 ", \"pcnt-running\" : %.2f, ", in print_running_json()
97 static void print_running(struct perf_stat_config *config, in print_running() argument
100 if (config->json_output) { in print_running()
102 print_running_json(config, run, ena); in print_running()
103 } else if (config->csv_output) { in print_running()
105 print_running_csv(config, run, ena); in print_running()
108 print_running_std(config, run, ena); in print_running()
112 static void print_noise_pct_std(struct perf_stat_config *config, in print_noise_pct_std() argument
116 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct_std()
119 static void print_noise_pct_csv(struct perf_stat_config *config, in print_noise_pct_csv() argument
122 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct_csv()
125 static void print_noise_pct_json(struct perf_stat_config *config, in print_noise_pct_json() argument
128 fprintf(config->output, "\"variance\" : %.2f, ", pct); in print_noise_pct_json()
131 static void print_noise_pct(struct perf_stat_config *config, in print_noise_pct() argument
136 if (config->json_output) { in print_noise_pct()
138 print_noise_pct_json(config, pct); in print_noise_pct()
139 } else if (config->csv_output) { in print_noise_pct()
141 print_noise_pct_csv(config, pct); in print_noise_pct()
144 print_noise_pct_std(config, pct); in print_noise_pct()
148 static void print_noise(struct perf_stat_config *config, in print_noise() argument
153 if (config->run_count == 1) in print_noise()
157 print_noise_pct(config, stddev_stats(&ps->res_stats), avg, before_metric); in print_noise()
160 static void print_cgroup_std(struct perf_stat_config *config, const char *cgrp_name) in print_cgroup_std() argument
162 fprintf(config->output, " %-*s", CGROUP_LEN, cgrp_name); in print_cgroup_std()
165 static void print_cgroup_csv(struct perf_stat_config *config, const char *cgrp_name) in print_cgroup_csv() argument
167 fprintf(config->output, "%s%s", config->csv_sep, cgrp_name); in print_cgroup_csv()
170 static void print_cgroup_json(struct perf_stat_config *config, const char *cgrp_name) in print_cgroup_json() argument
172 fprintf(config->output, "\"cgroup\" : \"%s\", ", cgrp_name); in print_cgroup_json()
175 static void print_cgroup(struct perf_stat_config *config, struct cgroup *cgrp) in print_cgroup() argument
177 if (nr_cgroups || config->cgroup_list) { in print_cgroup()
180 if (config->json_output) in print_cgroup()
181 print_cgroup_json(config, cgrp_name); in print_cgroup()
182 else if (config->csv_output) in print_cgroup()
183 print_cgroup_csv(config, cgrp_name); in print_cgroup()
185 print_cgroup_std(config, cgrp_name); in print_cgroup()
189 static void print_aggr_id_std(struct perf_stat_config *config, in print_aggr_id_std() argument
192 FILE *output = config->output; in print_aggr_id_std()
193 int idx = config->aggr_mode; in print_aggr_id_std()
196 switch (config->aggr_mode) { in print_aggr_id_std()
214 if (evsel->percore && !config->percore_show_thread) { in print_aggr_id_std()
239 static void print_aggr_id_csv(struct perf_stat_config *config, in print_aggr_id_csv() argument
242 FILE *output = config->output; in print_aggr_id_csv()
243 const char *sep = config->csv_sep; in print_aggr_id_csv()
245 switch (config->aggr_mode) { in print_aggr_id_csv()
251 fprintf(config->output, "S%d-D%d-L%d-ID%d%s%d%s", in print_aggr_id_csv()
267 if (evsel->percore && !config->percore_show_thread) { in print_aggr_id_csv()
289 static void print_aggr_id_json(struct perf_stat_config *config, in print_aggr_id_json() argument
292 FILE *output = config->output; in print_aggr_id_json()
294 switch (config->aggr_mode) { in print_aggr_id_json()
316 if (evsel->percore && !config->percore_show_thread) { in print_aggr_id_json()
337 static void aggr_printout(struct perf_stat_config *config, in aggr_printout() argument
340 if (config->json_output) in aggr_printout()
341 print_aggr_id_json(config, evsel, id, aggr_nr); in aggr_printout()
342 else if (config->csv_output) in aggr_printout()
343 print_aggr_id_csv(config, evsel, id, aggr_nr); in aggr_printout()
345 print_aggr_id_std(config, evsel, id, aggr_nr); in aggr_printout()
360 static void new_line_std(struct perf_stat_config *config __maybe_unused, in new_line_std()
368 static inline void __new_line_std_csv(struct perf_stat_config *config, in __new_line_std_csv() argument
374 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in __new_line_std_csv()
382 static void do_new_line_std(struct perf_stat_config *config, in do_new_line_std() argument
385 __new_line_std_csv(config, os); in do_new_line_std()
386 if (config->aggr_mode == AGGR_NONE) in do_new_line_std()
391 static void print_metric_std(struct perf_stat_config *config, in print_metric_std() argument
408 do_new_line_std(config, os); in print_metric_std()
418 static void new_line_csv(struct perf_stat_config *config, void *ctx) in new_line_csv() argument
423 __new_line_std_csv(config, os); in new_line_csv()
425 fputs(config->csv_sep, os->fh); in new_line_csv()
428 static void print_metric_csv(struct perf_stat_config *config __maybe_unused, in print_metric_csv()
438 fprintf(out, "%s%s", config->csv_sep, config->csv_sep); in print_metric_csv()
446 fprintf(out, "%s%s%s%s", config->csv_sep, vals, config->csv_sep, skip_spaces(unit)); in print_metric_csv()
449 static void print_metric_json(struct perf_stat_config *config __maybe_unused, in print_metric_json()
460 if (!config->metric_only) in print_metric_json()
464 static void new_line_json(struct perf_stat_config *config, void *ctx) in new_line_json() argument
471 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in new_line_json()
474 static void print_metricgroup_header_json(struct perf_stat_config *config, in print_metricgroup_header_json() argument
481 fprintf(config->output, "\"metricgroup\" : \"%s\"}", metricgroup_name); in print_metricgroup_header_json()
482 new_line_json(config, ctx); in print_metricgroup_header_json()
485 static void print_metricgroup_header_csv(struct perf_stat_config *config, in print_metricgroup_header_csv() argument
495 fputs(config->csv_sep, os->fh); in print_metricgroup_header_csv()
500 fputs(config->csv_sep, os->fh); in print_metricgroup_header_csv()
501 fprintf(config->output, "%s", metricgroup_name); in print_metricgroup_header_csv()
502 new_line_csv(config, ctx); in print_metricgroup_header_csv()
505 static void print_metricgroup_header_std(struct perf_stat_config *config, in print_metricgroup_header_std() argument
517 n = fprintf(config->output, " %*s", EVNAME_LEN, metricgroup_name); in print_metricgroup_header_std()
519 fprintf(config->output, "%*s", MGROUP_LEN - n - 1, ""); in print_metricgroup_header_std()
545 static void print_metric_only(struct perf_stat_config *config, in print_metric_only() argument
552 unsigned mlen = config->metric_only_len; in print_metric_only()
568 static void print_metric_only_csv(struct perf_stat_config *config __maybe_unused, in print_metric_only_csv()
586 fprintf(out, "%s%s", vals, config->csv_sep); in print_metric_only_csv()
590 static void print_metric_only_json(struct perf_stat_config *config __maybe_unused, in print_metric_only_json()
614 static void new_line_metric(struct perf_stat_config *config __maybe_unused, in new_line_metric()
619 static void print_metric_header(struct perf_stat_config *config, in print_metric_header() argument
628 if (config->iostat_run && in print_metric_header()
639 if (config->json_output) in print_metric_header()
641 else if (config->csv_output) in print_metric_header()
642 fprintf(os->fh, "%s%s", unit, config->csv_sep); in print_metric_header()
644 fprintf(os->fh, "%*s ", config->metric_only_len, unit); in print_metric_header()
647 static void print_counter_value_std(struct perf_stat_config *config, in print_counter_value_std() argument
650 FILE *output = config->output; in print_counter_value_std()
655 if (config->big_num) in print_counter_value_std()
666 fprintf(output, "%-*s ", config->unit_width, evsel->unit); in print_counter_value_std()
671 static void print_counter_value_csv(struct perf_stat_config *config, in print_counter_value_csv() argument
674 FILE *output = config->output; in print_counter_value_csv()
676 const char *sep = config->csv_sep; in print_counter_value_csv()
691 static void print_counter_value_json(struct perf_stat_config *config, in print_counter_value_json() argument
694 FILE *output = config->output; in print_counter_value_json()
708 static void print_counter_value(struct perf_stat_config *config, in print_counter_value() argument
711 if (config->json_output) in print_counter_value()
712 print_counter_value_json(config, evsel, avg, ok); in print_counter_value()
713 else if (config->csv_output) in print_counter_value()
714 print_counter_value_csv(config, evsel, avg, ok); in print_counter_value()
716 print_counter_value_std(config, evsel, avg, ok); in print_counter_value()
719 static void abs_printout(struct perf_stat_config *config, in abs_printout() argument
723 aggr_printout(config, evsel, id, aggr_nr); in abs_printout()
724 print_counter_value(config, evsel, avg, ok); in abs_printout()
725 print_cgroup(config, evsel->cgrp); in abs_printout()
767 static void printout(struct perf_stat_config *config, struct outstate *os, in printout() argument
777 if (config->csv_output) { in printout()
778 pm = config->metric_only ? print_metric_only_csv : print_metric_csv; in printout()
779 nl = config->metric_only ? new_line_metric : new_line_csv; in printout()
782 } else if (config->json_output) { in printout()
783 pm = config->metric_only ? print_metric_only_json : print_metric_json; in printout()
784 nl = config->metric_only ? new_line_metric : new_line_json; in printout()
787 pm = config->metric_only ? print_metric_only : print_metric_std; in printout()
788 nl = config->metric_only ? new_line_metric : new_line_std; in printout()
793 if (config->metric_only) { in printout()
794 pm(config, os, NULL, "", "", 0); in printout()
802 config->print_free_counters_hint = 1; in printout()
804 config->print_mixed_hw_group_error = 1; in printout()
815 if (!config->metric_only && !counter->default_metricgroup) { in printout()
816 abs_printout(config, os->id, os->aggr_nr, counter, uval, ok); in printout()
818 print_noise(config, counter, noise, /*before_metric=*/true); in printout()
819 print_running(config, run, ena, /*before_metric=*/true); in printout()
823 if (!config->metric_only && counter->default_metricgroup) { in printout()
826 aggr_printout(config, os->evsel, os->id, os->aggr_nr); in printout()
833 if (config->json_output) in printout()
834 new_line_json(config, (void *)os); in printout()
836 __new_line_std_csv(config, os); in printout()
839 print_noise(config, counter, noise, /*before_metric=*/true); in printout()
840 print_running(config, run, ena, /*before_metric=*/true); in printout()
841 from = perf_stat__print_shadow_stats_metricgroup(config, counter, aggr_idx, in printout()
843 &config->metric_events); in printout()
846 perf_stat__print_shadow_stats(config, counter, uval, aggr_idx, in printout()
847 &out, &config->metric_events); in printout()
849 pm(config, os, /*color=*/NULL, /*format=*/NULL, /*unit=*/"", /*val=*/0); in printout()
852 if (!config->metric_only) { in printout()
853 print_noise(config, counter, noise, /*before_metric=*/false); in printout()
854 print_running(config, run, ena, /*before_metric=*/false); in printout()
861 char *config; in uniquify_event_name() local
869 config = strchr(counter->name, '/'); in uniquify_event_name()
870 if (config) { in uniquify_event_name()
872 "%s%s", counter->pmu_name, config) > 0) { in uniquify_event_name()
894 static bool hybrid_uniquify(struct evsel *evsel, struct perf_stat_config *config) in hybrid_uniquify() argument
896 return evsel__is_hybrid(evsel) && !config->hybrid_merge; in hybrid_uniquify()
899 static void uniquify_counter(struct perf_stat_config *config, struct evsel *counter) in uniquify_counter() argument
901 if (config->no_merge || hybrid_uniquify(counter, config)) in uniquify_counter()
921 static bool should_skip_zero_counter(struct perf_stat_config *config, in should_skip_zero_counter() argument
932 if (config->aggr_mode == AGGR_THREAD && config->system_wide) in should_skip_zero_counter()
947 struct aggr_cpu_id own_id = config->aggr_get_id(config, cpu); in should_skip_zero_counter()
955 static void print_counter_aggrdata(struct perf_stat_config *config, in print_counter_aggrdata() argument
959 FILE *output = config->output; in print_counter_aggrdata()
964 struct aggr_cpu_id id = config->aggr_map->map[aggr_idx]; in print_counter_aggrdata()
966 bool metric_only = config->metric_only; in print_counter_aggrdata()
976 uniquify_counter(config, counter); in print_counter_aggrdata()
982 if (perf_stat__skip_metric_event(counter, &config->metric_events, ena, run)) in print_counter_aggrdata()
985 if (val == 0 && should_skip_zero_counter(config, counter, &id)) in print_counter_aggrdata()
989 if (config->json_output) in print_counter_aggrdata()
993 else if (config->summary && config->csv_output && in print_counter_aggrdata()
994 !config->no_csv_summary && !config->interval) in print_counter_aggrdata()
995 fprintf(output, "%s%s", "summary", config->csv_sep); in print_counter_aggrdata()
1000 printout(config, os, uval, run, ena, avg, aggr_idx); in print_counter_aggrdata()
1006 static void print_metric_begin(struct perf_stat_config *config, in print_metric_begin() argument
1015 if (!config->metric_only) in print_metric_begin()
1018 if (config->json_output) in print_metric_begin()
1019 fputc('{', config->output); in print_metric_begin()
1021 fprintf(config->output, "%s", os->prefix); in print_metric_begin()
1024 id = config->aggr_map->map[aggr_idx]; in print_metric_begin()
1026 aggr_printout(config, evsel, id, aggr->nr); in print_metric_begin()
1028 print_cgroup(config, os->cgrp ? : evsel->cgrp); in print_metric_begin()
1031 static void print_metric_end(struct perf_stat_config *config, struct outstate *os) in print_metric_end() argument
1033 FILE *output = config->output; in print_metric_end()
1035 if (!config->metric_only) in print_metric_end()
1038 if (config->json_output) { in print_metric_end()
1046 static void print_aggr(struct perf_stat_config *config, in print_aggr() argument
1053 if (!config->aggr_map || !config->aggr_get_id) in print_aggr()
1060 cpu_aggr_map__for_each_idx(aggr_idx, config->aggr_map) { in print_aggr()
1061 print_metric_begin(config, evlist, os, aggr_idx); in print_aggr()
1064 print_counter_aggrdata(config, counter, aggr_idx, os); in print_aggr()
1066 print_metric_end(config, os); in print_aggr()
1070 static void print_aggr_cgroup(struct perf_stat_config *config, in print_aggr_cgroup() argument
1077 if (!config->aggr_map || !config->aggr_get_id) in print_aggr_cgroup()
1086 cpu_aggr_map__for_each_idx(aggr_idx, config->aggr_map) { in print_aggr_cgroup()
1087 print_metric_begin(config, evlist, os, aggr_idx); in print_aggr_cgroup()
1093 print_counter_aggrdata(config, counter, aggr_idx, os); in print_aggr_cgroup()
1095 print_metric_end(config, os); in print_aggr_cgroup()
1100 static void print_counter(struct perf_stat_config *config, in print_counter() argument
1106 if (!config->aggr_map) in print_counter()
1109 cpu_aggr_map__for_each_idx(aggr_idx, config->aggr_map) { in print_counter()
1110 print_counter_aggrdata(config, counter, aggr_idx, os); in print_counter()
1114 static void print_no_aggr_metric(struct perf_stat_config *config, in print_no_aggr_metric() argument
1137 print_metric_begin(config, evlist, os, aggr_idx); in print_no_aggr_metric()
1145 printout(config, os, uval, run, ena, 1.0, aggr_idx); in print_no_aggr_metric()
1148 print_metric_end(config, os); in print_no_aggr_metric()
1152 static void print_metric_headers_std(struct perf_stat_config *config, in print_metric_headers_std() argument
1155 fputc(' ', config->output); in print_metric_headers_std()
1158 int len = aggr_header_lens[config->aggr_mode]; in print_metric_headers_std()
1160 if (nr_cgroups || config->cgroup_list) in print_metric_headers_std()
1163 fprintf(config->output, "%*s", len, ""); in print_metric_headers_std()
1167 static void print_metric_headers_csv(struct perf_stat_config *config, in print_metric_headers_csv() argument
1170 if (config->interval) in print_metric_headers_csv()
1171 fputs("time,", config->output); in print_metric_headers_csv()
1172 if (!config->iostat_run) in print_metric_headers_csv()
1173 fputs(aggr_header_csv[config->aggr_mode], config->output); in print_metric_headers_csv()
1176 static void print_metric_headers_json(struct perf_stat_config *config __maybe_unused, in print_metric_headers_json()
1181 static void print_metric_headers(struct perf_stat_config *config, in print_metric_headers() argument
1186 .fh = config->output in print_metric_headers()
1195 if (config->json_output) in print_metric_headers()
1196 print_metric_headers_json(config, no_indent); in print_metric_headers()
1197 else if (config->csv_output) in print_metric_headers()
1198 print_metric_headers_csv(config, no_indent); in print_metric_headers()
1200 print_metric_headers_std(config, no_indent); in print_metric_headers()
1202 if (config->iostat_run) in print_metric_headers()
1203 iostat_print_header_prefix(config); in print_metric_headers()
1205 if (config->cgroup_list) in print_metric_headers()
1212 perf_stat__print_shadow_stats(config, counter, 0, in print_metric_headers()
1215 &config->metric_events); in print_metric_headers()
1218 if (!config->json_output) in print_metric_headers()
1219 fputc('\n', config->output); in print_metric_headers()
1222 static void prepare_interval(struct perf_stat_config *config, in prepare_interval() argument
1225 if (config->iostat_run) in prepare_interval()
1228 if (config->json_output) in prepare_interval()
1231 else if (config->csv_output) in prepare_interval()
1233 (unsigned long) ts->tv_sec, ts->tv_nsec, config->csv_sep); in prepare_interval()
1239 static void print_header_interval_std(struct perf_stat_config *config, in print_header_interval_std() argument
1245 FILE *output = config->output; in print_header_interval_std()
1247 switch (config->aggr_mode) { in print_header_interval_std()
1255 aggr_header_lens[config->aggr_mode], in print_header_interval_std()
1256 aggr_header_std[config->aggr_mode]); in print_header_interval_std()
1261 aggr_header_lens[config->aggr_mode], in print_header_interval_std()
1262 aggr_header_std[config->aggr_mode]); in print_header_interval_std()
1271 if (!config->iostat_run) in print_header_interval_std()
1279 if (config->metric_only) in print_header_interval_std()
1280 print_metric_headers(config, evlist, true); in print_header_interval_std()
1283 COUNTS_LEN, "counts", config->unit_width, "unit"); in print_header_interval_std()
1286 static void print_header_std(struct perf_stat_config *config, in print_header_std() argument
1290 FILE *output = config->output; in print_header_std()
1311 if (config->run_count > 1) in print_header_std()
1312 fprintf(output, " (%d runs)", config->run_count); in print_header_std()
1315 if (config->metric_only) in print_header_std()
1316 print_metric_headers(config, evlist, false); in print_header_std()
1319 static void print_header_csv(struct perf_stat_config *config, in print_header_csv() argument
1325 if (config->metric_only) in print_header_csv()
1326 print_metric_headers(config, evlist, true); in print_header_csv()
1328 static void print_header_json(struct perf_stat_config *config, in print_header_json() argument
1334 if (config->metric_only) in print_header_json()
1335 print_metric_headers(config, evlist, true); in print_header_json()
1338 static void print_header(struct perf_stat_config *config, in print_header() argument
1347 if (config->interval_clear) in print_header()
1350 if (num_print_iv == 0 || config->interval_clear) { in print_header()
1351 if (config->json_output) in print_header()
1352 print_header_json(config, _target, evlist, argc, argv); in print_header()
1353 else if (config->csv_output) in print_header()
1354 print_header_csv(config, _target, evlist, argc, argv); in print_header()
1355 else if (config->interval) in print_header()
1356 print_header_interval_std(config, _target, evlist, argc, argv); in print_header()
1358 print_header_std(config, _target, evlist, argc, argv); in print_header()
1373 static void print_table(struct perf_stat_config *config, in print_table() argument
1385 for (idx = 0; idx < config->run_count; idx++) { in print_table()
1386 double run = (double) config->walltime_run[idx] / NSEC_PER_SEC; in print_table()
1406 static void print_footer(struct perf_stat_config *config) in print_footer() argument
1408 double avg = avg_stats(config->walltime_nsecs_stats) / NSEC_PER_SEC; in print_footer()
1409 FILE *output = config->output; in print_footer()
1411 if (config->interval || config->csv_output || config->json_output) in print_footer()
1414 if (!config->null_run) in print_footer()
1417 if (config->run_count == 1) { in print_footer()
1420 if (config->ru_display) { in print_footer()
1421 double ru_utime = timeval2double(&config->ru_data.ru_utime); in print_footer()
1422 double ru_stime = timeval2double(&config->ru_data.ru_stime); in print_footer()
1429 double sd = stddev_stats(config->walltime_nsecs_stats) / NSEC_PER_SEC; in print_footer()
1436 if (config->walltime_run_table) in print_footer()
1437 print_table(config, output, precision, avg); in print_footer()
1442 print_noise_pct(config, sd, avg, /*before_metric=*/false); in print_footer()
1446 if (config->print_free_counters_hint && sysctl__nmi_watchdog_enabled()) in print_footer()
1453 if (config->print_mixed_hw_group_error) in print_footer()
1459 static void print_percore(struct perf_stat_config *config, in print_percore() argument
1462 bool metric_only = config->metric_only; in print_percore()
1463 FILE *output = config->output; in print_percore()
1467 if (!config->aggr_map || !config->aggr_get_id) in print_percore()
1470 if (config->percore_show_thread) in print_percore()
1471 return print_counter(config, counter, os); in print_percore()
1477 core_map = cpu_aggr_map__empty_new(config->aggr_map->nr); in print_percore()
1483 cpu_aggr_map__for_each_idx(aggr_idx, config->aggr_map) { in print_percore()
1484 struct perf_cpu curr_cpu = config->aggr_map->map[aggr_idx].cpu; in print_percore()
1497 print_counter_aggrdata(config, counter, aggr_idx, os); in print_percore()
1507 static void print_cgroup_counter(struct perf_stat_config *config, struct evlist *evlist, in print_cgroup_counter() argument
1515 print_metric_end(config, os); in print_cgroup_counter()
1518 print_metric_begin(config, evlist, os, /*aggr_idx=*/0); in print_cgroup_counter()
1521 print_counter(config, counter, os); in print_cgroup_counter()
1524 print_metric_end(config, os); in print_cgroup_counter()
1527 void evlist__print_counters(struct evlist *evlist, struct perf_stat_config *config, in evlist__print_counters() argument
1531 bool metric_only = config->metric_only; in evlist__print_counters()
1532 int interval = config->interval; in evlist__print_counters()
1536 .fh = config->output, in evlist__print_counters()
1540 if (config->iostat_run) in evlist__print_counters()
1545 prepare_interval(config, buf, sizeof(buf), ts); in evlist__print_counters()
1548 print_header(config, _target, evlist, argc, argv); in evlist__print_counters()
1550 switch (config->aggr_mode) { in evlist__print_counters()
1556 if (config->cgroup_list) in evlist__print_counters()
1557 print_aggr_cgroup(config, evlist, &os); in evlist__print_counters()
1559 print_aggr(config, evlist, &os); in evlist__print_counters()
1563 if (config->iostat_run) { in evlist__print_counters()
1564 iostat_print_counters(evlist, config, ts, buf, in evlist__print_counters()
1566 } else if (config->cgroup_list) { in evlist__print_counters()
1567 print_cgroup_counter(config, evlist, &os); in evlist__print_counters()
1569 print_metric_begin(config, evlist, &os, /*aggr_idx=*/0); in evlist__print_counters()
1571 print_counter(config, counter, &os); in evlist__print_counters()
1573 print_metric_end(config, &os); in evlist__print_counters()
1578 print_no_aggr_metric(config, evlist, &os); in evlist__print_counters()
1582 print_percore(config, counter, &os); in evlist__print_counters()
1584 print_counter(config, counter, &os); in evlist__print_counters()
1594 print_footer(config); in evlist__print_counters()
1596 fflush(config->output); in evlist__print_counters()