Lines Matching refs:outf

84 static void format_and_print_txt(FILE *outf, int level, char *header,  in format_and_print_txt()  argument
103 fprintf(outf, "%s", delimiters); in format_and_print_txt()
104 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt()
106 fprintf(outf, "%s", delimiters); in format_and_print_txt()
107 fprintf(outf, "%s\n", header); in format_and_print_txt()
112 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument
119 format_and_print_txt(outf, level, header, value); in format_and_print()
125 fprintf(outf, "{"); in format_and_print()
127 fprintf(outf, "\n}\n"); in format_and_print()
137 fprintf(outf, ",\n"); in format_and_print()
141 fprintf(outf, "\n"); in format_and_print()
143 fprintf(outf, "%s\"%s\": ", delimiters, header); in format_and_print()
144 fprintf(outf, "\"%s\"", value); in format_and_print()
154 fprintf(outf, "\n%s},", delimiters); in format_and_print()
156 fprintf(outf, "\n%s}", delimiters); in format_and_print()
159 fprintf(outf, "\n"); in format_and_print()
161 fprintf(outf, "%s\"%s\": {", delimiters, in format_and_print()
169 static int print_package_info(struct isst_id *id, FILE *outf) in print_package_info() argument
176 format_and_print(outf, 1, header, NULL); in print_package_info()
180 format_and_print(outf, 1, header, NULL); in print_package_info()
182 format_and_print(outf, 2, header, NULL); in print_package_info()
184 format_and_print(outf, 3, header, NULL); in print_package_info()
189 static void _isst_pbf_display_information(struct isst_id *id, FILE *outf, int level, in _isst_pbf_display_information() argument
197 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
202 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
207 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
213 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
218 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
225 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
229 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
232 static void _isst_fact_display_information(struct isst_id *id, FILE *outf, int level, in _isst_fact_display_information() argument
257 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
266 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
271 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
278 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
286 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
295 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
300 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
305 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
311 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
317 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
320 void isst_ctdp_display_core_info(struct isst_id *id, FILE *outf, char *prefix, in isst_ctdp_display_core_info() argument
330 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
333 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
335 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
337 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
346 format_and_print(outf, level, prefix, value); in isst_ctdp_display_core_info()
348 format_and_print(outf, 1, NULL, NULL); in isst_ctdp_display_core_info()
351 void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level, in isst_ctdp_display_information() argument
360 level = print_package_info(id, outf); in isst_ctdp_display_information()
372 format_and_print(outf, level + 1, header, NULL); in isst_ctdp_display_information()
377 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
384 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
392 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
398 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
403 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
410 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
416 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
423 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
430 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
437 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
444 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
456 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
467 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
478 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
482 _isst_pbf_display_information(id, outf, in isst_ctdp_display_information()
492 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
498 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
502 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
505 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
509 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
516 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
521 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
524 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
528 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
532 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
538 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
541 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
545 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
549 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
554 _isst_pbf_display_information(id, outf, i, in isst_ctdp_display_information()
558 _isst_fact_display_information(id, outf, i, 0xff, 0xff, in isst_ctdp_display_information()
563 format_and_print(outf, 1, NULL, NULL); in isst_ctdp_display_information()
567 void isst_ctdp_display_information_start(FILE *outf) in isst_ctdp_display_information_start() argument
570 format_and_print(outf, 0, "start", NULL); in isst_ctdp_display_information_start()
574 void isst_ctdp_display_information_end(FILE *outf) in isst_ctdp_display_information_end() argument
576 format_and_print(outf, 0, NULL, NULL); in isst_ctdp_display_information_end()
580 void isst_pbf_display_information(struct isst_id *id, FILE *outf, int level, in isst_pbf_display_information() argument
585 _level = print_package_info(id, outf); in isst_pbf_display_information()
586 _isst_pbf_display_information(id, outf, level, pbf_info, _level + 1); in isst_pbf_display_information()
587 format_and_print(outf, 1, NULL, NULL); in isst_pbf_display_information()
590 void isst_fact_display_information(struct isst_id *id, FILE *outf, int level, in isst_fact_display_information() argument
596 _level = print_package_info(id, outf); in isst_fact_display_information()
597 _isst_fact_display_information(id, outf, level, fact_bucket, fact_avx, in isst_fact_display_information()
599 format_and_print(outf, 1, NULL, NULL); in isst_fact_display_information()
602 void isst_clos_display_information(struct isst_id *id, FILE *outf, int clos, in isst_clos_display_information() argument
609 level = print_package_info(id, outf); in isst_clos_display_information()
612 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
616 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
620 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
624 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
628 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
635 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
639 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
641 format_and_print(outf, level, NULL, NULL); in isst_clos_display_information()
644 void isst_clos_display_clos_information(struct isst_id *id, FILE *outf, in isst_clos_display_clos_information() argument
652 level = print_package_info(id, outf); in isst_clos_display_clos_information()
655 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
662 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
669 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
676 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
683 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
685 format_and_print(outf, level, NULL, NULL); in isst_clos_display_clos_information()
688 void isst_clos_display_assoc_information(struct isst_id *id, FILE *outf, int clos) in isst_clos_display_assoc_information() argument
694 level = print_package_info(id, outf); in isst_clos_display_assoc_information()
697 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
701 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
703 format_and_print(outf, level, NULL, NULL); in isst_clos_display_assoc_information()
706 void isst_display_result(struct isst_id *id, FILE *outf, char *feature, char *cmd, in isst_display_result() argument
714 level = print_package_info(id, outf); in isst_display_result()
717 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
723 format_and_print(outf, level + 2, header, value); in isst_display_result()
725 format_and_print(outf, level, NULL, NULL); in isst_display_result()
730 FILE *outf = get_output_file(); in isst_display_error_info_message() local
742 fprintf(outf, "Error: %s\n", value); in isst_display_error_info_message()
744 fprintf(outf, "Information: %s\n", value); in isst_display_error_info_message()
749 format_and_print(outf, 0, "start", NULL); in isst_display_error_info_message()
755 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
763 format_and_print(outf, 2, header, value); in isst_display_error_info_message()
764 format_and_print(outf, 1, NULL, NULL); in isst_display_error_info_message()
766 format_and_print(outf, 0, NULL, NULL); in isst_display_error_info_message()
769 void isst_trl_display_information(struct isst_id *id, FILE *outf, unsigned long long trl) in isst_trl_display_information() argument
775 level = print_package_info(id, outf); in isst_trl_display_information()
778 format_and_print(outf, level + 1, header, NULL); in isst_trl_display_information()
782 format_and_print(outf, level + 2, header, value); in isst_trl_display_information()
784 format_and_print(outf, level, NULL, NULL); in isst_trl_display_information()