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
174 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
176 format_and_print(outf, 1, header, NULL); in print_package_info()
179 snprintf(header, sizeof(header), "package-%d", id->pkg); in print_package_info()
180 format_and_print(outf, 1, header, NULL); in print_package_info()
181 snprintf(header, sizeof(header), "die-%d", id->die); in print_package_info()
182 format_and_print(outf, 2, header, NULL); in print_package_info()
183 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in print_package_info()
184 format_and_print(outf, 3, header, NULL); in print_package_info()
193 char header[256]; in _isst_pbf_display_information() local
196 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
197 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
199 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
202 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
204 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
207 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
209 snprintf(header, sizeof(header), "high-priority-cpu-list"); in _isst_pbf_display_information()
213 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
215 snprintf(header, sizeof(header), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
218 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
223 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
225 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
227 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
229 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
238 char header[256]; in _isst_fact_display_information() local
256 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
257 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
265 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
266 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
268 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
271 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
274 snprintf(header, sizeof(header), in _isst_fact_display_information()
278 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
282 snprintf(header, sizeof(header), in _isst_fact_display_information()
286 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
290 snprintf(header, sizeof(header), in _isst_fact_display_information()
295 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
298 snprintf(header, sizeof(header), in _isst_fact_display_information()
300 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
301 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
305 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
306 snprintf(header, sizeof(header), in _isst_fact_display_information()
311 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
312 snprintf(header, sizeof(header), in _isst_fact_display_information()
317 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
323 char header[256]; in isst_ctdp_display_core_info() local
328 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in isst_ctdp_display_core_info()
330 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
332 snprintf(header, sizeof(header), "package-%d", id->pkg); in isst_ctdp_display_core_info()
333 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
334 snprintf(header, sizeof(header), "die-%d", id->die); in isst_ctdp_display_core_info()
335 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
336 snprintf(header, sizeof(header), "cpu-%d", id->cpu); in isst_ctdp_display_core_info()
337 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
354 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()
374 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
377 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
382 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
384 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
388 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
392 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
394 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
398 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
401 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
403 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
405 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
410 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
413 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
416 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
420 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
423 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
427 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
430 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
434 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
437 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
441 snprintf(header, sizeof(header), "uncore-frequency-base(MHz)"); in isst_ctdp_display_information()
444 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
448 snprintf(header, sizeof(header), "mem-frequency(MHz)"); in isst_ctdp_display_information()
451 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
454 snprintf(header, sizeof(header), in isst_ctdp_display_information()
463 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
465 snprintf(header, sizeof(header), in isst_ctdp_display_information()
474 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
476 snprintf(header, sizeof(header), in isst_ctdp_display_information()
485 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
497 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
499 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
503 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
505 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
508 snprintf(header, sizeof(header), "turbo-ratio-limits-sse"); in isst_ctdp_display_information()
509 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
511 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
512 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
514 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
516 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
518 snprintf(header, sizeof(header), in isst_ctdp_display_information()
523 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
527 snprintf(header, sizeof(header), "turbo-ratio-limits-avx2"); in isst_ctdp_display_information()
528 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
530 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
531 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
533 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
535 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
537 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
539 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
544 snprintf(header, sizeof(header), "turbo-ratio-limits-avx512"); in isst_ctdp_display_information()
545 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
547 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
548 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
550 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
552 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
554 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
556 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
612 char header[256]; in isst_clos_display_information() local
618 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
619 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
621 snprintf(header, sizeof(header), "clos"); in isst_clos_display_information()
623 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
625 snprintf(header, sizeof(header), "epp"); in isst_clos_display_information()
627 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
629 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
631 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
633 snprintf(header, sizeof(header), "clos-min"); 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-max"); in isst_clos_display_information()
642 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
644 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
646 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
655 char header[256]; in isst_clos_display_clos_information() local
661 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
662 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
664 snprintf(header, sizeof(header), "support-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), "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), "clos-enable-status"); in isst_clos_display_clos_information()
683 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
685 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
690 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
697 char header[256]; in isst_clos_display_assoc_information() local
703 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
704 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
706 snprintf(header, sizeof(header), "clos"); in isst_clos_display_assoc_information()
708 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
716 char header[256]; in isst_display_result() local
723 snprintf(header, sizeof(header), "%s", feature); in isst_display_result()
724 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
725 snprintf(header, sizeof(header), "%s", cmd); in isst_display_result()
730 format_and_print(outf, level + 2, header, value); in isst_display_result()
739 char header[256]; in isst_display_error_info_message() local
759 snprintf(header, sizeof(header), "Error%d", error_index++); in isst_display_error_info_message()
761 snprintf(header, sizeof(header), "Information:%d", error_index++); in isst_display_error_info_message()
762 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
764 snprintf(header, sizeof(header), "message"); in isst_display_error_info_message()
770 format_and_print(outf, 2, header, value); in isst_display_error_info_message()
778 char header[256]; in isst_trl_display_information() local
784 snprintf(header, sizeof(header), "get-trl"); in isst_trl_display_information()
785 format_and_print(outf, level + 1, header, NULL); in isst_trl_display_information()
787 snprintf(header, sizeof(header), "trl"); in isst_trl_display_information()
789 format_and_print(outf, level + 2, header, value); in isst_trl_display_information()