Lines Matching refs:outf
84 static void format_and_print_txt(FILE *outf, int level, char *header,
103 fprintf(outf, "%s", delimiters);
104 fprintf(outf, "%s:%s\n", header, value);
106 fprintf(outf, "%s", delimiters);
107 fprintf(outf, "%s\n", header);
112 static void format_and_print(FILE *outf, int level, char *header, char *value)
119 format_and_print_txt(outf, level, header, value);
125 fprintf(outf, "{");
127 fprintf(outf, "\n}\n");
137 fprintf(outf, ",\n");
141 fprintf(outf, "\n");
143 fprintf(outf, "%s\"%s\": ", delimiters, header);
144 fprintf(outf, "\"%s\"", value);
154 fprintf(outf, "\n%s},", delimiters);
156 fprintf(outf, "\n%s}", delimiters);
159 fprintf(outf, "\n");
161 fprintf(outf, "%s\"%s\": {", delimiters,
169 static int print_package_info(int cpu, FILE *outf)
177 format_and_print(outf, 1, header, NULL);
182 format_and_print(outf, 1, header, NULL);
184 format_and_print(outf, 2, header, NULL);
186 format_and_print(outf, 3, header, NULL);
191 static void _isst_pbf_display_information(int cpu, FILE *outf, int level,
199 format_and_print(outf, disp_level, header, NULL);
204 format_and_print(outf, disp_level + 1, header, value);
209 format_and_print(outf, disp_level + 1, header, value);
215 format_and_print(outf, disp_level + 1, header, value);
220 format_and_print(outf, disp_level + 1, header, value);
227 format_and_print(outf, disp_level + 1, header, value);
231 format_and_print(outf, disp_level + 1, header, value);
234 static void _isst_fact_display_information(int cpu, FILE *outf, int level,
259 format_and_print(outf, base_level, header, NULL);
268 format_and_print(outf, base_level + 1, header, NULL);
273 format_and_print(outf, base_level + 2, header, value);
280 format_and_print(outf, base_level + 2, header, value);
288 format_and_print(outf, base_level + 2, header, value);
297 format_and_print(outf, base_level + 2, header, value);
302 format_and_print(outf, base_level + 1, header, NULL);
307 format_and_print(outf, base_level + 2, header, value);
313 format_and_print(outf, base_level + 2, header, value);
319 format_and_print(outf, base_level + 2, header, value);
322 void isst_ctdp_display_core_info(int cpu, FILE *outf, char *prefix,
333 format_and_print(outf, level++, header, NULL);
337 format_and_print(outf, level++, header, NULL);
340 format_and_print(outf, level++, header, NULL);
342 format_and_print(outf, level++, header, NULL);
351 format_and_print(outf, level, prefix, value);
353 format_and_print(outf, 1, NULL, NULL);
356 void isst_ctdp_display_information(int cpu, FILE *outf, int tdp_level,
365 level = print_package_info(cpu, outf);
377 format_and_print(outf, level + 1, header, NULL);
383 format_and_print(outf, level + 2, header, value);
390 format_and_print(outf, level + 2, header, value);
398 format_and_print(outf, level + 2, header, value);
404 format_and_print(outf, level + 2, header, value);
409 format_and_print(outf, level + 2, header, value);
416 format_and_print(outf, level + 2, header, value);
422 format_and_print(outf, level + 2, header, value);
429 format_and_print(outf, level + 2, header, value);
436 format_and_print(outf, level + 2, header, value);
443 format_and_print(outf, level + 2, header, value);
450 format_and_print(outf, level + 2, header, value);
462 format_and_print(outf, level + 2, header, value);
473 format_and_print(outf, level + 2, header, value);
484 format_and_print(outf, level + 2, header, value);
488 _isst_pbf_display_information(cpu, outf,
498 format_and_print(outf, level + 2, header, value);
504 format_and_print(outf, level + 2, header, value);
508 format_and_print(outf, level + 2, header, NULL);
511 format_and_print(outf, level + 3, header, NULL);
515 format_and_print(outf, level + 4, header, value);
522 format_and_print(outf, level + 4, header, value);
527 format_and_print(outf, level + 2, header, NULL);
530 format_and_print(outf, level + 3, header, NULL);
534 format_and_print(outf, level + 4, header, value);
538 format_and_print(outf, level + 4, header, value);
544 format_and_print(outf, level + 2, header, NULL);
547 format_and_print(outf, level + 3, header, NULL);
551 format_and_print(outf, level + 4, header, value);
555 format_and_print(outf, level + 4, header, value);
560 _isst_pbf_display_information(cpu, outf, i,
564 _isst_fact_display_information(cpu, outf, i, 0xff, 0xff,
569 format_and_print(outf, 1, NULL, NULL);
573 void isst_ctdp_display_information_start(FILE *outf)
576 format_and_print(outf, 0, "start", NULL);
580 void isst_ctdp_display_information_end(FILE *outf)
582 format_and_print(outf, 0, NULL, NULL);
586 void isst_pbf_display_information(int cpu, FILE *outf, int level,
591 _level = print_package_info(cpu, outf);
592 _isst_pbf_display_information(cpu, outf, level, pbf_info, _level + 1);
593 format_and_print(outf, 1, NULL, NULL);
596 void isst_fact_display_information(int cpu, FILE *outf, int level,
602 _level = print_package_info(cpu, outf);
603 _isst_fact_display_information(cpu, outf, level, fact_bucket, fact_avx,
605 format_and_print(outf, 1, NULL, NULL);
608 void isst_clos_display_information(int cpu, FILE *outf, int clos,
615 level = print_package_info(cpu, outf);
618 format_and_print(outf, level + 1, header, NULL);
622 format_and_print(outf, level + 2, header, value);
626 format_and_print(outf, level + 2, header, value);
630 format_and_print(outf, level + 2, header, value);
634 format_and_print(outf, level + 2, header, value);
641 format_and_print(outf, level + 2, header, value);
645 format_and_print(outf, level + 2, header, value);
647 format_and_print(outf, level, NULL, NULL);
650 void isst_clos_display_clos_information(int cpu, FILE *outf,
658 level = print_package_info(cpu, outf);
661 format_and_print(outf, level + 1, header, NULL);
668 format_and_print(outf, level + 2, header, value);
675 format_and_print(outf, level + 2, header, value);
682 format_and_print(outf, level + 2, header, value);
689 format_and_print(outf, level + 2, header, value);
691 format_and_print(outf, level, NULL, NULL);
694 void isst_clos_display_assoc_information(int cpu, FILE *outf, int clos)
700 level = print_package_info(cpu, outf);
703 format_and_print(outf, level + 1, header, NULL);
707 format_and_print(outf, level + 2, header, value);
709 format_and_print(outf, level, NULL, NULL);
712 void isst_display_result(int cpu, FILE *outf, char *feature, char *cmd,
720 level = print_package_info(cpu, outf);
723 format_and_print(outf, level + 1, header, NULL);
729 format_and_print(outf, level + 2, header, value);
731 format_and_print(outf, level, NULL, NULL);
736 FILE *outf = get_output_file();
748 fprintf(outf, "Error: %s\n", value);
750 fprintf(outf, "Information: %s\n", value);
755 format_and_print(outf, 0, "start", NULL);
761 format_and_print(outf, 1, header, NULL);
769 format_and_print(outf, 2, header, value);
770 format_and_print(outf, 1, NULL, NULL);
772 format_and_print(outf, 0, NULL, NULL);