Lines Matching refs:output
77 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running_std()
86 fprintf(config->output, "%s%" PRIu64 "%s%.2f", in print_running_csv()
96 fprintf(config->output, "\"event-runtime\" : %" PRIu64 ", \"pcnt-running\" : %.2f, ", in print_running_json()
119 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct_std()
125 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct_csv()
131 fprintf(config->output, "\"variance\" : %.2f, ", pct); in print_noise_pct_json()
165 fprintf(config->output, " %-*s", CGROUP_LEN, cgrp_name); in print_cgroup_std()
170 fprintf(config->output, "%s%s", config->csv_sep, cgrp_name); in print_cgroup_csv()
175 fprintf(config->output, "\"cgroup\" : \"%s\", ", cgrp_name); in print_cgroup_json()
195 FILE *output = config->output; in print_aggr_id_std() local
223 fprintf(output, "%-*s ", in print_aggr_id_std()
226 fprintf(output, "CPU%-*d ", in print_aggr_id_std()
231 fprintf(output, "%*s-%-*d ", in print_aggr_id_std()
242 fprintf(output, "%-*s %*d ", aggr_header_lens[idx], buf, 4, aggr_nr); in print_aggr_id_std()
248 FILE *output = config->output; in print_aggr_id_csv() local
253 fprintf(output, "S%d-D%d-C%d%s%d%s", in print_aggr_id_csv()
257 fprintf(config->output, "S%d-D%d-L%d-ID%d%s%d%s", in print_aggr_id_csv()
261 fprintf(config->output, "S%d-D%d-CLS%d%s%d%s", in print_aggr_id_csv()
265 fprintf(output, "S%d-D%d%s%d%s", in print_aggr_id_csv()
269 fprintf(output, "S%d%s%d%s", in print_aggr_id_csv()
273 fprintf(output, "N%d%s%d%s", in print_aggr_id_csv()
278 fprintf(output, "S%d-D%d-C%d%s", in print_aggr_id_csv()
281 fprintf(output, "CPU%d%s", in print_aggr_id_csv()
286 fprintf(output, "%s-%d%s", in print_aggr_id_csv()
302 FILE *output = config->output; in print_aggr_id_json() local
306 fprintf(output, "\"core\" : \"S%d-D%d-C%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
310 fprintf(output, "\"cache\" : \"S%d-D%d-L%d-ID%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
314 fprintf(output, "\"cluster\" : \"S%d-D%d-CLS%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
318 fprintf(output, "\"die\" : \"S%d-D%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
322 fprintf(output, "\"socket\" : \"S%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
326 fprintf(output, "\"node\" : \"N%d\", \"aggregate-number\" : %d, ", in print_aggr_id_json()
331 fprintf(output, "\"core\" : \"S%d-D%d-C%d\"", in print_aggr_id_json()
334 fprintf(output, "\"cpu\" : \"%d\", ", in print_aggr_id_json()
339 fprintf(output, "\"thread\" : \"%s-%d\", ", in print_aggr_id_json()
495 fprintf(config->output, "\"metricgroup\" : \"%s\"}", metricgroup_name); in print_metricgroup_header_json()
515 fprintf(config->output, "%s", metricgroup_name); in print_metricgroup_header_csv()
531 n = fprintf(config->output, " %*s", EVNAME_LEN, metricgroup_name); in print_metricgroup_header_std()
533 fprintf(config->output, "%*s", MGROUP_LEN - n - 1, ""); in print_metricgroup_header_std()
664 FILE *output = config->output; in print_counter_value_std() local
675 fprintf(output, fmt, COUNTS_LEN, avg); in print_counter_value_std()
677 fprintf(output, "%*s ", COUNTS_LEN, bad_count); in print_counter_value_std()
680 fprintf(output, "%-*s ", config->unit_width, evsel->unit); in print_counter_value_std()
682 fprintf(output, "%-*s", EVNAME_LEN, evsel__name(evsel)); in print_counter_value_std()
688 FILE *output = config->output; in print_counter_value_csv() local
695 fprintf(output, fmt, avg, sep); in print_counter_value_csv()
697 fprintf(output, "%s%s", bad_count, sep); in print_counter_value_csv()
700 fprintf(output, "%s%s", evsel->unit, sep); in print_counter_value_csv()
702 fprintf(output, "%s", evsel__name(evsel)); in print_counter_value_csv()
708 FILE *output = config->output; in print_counter_value_json() local
712 fprintf(output, "\"counter-value\" : \"%f\", ", avg); in print_counter_value_json()
714 fprintf(output, "\"counter-value\" : \"%s\", ", bad_count); in print_counter_value_json()
717 fprintf(output, "\"unit\" : \"%s\", ", evsel->unit); in print_counter_value_json()
719 fprintf(output, "\"event\" : \"%s\", ", evsel__name(evsel)); in print_counter_value_json()
973 FILE *output = config->output; in print_counter_aggrdata() local
1004 fputc('{', output); in print_counter_aggrdata()
1006 fprintf(output, "%s", os->prefix); in print_counter_aggrdata()
1009 fprintf(output, "%s%s", "summary", config->csv_sep); in print_counter_aggrdata()
1017 fputc('\n', output); in print_counter_aggrdata()
1033 fputc('{', config->output); in print_metric_begin()
1035 fprintf(config->output, "%s", os->prefix); in print_metric_begin()
1047 FILE *output = config->output; in print_metric_end() local
1054 fputs("\"metric-value\" : \"none\"", output); in print_metric_end()
1055 fputc('}', output); in print_metric_end()
1057 fputc('\n', output); in print_metric_end()
1174 fputc(' ', config->output); in print_metric_headers_std()
1182 fprintf(config->output, "%*s", len, ""); in print_metric_headers_std()
1192 fprintf(config->output, "time%s", config->csv_sep); in print_metric_headers_csv()
1199 fputs(config->csv_sep, config->output); in print_metric_headers_csv()
1201 fputc(*p, config->output); in print_metric_headers_csv()
1216 .fh = config->output in print_metric_headers()
1253 fputc('\n', config->output); in print_metric_headers()
1279 FILE *output = config->output; in print_header_interval_std() local
1288 fprintf(output, "#%*s %-*s cpus", in print_header_interval_std()
1294 fprintf(output, "#%*s %-*s", in print_header_interval_std()
1300 fprintf(output, "#%*s %*s-%-*s", in print_header_interval_std()
1307 fprintf(output, "#%*s", in print_header_interval_std()
1317 fprintf(output, " %*s %*s events\n", in print_header_interval_std()
1325 FILE *output = config->output; in print_header_std() local
1328 fprintf(output, "\n"); in print_header_std()
1329 fprintf(output, " Performance counter stats for "); in print_header_std()
1331 fprintf(output, "\'BPF program(s) %s", _target->bpf_str); in print_header_std()
1333 fprintf(output, "\'system wide"); in print_header_std()
1335 fprintf(output, "\'CPU(s) %s", _target->cpu_list); in print_header_std()
1337 fprintf(output, "\'%s", argv ? argv[0] : "pipe"); in print_header_std()
1339 fprintf(output, " %s", argv[i]); in print_header_std()
1341 fprintf(output, "process id \'%s", _target->pid); in print_header_std()
1343 fprintf(output, "thread id \'%s", _target->tid); in print_header_std()
1345 fprintf(output, "\'"); in print_header_std()
1347 fprintf(output, " (%d runs)", config->run_count); in print_header_std()
1348 fprintf(output, ":\n\n"); in print_header_std()
1409 FILE *output, int precision, double avg) in print_table() argument
1418 fprintf(output, "%*s# Table of individual measurements:\n", indent, ""); in print_table()
1424 fprintf(output, " %17.*f (%+.*f) ", in print_table()
1428 fprintf(output, "#"); in print_table()
1430 fprintf(output, "\n"); in print_table()
1433 fprintf(output, "\n%*s# Final result:\n", indent, ""); in print_table()
1444 FILE *output = config->output; in print_footer() local
1450 fprintf(output, "\n"); in print_footer()
1453 fprintf(output, " %17.9f seconds time elapsed", avg); in print_footer()
1459 fprintf(output, "\n\n"); in print_footer()
1460 fprintf(output, " %17.9f seconds user\n", ru_utime); in print_footer()
1461 fprintf(output, " %17.9f seconds sys\n", ru_stime); in print_footer()
1472 print_table(config, output, precision, avg); in print_footer()
1474 fprintf(output, " %17.*f +- %.*f seconds time elapsed", in print_footer()
1479 fprintf(output, "\n\n"); in print_footer()
1482 fprintf(output, in print_footer()
1489 fprintf(output, in print_footer()
1498 FILE *output = config->output; in print_percore() local
1514 fprintf(output, "Cannot allocate per-core aggr map for display\n"); in print_percore()
1539 fputc('\n', output); in print_percore()
1571 .fh = config->output, in evlist__print_counters()
1632 fflush(config->output); in evlist__print_counters()