Lines Matching full:header

84 static void format_and_print_txt(FILE *outf, int level, char *header,  in format_and_print_txt()  argument
102 if (header && value) { in format_and_print_txt()
104 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt()
105 } else if (header) { 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()
124 if (header) in format_and_print()
143 fprintf(outf, "%s\"%s\": ", delimiters, header); in format_and_print()
153 if (i == level && header) in format_and_print()
160 if (header) in format_and_print()
162 header); in format_and_print()
171 char header[256]; in print_package_info() local
177 snprintf(header, sizeof(header), in print_package_info()
181 snprintf(header, sizeof(header), in print_package_info()
185 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
188 format_and_print(outf, level, header, NULL); in print_package_info()
191 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
192 format_and_print(outf, level++, header, NULL); in print_package_info()
193 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
194 format_and_print(outf, level++, header, NULL); in print_package_info()
196 snprintf(header, sizeof(header), "powerdomain-%d", id->punit); in print_package_info()
197 format_and_print(outf, level++, header, NULL); in print_package_info()
201 snprintf(header, sizeof(header), "cpu-None"); in print_package_info()
203 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
205 format_and_print(outf, level, header, NULL); in print_package_info()
214 static char header[256]; in _isst_pbf_display_information() local
217 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
218 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
220 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
223 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
225 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
228 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
230 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
234 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
236 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
239 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
244 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
246 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
248 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
250 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
260 char header[256]; in _isst_fact_display_information() local
279 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
280 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
290 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
291 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
293 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
296 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
301 snprintf(header, sizeof(header), in _isst_fact_display_information()
304 snprintf(header, sizeof(header), in _isst_fact_display_information()
308 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
311 snprintf(header, sizeof(header), in _isst_fact_display_information()
313 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
321 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
323 snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)", in _isst_fact_display_information()
327 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
353 static char header[256]; in isst_ctdp_display_information() local
370 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
372 format_and_print(outf, level + 1, header, NULL); in isst_ctdp_display_information()
375 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
378 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
383 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
385 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
389 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
393 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
395 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
399 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
403 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
405 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
407 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
412 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
415 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
418 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
422 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
425 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
429 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
432 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
436 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
439 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
443 snprintf(header, sizeof(header), "base-frequency-amx(MHz)"); in isst_ctdp_display_information()
446 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
450 snprintf(header, sizeof(header), "uncore-frequency-base(MHz)"); in isst_ctdp_display_information()
453 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
457 snprintf(header, sizeof(header), "max-mem-frequency(MHz)"); in isst_ctdp_display_information()
460 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
464 snprintf(header, sizeof(header), "cooling_type"); in isst_ctdp_display_information()
467 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
470 snprintf(header, sizeof(header), in isst_ctdp_display_information()
479 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
481 snprintf(header, sizeof(header), in isst_ctdp_display_information()
490 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
492 snprintf(header, sizeof(header), in isst_ctdp_display_information()
501 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
513 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
515 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
519 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
521 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
528 snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k)); in isst_ctdp_display_information()
529 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
532 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
533 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
535 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
538 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
540 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
542 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
598 char header[256]; in isst_clos_display_information() local
604 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
605 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
607 snprintf(header, sizeof(header), "clos"); in isst_clos_display_information()
609 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
611 snprintf(header, sizeof(header), "epp"); in isst_clos_display_information()
613 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
615 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
617 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
619 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
621 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
623 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
628 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
630 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
632 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
641 char header[256]; in isst_clos_display_clos_information() local
647 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
648 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
650 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
655 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
657 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
662 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
664 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
669 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
671 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
676 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
683 char header[256]; in isst_clos_display_assoc_information() local
689 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
690 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
692 snprintf(header, sizeof(header), "clos"); in isst_clos_display_assoc_information()
694 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
702 char header[256]; in isst_display_result() local
708 snprintf(header, sizeof(header), "%s", feature); in isst_display_result()
709 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
710 snprintf(header, sizeof(header), "%s", cmd); in isst_display_result()
715 format_and_print(outf, level + 2, header, value); in isst_display_result()
724 char header[256]; in isst_display_error_info_message() local
744 snprintf(header, sizeof(header), "Error%d", error_index++); in isst_display_error_info_message()
746 snprintf(header, sizeof(header), "Information:%d", error_index++); in isst_display_error_info_message()
747 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
749 snprintf(header, sizeof(header), "message"); in isst_display_error_info_message()
755 format_and_print(outf, 2, header, value); in isst_display_error_info_message()
763 char header[256]; in isst_trl_display_information() local
769 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()
770 format_and_print(outf, level + 1, header, NULL); in isst_trl_display_information()
772 snprintf(header, sizeof(header), "trl"); in isst_trl_display_information()
774 format_and_print(outf, level + 2, header, value); in isst_trl_display_information()