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), in print_package_info()
189 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
192 format_and_print(outf, level, header, NULL); in print_package_info()
195 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
196 format_and_print(outf, level++, header, NULL); in print_package_info()
198 snprintf(header, sizeof(header), "die-IO"); in print_package_info()
200 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
201 format_and_print(outf, level++, header, NULL); in print_package_info()
203 snprintf(header, sizeof(header), "powerdomain-%d", id->punit); in print_package_info()
204 format_and_print(outf, level++, header, NULL); in print_package_info()
208 snprintf(header, sizeof(header), "cpu-None"); in print_package_info()
210 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
212 format_and_print(outf, level, header, NULL); in print_package_info()
221 static char header[256]; in _isst_pbf_display_information() local
224 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
225 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
227 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
230 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
232 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
235 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
237 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
241 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
243 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
246 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
251 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
253 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
255 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
257 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
267 char header[256]; in _isst_fact_display_information() local
286 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
287 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
297 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
298 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
300 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
303 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
308 snprintf(header, sizeof(header), in _isst_fact_display_information()
311 snprintf(header, sizeof(header), in _isst_fact_display_information()
315 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
318 snprintf(header, sizeof(header), in _isst_fact_display_information()
320 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
328 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
330 snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)", in _isst_fact_display_information()
334 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
360 static char header[256]; in isst_ctdp_display_information() local
377 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
379 format_and_print(outf, level + 1, header, NULL); in isst_ctdp_display_information()
382 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
385 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
390 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
392 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
396 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
400 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
402 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
406 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
410 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
412 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
414 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
419 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
422 snprintf(header, sizeof(header), "base-frequency-avx2(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), "base-frequency-avx512(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-min(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), "uncore-frequency-max(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), "base-frequency-amx(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), "uncore-frequency-base(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), "max-mem-frequency(MHz)"); in isst_ctdp_display_information()
467 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
471 snprintf(header, sizeof(header), "cooling_type"); in isst_ctdp_display_information()
474 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
477 snprintf(header, sizeof(header), in isst_ctdp_display_information()
486 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
488 snprintf(header, sizeof(header), in isst_ctdp_display_information()
497 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
499 snprintf(header, sizeof(header), in isst_ctdp_display_information()
508 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
520 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
522 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
526 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
528 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
535 snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k)); in isst_ctdp_display_information()
536 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
539 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
540 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
542 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
545 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
547 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
549 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
605 char header[256]; in isst_clos_display_information() local
611 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
612 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
614 snprintf(header, sizeof(header), "clos"); in isst_clos_display_information()
616 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
618 snprintf(header, sizeof(header), "epp"); in isst_clos_display_information()
620 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
622 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
624 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
626 snprintf(header, sizeof(header), "clos-min"); 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-max"); in isst_clos_display_information()
635 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
637 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
639 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
648 char header[256]; in isst_clos_display_clos_information() local
654 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
655 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
657 snprintf(header, sizeof(header), "support-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), "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), "clos-enable-status"); in isst_clos_display_clos_information()
676 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
678 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
683 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
690 char header[256]; in isst_clos_display_assoc_information() local
696 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
697 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
699 snprintf(header, sizeof(header), "clos"); in isst_clos_display_assoc_information()
701 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
709 char header[256]; in isst_display_result() local
715 snprintf(header, sizeof(header), "%s", feature); in isst_display_result()
716 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
717 snprintf(header, sizeof(header), "%s", cmd); in isst_display_result()
722 format_and_print(outf, level + 2, header, value); in isst_display_result()
731 char header[256]; in isst_display_error_info_message() local
751 snprintf(header, sizeof(header), "Error%d", error_index++); in isst_display_error_info_message()
753 snprintf(header, sizeof(header), "Information:%d", error_index++); in isst_display_error_info_message()
754 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
756 snprintf(header, sizeof(header), "message"); in isst_display_error_info_message()
762 format_and_print(outf, 2, header, value); in isst_display_error_info_message()
770 char header[256]; in isst_trl_display_information() local
776 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()
777 format_and_print(outf, level + 1, header, NULL); in isst_trl_display_information()
779 snprintf(header, sizeof(header), "trl"); in isst_trl_display_information()
781 format_and_print(outf, level + 2, header, value); in isst_trl_display_information()