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(struct isst_id *id, FILE *outf)
181 format_and_print(outf, level, header, NULL);
185 format_and_print(outf, level++, header, NULL);
187 format_and_print(outf, level++, header, NULL);
190 format_and_print(outf, level++, header, NULL);
193 format_and_print(outf, level, header, NULL);
198 static void _isst_pbf_display_information(struct isst_id *id, FILE *outf, int level,
206 format_and_print(outf, disp_level, header, NULL);
211 format_and_print(outf, disp_level + 1, header, value);
216 format_and_print(outf, disp_level + 1, header, value);
222 format_and_print(outf, disp_level + 1, header, value);
227 format_and_print(outf, disp_level + 1, header, value);
234 format_and_print(outf, disp_level + 1, header, value);
238 format_and_print(outf, disp_level + 1, header, value);
241 static void _isst_fact_display_information(struct isst_id *id, FILE *outf, int level,
268 format_and_print(outf, base_level, header, NULL);
279 format_and_print(outf, base_level + 1, header, NULL);
284 format_and_print(outf, base_level + 2, header, value);
296 format_and_print(outf, base_level + 2, header, value);
301 format_and_print(outf, base_level + 1, header, NULL);
315 format_and_print(outf, base_level + 2, header, value);
319 void isst_ctdp_display_core_info(struct isst_id *id, FILE *outf, char *prefix,
323 int level = print_package_info(id, outf);
333 format_and_print(outf, level, prefix, value);
335 format_and_print(outf, 1, NULL, NULL);
338 void isst_ctdp_display_information(struct isst_id *id, FILE *outf, int tdp_level,
348 level = print_package_info(id, outf);
360 format_and_print(outf, level + 1, header, NULL);
366 format_and_print(outf, level + 2, header, value);
373 format_and_print(outf, level + 2, header, value);
381 format_and_print(outf, level + 2, header, value);
387 format_and_print(outf, level + 2, header, value);
393 format_and_print(outf, level + 2, header, value);
400 format_and_print(outf, level + 2, header, value);
406 format_and_print(outf, level + 2, header, value);
413 format_and_print(outf, level + 2, header, value);
420 format_and_print(outf, level + 2, header, value);
427 format_and_print(outf, level + 2, header, value);
434 format_and_print(outf, level + 2, header, value);
441 format_and_print(outf, level + 2, header, value);
448 format_and_print(outf, level + 2, header, value);
455 format_and_print(outf, level + 2, header, value);
467 format_and_print(outf, level + 2, header, value);
478 format_and_print(outf, level + 2, header, value);
489 format_and_print(outf, level + 2, header, value);
493 _isst_pbf_display_information(id, outf,
503 format_and_print(outf, level + 2, header, value);
509 format_and_print(outf, level + 2, header, value);
517 format_and_print(outf, level + 2, header, NULL);
521 format_and_print(outf, level + 3, header, NULL);
526 format_and_print(outf, level + 4, header, value);
530 format_and_print(outf, level + 4, header, value);
535 _isst_pbf_display_information(id, outf, i,
539 _isst_fact_display_information(id, outf, i, 0xff, 0xff,
544 format_and_print(outf, 1, NULL, NULL);
548 void isst_ctdp_display_information_start(FILE *outf)
551 format_and_print(outf, 0, "start", NULL);
555 void isst_ctdp_display_information_end(FILE *outf)
557 format_and_print(outf, 0, NULL, NULL);
561 void isst_pbf_display_information(struct isst_id *id, FILE *outf, int level,
566 _level = print_package_info(id, outf);
567 _isst_pbf_display_information(id, outf, level, pbf_info, _level + 1);
568 format_and_print(outf, 1, NULL, NULL);
571 void isst_fact_display_information(struct isst_id *id, FILE *outf, int level,
577 _level = print_package_info(id, outf);
578 _isst_fact_display_information(id, outf, level, fact_bucket, fact_avx,
580 format_and_print(outf, 1, NULL, NULL);
583 void isst_clos_display_information(struct isst_id *id, FILE *outf, int clos,
590 level = print_package_info(id, outf);
593 format_and_print(outf, level + 1, header, NULL);
597 format_and_print(outf, level + 2, header, value);
601 format_and_print(outf, level + 2, header, value);
605 format_and_print(outf, level + 2, header, value);
609 format_and_print(outf, level + 2, header, value);
616 format_and_print(outf, level + 2, header, value);
620 format_and_print(outf, level + 2, header, value);
622 format_and_print(outf, level, NULL, NULL);
625 void isst_clos_display_clos_information(struct isst_id *id, FILE *outf,
633 level = print_package_info(id, outf);
636 format_and_print(outf, level + 1, header, NULL);
643 format_and_print(outf, level + 2, header, value);
650 format_and_print(outf, level + 2, header, value);
657 format_and_print(outf, level + 2, header, value);
664 format_and_print(outf, level + 2, header, value);
666 format_and_print(outf, level, NULL, NULL);
669 void isst_clos_display_assoc_information(struct isst_id *id, FILE *outf, int clos)
675 level = print_package_info(id, outf);
678 format_and_print(outf, level + 1, header, NULL);
682 format_and_print(outf, level + 2, header, value);
684 format_and_print(outf, level, NULL, NULL);
687 void isst_display_result(struct isst_id *id, FILE *outf, char *feature, char *cmd,
694 level = print_package_info(id, outf);
697 format_and_print(outf, level + 1, header, NULL);
703 format_and_print(outf, level + 2, header, value);
705 format_and_print(outf, level, NULL, NULL);
710 FILE *outf = get_output_file();
722 fprintf(outf, "Error: %s\n", value);
724 fprintf(outf, "Information: %s\n", value);
729 format_and_print(outf, 0, "start", NULL);
735 format_and_print(outf, 1, header, NULL);
743 format_and_print(outf, 2, header, value);
744 format_and_print(outf, 1, NULL, NULL);
746 format_and_print(outf, 0, NULL, NULL);
749 void isst_trl_display_information(struct isst_id *id, FILE *outf, unsigned long long trl)
755 level = print_package_info(id, outf);
758 format_and_print(outf, level + 1, header, NULL);
762 format_and_print(outf, level + 2, header, value);
764 format_and_print(outf, level, NULL, NULL);