Lines Matching full:header
76 static void format_and_print_txt(FILE *outf, int level, char *header, in format_and_print_txt() argument
94 if (header && value) { in format_and_print_txt()
96 fprintf(outf, "%s:%s\n", header, value); in format_and_print_txt()
97 } else if (header) { in format_and_print_txt()
99 fprintf(outf, "%s\n", header); in format_and_print_txt()
104 static void format_and_print(FILE *outf, int level, char *header, char *value) in format_and_print() argument
111 format_and_print_txt(outf, level, header, value); in format_and_print()
116 if (header) in format_and_print()
135 fprintf(outf, "%s\"%s\": ", delimiters, header); in format_and_print()
145 if (i == level && header) in format_and_print()
152 if (header) in format_and_print()
154 header); in format_and_print()
163 char header[256]; in print_package_info() local
166 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in print_package_info()
169 format_and_print(outf, 1, header, NULL); in print_package_info()
172 snprintf(header, sizeof(header), "package-%d", in print_package_info()
174 format_and_print(outf, 1, header, NULL); in print_package_info()
175 snprintf(header, sizeof(header), "die-%d", get_physical_die_id(cpu)); in print_package_info()
176 format_and_print(outf, 2, header, NULL); in print_package_info()
177 snprintf(header, sizeof(header), "cpu-%d", cpu); in print_package_info()
178 format_and_print(outf, 3, header, NULL); in print_package_info()
187 char header[256]; in _isst_pbf_display_information() local
190 snprintf(header, sizeof(header), "speed-select-base-freq-properties"); in _isst_pbf_display_information()
191 format_and_print(outf, disp_level, header, NULL); in _isst_pbf_display_information()
193 snprintf(header, sizeof(header), "high-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
196 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
198 snprintf(header, sizeof(header), "high-priority-cpu-mask"); in _isst_pbf_display_information()
201 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
203 snprintf(header, sizeof(header), "high-priority-cpu-list"); 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), "low-priority-base-frequency(MHz)"); in _isst_pbf_display_information()
212 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
217 snprintf(header, sizeof(header), "tjunction-temperature(C)"); in _isst_pbf_display_information()
219 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
221 snprintf(header, sizeof(header), "thermal-design-power(W)"); in _isst_pbf_display_information()
223 format_and_print(outf, disp_level + 1, header, value); in _isst_pbf_display_information()
232 char header[256]; in _isst_fact_display_information() local
250 snprintf(header, sizeof(header), "speed-select-turbo-freq-properties"); in _isst_fact_display_information()
251 format_and_print(outf, base_level, header, NULL); in _isst_fact_display_information()
259 snprintf(header, sizeof(header), "bucket-%d", j); in _isst_fact_display_information()
260 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
262 snprintf(header, sizeof(header), "high-priority-cores-count"); in _isst_fact_display_information()
265 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
268 snprintf(header, sizeof(header), in _isst_fact_display_information()
272 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
276 snprintf(header, sizeof(header), in _isst_fact_display_information()
280 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
284 snprintf(header, sizeof(header), in _isst_fact_display_information()
289 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
292 snprintf(header, sizeof(header), in _isst_fact_display_information()
294 format_and_print(outf, base_level + 1, header, NULL); in _isst_fact_display_information()
295 snprintf(header, sizeof(header), "low-priority-max-frequency(MHz)"); in _isst_fact_display_information()
299 format_and_print(outf, base_level + 2, header, value); in _isst_fact_display_information()
300 snprintf(header, sizeof(header), 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()
317 char header[256]; in isst_ctdp_display_core_info() local
322 snprintf(header, sizeof(header), "package-%d:die-%d:cpu-%d", in isst_ctdp_display_core_info()
325 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
327 snprintf(header, sizeof(header), "package-%d", in isst_ctdp_display_core_info()
329 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
330 snprintf(header, sizeof(header), "die-%d", in isst_ctdp_display_core_info()
332 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
333 snprintf(header, sizeof(header), "cpu-%d", cpu); in isst_ctdp_display_core_info()
334 format_and_print(outf, level++, header, NULL); in isst_ctdp_display_core_info()
351 char header[256]; in isst_ctdp_display_information() local
367 snprintf(header, sizeof(header), "perf-profile-level-%d", in isst_ctdp_display_information()
369 format_and_print(outf, level + 1, header, NULL); in isst_ctdp_display_information()
371 snprintf(header, sizeof(header), "cpu-count"); in isst_ctdp_display_information()
375 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
380 snprintf(header, sizeof(header), "enable-cpu-count"); in isst_ctdp_display_information()
382 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
386 snprintf(header, sizeof(header), "enable-cpu-mask"); in isst_ctdp_display_information()
390 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
392 snprintf(header, sizeof(header), "enable-cpu-list"); in isst_ctdp_display_information()
396 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
399 snprintf(header, sizeof(header), "thermal-design-power-ratio"); in isst_ctdp_display_information()
401 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
403 snprintf(header, sizeof(header), "base-frequency(MHz)"); in isst_ctdp_display_information()
408 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
411 snprintf(header, sizeof(header), "base-frequency-avx2(MHz)"); in isst_ctdp_display_information()
414 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
418 snprintf(header, sizeof(header), "base-frequency-avx512(MHz)"); in isst_ctdp_display_information()
421 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
425 snprintf(header, sizeof(header), "uncore-frequency-min(MHz)"); in isst_ctdp_display_information()
428 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
432 snprintf(header, sizeof(header), "uncore-frequency-max(MHz)"); in isst_ctdp_display_information()
435 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
439 snprintf(header, sizeof(header), "mem-frequency(MHz)"); in isst_ctdp_display_information()
442 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
445 snprintf(header, sizeof(header), in isst_ctdp_display_information()
454 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
456 snprintf(header, sizeof(header), in isst_ctdp_display_information()
465 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
467 snprintf(header, sizeof(header), in isst_ctdp_display_information()
476 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
488 snprintf(header, sizeof(header), "thermal-design-power(W)"); in isst_ctdp_display_information()
490 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
494 snprintf(header, sizeof(header), "tjunction-max(C)"); in isst_ctdp_display_information()
496 format_and_print(outf, level + 2, header, value); in isst_ctdp_display_information()
499 snprintf(header, sizeof(header), "turbo-ratio-limits-sse"); in isst_ctdp_display_information()
500 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
502 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
503 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
505 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
507 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
509 snprintf(header, sizeof(header), in isst_ctdp_display_information()
514 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
518 snprintf(header, sizeof(header), "turbo-ratio-limits-avx2"); in isst_ctdp_display_information()
519 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
521 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
522 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
524 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()
535 snprintf(header, sizeof(header), "turbo-ratio-limits-avx512"); in isst_ctdp_display_information()
536 format_and_print(outf, level + 2, header, NULL); in isst_ctdp_display_information()
538 snprintf(header, sizeof(header), "bucket-%d", j); in isst_ctdp_display_information()
539 format_and_print(outf, level + 3, header, NULL); in isst_ctdp_display_information()
541 snprintf(header, sizeof(header), "core-count"); in isst_ctdp_display_information()
543 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
545 snprintf(header, sizeof(header), "max-turbo-frequency(MHz)"); in isst_ctdp_display_information()
547 format_and_print(outf, level + 4, header, value); in isst_ctdp_display_information()
603 char header[256]; in isst_clos_display_information() local
609 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_information()
610 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_information()
612 snprintf(header, sizeof(header), "clos"); in isst_clos_display_information()
614 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
616 snprintf(header, sizeof(header), "epp"); in isst_clos_display_information()
618 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
620 snprintf(header, sizeof(header), "clos-proportional-priority"); in isst_clos_display_information()
622 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
624 snprintf(header, sizeof(header), "clos-min"); in isst_clos_display_information()
626 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
628 snprintf(header, sizeof(header), "clos-max"); in isst_clos_display_information()
633 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
635 snprintf(header, sizeof(header), "clos-desired"); in isst_clos_display_information()
637 format_and_print(outf, level + 2, header, value); in isst_clos_display_information()
646 char header[256]; in isst_clos_display_clos_information() local
652 snprintf(header, sizeof(header), "core-power"); in isst_clos_display_clos_information()
653 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_clos_information()
655 snprintf(header, sizeof(header), "support-status"); in isst_clos_display_clos_information()
660 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
662 snprintf(header, sizeof(header), "enable-status"); in isst_clos_display_clos_information()
667 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
669 snprintf(header, sizeof(header), "clos-enable-status"); in isst_clos_display_clos_information()
674 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
676 snprintf(header, sizeof(header), "priority-type"); in isst_clos_display_clos_information()
681 format_and_print(outf, level + 2, header, value); in isst_clos_display_clos_information()
688 char header[256]; in isst_clos_display_assoc_information() local
694 snprintf(header, sizeof(header), "get-assoc"); in isst_clos_display_assoc_information()
695 format_and_print(outf, level + 1, header, NULL); in isst_clos_display_assoc_information()
697 snprintf(header, sizeof(header), "clos"); in isst_clos_display_assoc_information()
699 format_and_print(outf, level + 2, header, value); in isst_clos_display_assoc_information()
707 char header[256]; in isst_display_result() local
714 snprintf(header, sizeof(header), "%s", feature); in isst_display_result()
715 format_and_print(outf, level + 1, header, NULL); in isst_display_result()
716 snprintf(header, sizeof(header), "%s", cmd); in isst_display_result()
721 format_and_print(outf, level + 2, header, value); in isst_display_result()
730 char header[256]; in isst_display_error_info_message() local
750 snprintf(header, sizeof(header), "Error%d", error_index++); in isst_display_error_info_message()
752 snprintf(header, sizeof(header), "Information:%d", error_index++); in isst_display_error_info_message()
753 format_and_print(outf, 1, header, NULL); in isst_display_error_info_message()
755 snprintf(header, sizeof(header), "message"); in isst_display_error_info_message()
761 format_and_print(outf, 2, header, value); in isst_display_error_info_message()