Lines Matching refs: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
176 snprintf(header, sizeof(header), "package-%d:die-%d:powerdomain-%d:cpu-%d", in print_package_info()
179 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
181 format_and_print(outf, level, header, NULL); in print_package_info()
184 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
185 format_and_print(outf, level++, header, NULL); in print_package_info()
186 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
187 format_and_print(outf, level++, header, NULL); in print_package_info()
189 snprintf(header, sizeof(header), "powerdomain-%d", id->punit); in print_package_info()
190 format_and_print(outf, level++, header, NULL); in print_package_info()
192 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
193 format_and_print(outf, level, header, NULL); in print_package_info()
202 char header[256]; in _isst_pbf_display_information() local
205 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
206 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
208 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
211 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
213 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
216 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
218 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
222 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
224 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
227 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
232 snprintf(header, sizeof(header), "tjunction-temperature(C)"); 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), "thermal-design-power(W)"); in _isst_pbf_display_information()
238 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
248 char header[256]; in _isst_fact_display_information() local
267 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
268 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
278 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
279 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
281 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
284 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
289 snprintf(header, sizeof(header), in _isst_fact_display_information()
292 snprintf(header, sizeof(header), in _isst_fact_display_information()
296 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
299 snprintf(header, sizeof(header), in _isst_fact_display_information()
301 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
309 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
311 snprintf(header, sizeof(header), "low-priority-max-%s-frequency(MHz)", in _isst_fact_display_information()
315 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
341 char header[256]; in isst_ctdp_display_information() local
358 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
360 format_and_print(outf, level + 1, header, NULL); in isst_ctdp_display_information()
363 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
366 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
371 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
373 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
377 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
381 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
383 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
387 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
391 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
393 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
395 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
400 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
403 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
406 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
410 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
413 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
417 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
420 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
424 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
427 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
431 snprintf(header, sizeof(header), "base-frequency-amx(MHz)"); in isst_ctdp_display_information()
434 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
438 snprintf(header, sizeof(header), "uncore-frequency-base(MHz)"); in isst_ctdp_display_information()
441 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
445 snprintf(header, sizeof(header), "max-mem-frequency(MHz)"); in isst_ctdp_display_information()
448 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
452 snprintf(header, sizeof(header), "cooling_type"); in isst_ctdp_display_information()
455 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
458 snprintf(header, sizeof(header), in isst_ctdp_display_information()
467 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
469 snprintf(header, sizeof(header), in isst_ctdp_display_information()
478 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
480 snprintf(header, sizeof(header), in isst_ctdp_display_information()
489 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
501 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
503 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
507 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
509 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
516 snprintf(header, sizeof(header), "turbo-ratio-limits-%s", isst_get_trl_level_name(k)); in isst_ctdp_display_information()
517 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
520 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
521 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
523 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
526 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
528 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
530 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
586 char header[256]; in isst_clos_display_information() local
592 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
593 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
595 snprintf(header, sizeof(header), "clos"); in isst_clos_display_information()
597 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
599 snprintf(header, sizeof(header), "epp"); in isst_clos_display_information()
601 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
603 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
605 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
607 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
609 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
611 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
616 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
618 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
620 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
629 char header[256]; in isst_clos_display_clos_information() local
635 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
636 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
638 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
643 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
645 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
650 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
652 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
657 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
659 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
664 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
671 char header[256]; in isst_clos_display_assoc_information() local
677 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
678 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
680 snprintf(header, sizeof(header), "clos"); in isst_clos_display_assoc_information()
682 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
690 char header[256]; in isst_display_result() local
696 snprintf(header, sizeof(header), "%s", feature); in isst_display_result()
697 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
698 snprintf(header, sizeof(header), "%s", cmd); in isst_display_result()
703 format_and_print(outf, level + 2, header, value); in isst_display_result()
712 char header[256]; in isst_display_error_info_message() local
732 snprintf(header, sizeof(header), "Error%d", error_index++); in isst_display_error_info_message()
734 snprintf(header, sizeof(header), "Information:%d", error_index++); in isst_display_error_info_message()
735 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
737 snprintf(header, sizeof(header), "message"); in isst_display_error_info_message()
743 format_and_print(outf, 2, header, value); in isst_display_error_info_message()
751 char header[256]; in isst_trl_display_information() local
757 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()
758 format_and_print(outf, level + 1, header, NULL); in isst_trl_display_information()
760 snprintf(header, sizeof(header), "trl"); in isst_trl_display_information()
762 format_and_print(outf, level + 2, header, value); in isst_trl_display_information()