Lines Matching refs:outf
208 FILE *outf; variable
716 fprintf(outf, in help()
1413 if (outf == stderr) in flush_output_stdout()
1416 filep = outf; in flush_output_stdout()
1426 fputs(output_buffer, outf); in flush_output_stderr()
1427 fflush(outf); in flush_output_stderr()
1601 fprintf(outf, "cpu%d MPERF 0!\n", old->cpu_id); in delta_thread()
2047 fprintf(outf, "cpu%d: BIOS BUG: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id); in get_apic_id()
2084 fprintf(outf, "get_counters: Could not migrate to CPU %d\n", cpu); in get_counters()
2431 fprintf(outf, "cpu%d: MSR_PLATFORM_INFO: 0x%08llx\n", base_cpu, msr); in dump_nhm_platform_info()
2434 fprintf(outf, "%d * %.1f = %.1f MHz max efficiency frequency\n", ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2437 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk); in dump_nhm_platform_info()
2440 fprintf(outf, "cpu%d: MSR_IA32_POWER_CTL: 0x%08llx (C1E auto-promotion: %sabled)\n", in dump_nhm_platform_info()
2445 fprintf(outf, "C-state Pre-wake: %sabled\n", msr & 0x40000000 ? "DIS" : "EN"); in dump_nhm_platform_info()
2457 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT2: 0x%08llx\n", base_cpu, msr); in dump_hsw_turbo_ratio_limits()
2461 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 18 active cores\n", ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2465 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 17 active cores\n", ratio, bclk, ratio * bclk); in dump_hsw_turbo_ratio_limits()
2476 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, msr); in dump_ivt_turbo_ratio_limits()
2480 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 16 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2484 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 15 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2488 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 14 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2492 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 13 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2496 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 12 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2500 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 11 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2504 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 10 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2508 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 9 active cores\n", ratio, bclk, ratio * bclk); in dump_ivt_turbo_ratio_limits()
2540 fprintf(outf, "cpu%d: MSR_%sTURBO_RATIO_LIMIT: 0x%08llx\n", in dump_turbo_ratio_limits()
2545 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, core_counts); in dump_turbo_ratio_limits()
2556 fprintf(outf, "%d * %.1f = %.1f MHz max turbo %d active cores\n", in dump_turbo_ratio_limits()
2569 fprintf(outf, "cpu%d: MSR_ATOM_CORE_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF); in dump_atom_turbo_ratio_limits()
2573 fprintf(outf, "%d * %.1f = %.1f MHz minimum operating frequency\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2577 fprintf(outf, "%d * %.1f = %.1f MHz low frequency mode (LFM)\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2581 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2584 fprintf(outf, "cpu%d: MSR_ATOM_CORE_TURBO_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF); in dump_atom_turbo_ratio_limits()
2588 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 4 active cores\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2592 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 3 active cores\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2596 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 2 active cores\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2600 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 1 active core\n", ratio, bclk, ratio * bclk); in dump_atom_turbo_ratio_limits()
2615 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", base_cpu, msr); in dump_knl_turbo_ratio_limits()
2655 fprintf(outf, in dump_knl_turbo_ratio_limits()
2666 fprintf(outf, "cpu%d: MSR_PKG_CST_CONFIG_CONTROL: 0x%08llx", base_cpu, msr); in dump_nhm_cst_cfg()
2668 fprintf(outf, " (%s%s%s%s%slocked, pkg-cstate-limit=%d (%s)", in dump_nhm_cst_cfg()
2677 …fprintf(outf, ", automatic c-state conversion=%s", (msr & AUTOMATIC_CSTATE_CONVERSION) ? "on" : "o… in dump_nhm_cst_cfg()
2680 fprintf(outf, ")\n"); in dump_nhm_cst_cfg()
2690 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_NOMINAL: 0x%08llx", base_cpu, msr); in dump_config_tdp()
2691 fprintf(outf, " (base_ratio=%d)\n", (unsigned int)msr & 0xFF); in dump_config_tdp()
2694 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_1: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
2696 fprintf(outf, "PKG_MIN_PWR_LVL1=%d ", (unsigned int)(msr >> 48) & 0x7FFF); in dump_config_tdp()
2697 fprintf(outf, "PKG_MAX_PWR_LVL1=%d ", (unsigned int)(msr >> 32) & 0x7FFF); in dump_config_tdp()
2698 fprintf(outf, "LVL1_RATIO=%d ", (unsigned int)(msr >> 16) & 0xFF); in dump_config_tdp()
2699 fprintf(outf, "PKG_TDP_LVL1=%d", (unsigned int)(msr) & 0x7FFF); in dump_config_tdp()
2701 fprintf(outf, ")\n"); in dump_config_tdp()
2704 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_2: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
2706 fprintf(outf, "PKG_MIN_PWR_LVL2=%d ", (unsigned int)(msr >> 48) & 0x7FFF); in dump_config_tdp()
2707 fprintf(outf, "PKG_MAX_PWR_LVL2=%d ", (unsigned int)(msr >> 32) & 0x7FFF); in dump_config_tdp()
2708 fprintf(outf, "LVL2_RATIO=%d ", (unsigned int)(msr >> 16) & 0xFF); in dump_config_tdp()
2709 fprintf(outf, "PKG_TDP_LVL2=%d", (unsigned int)(msr) & 0x7FFF); in dump_config_tdp()
2711 fprintf(outf, ")\n"); in dump_config_tdp()
2714 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_CONTROL: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
2716 fprintf(outf, "TDP_LEVEL=%d ", (unsigned int)(msr) & 0x3); in dump_config_tdp()
2717 fprintf(outf, " lock=%d", (unsigned int)(msr >> 31) & 1); in dump_config_tdp()
2718 fprintf(outf, ")\n"); in dump_config_tdp()
2721 fprintf(outf, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
2722 fprintf(outf, "MAX_NON_TURBO_RATIO=%d", (unsigned int)(msr) & 0xFF); in dump_config_tdp()
2723 fprintf(outf, " lock=%d", (unsigned int)(msr >> 31) & 1); in dump_config_tdp()
2724 fprintf(outf, ")\n"); in dump_config_tdp()
2734 fprintf(outf, "cpu%d: MSR_PKGC3_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2735 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
2739 fprintf(outf, "cpu%d: MSR_PKGC6_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2740 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
2744 fprintf(outf, "cpu%d: MSR_PKGC7_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2745 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
2752 fprintf(outf, "cpu%d: MSR_PKGC8_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2753 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
2757 fprintf(outf, "cpu%d: MSR_PKGC9_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2758 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
2762 fprintf(outf, "cpu%d: MSR_PKGC10_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
2763 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT", in print_irtl()
3057 fprintf(outf, "turbostat: re-initialized with num_cpus %d\n", topo.num_cpus); in re_initialize()
3436 fprintf(outf, "Can not update msr(0x%llx)\n", (unsigned long long)offset); in update_msr_sum()
3463 fprintf(outf, "Can not allocate memory for long time MSR.\n"); in msr_sum_record()
3475 fprintf(outf, "Can not create timer.\n"); in msr_sum_record()
3491 fprintf(outf, "Can not set timer.\n"); in msr_sum_record()
4130 fprintf(outf, "NSFOD %s\n", path); in read_sysfs_int()
4148 fprintf(outf, "NSFOD %s\n", path); in dump_sysfs_file()
4155 fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf); in dump_sysfs_file()
4185 fprintf(outf, "Uncore Frequency pkg%d die%d: %d - %d MHz ", i, j, k / 1000, l / 1000); in intel_uncore_frequency_probe()
4195 fprintf(outf, "(%d - %d MHz)\n", k / 1000, l / 1000); in intel_uncore_frequency_probe()
4210 fprintf(outf, "cpuidle not loaded\n"); in dump_sysfs_cstate_config()
4243 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config()
4259 fprintf(outf, "NSFOD %s\n", path); in dump_sysfs_pstate_config()
4269 fprintf(outf, "NSFOD %s\n", path); in dump_sysfs_pstate_config()
4276 fprintf(outf, "cpu%d: cpufreq driver: %s", base_cpu, driver_buf); in dump_sysfs_pstate_config()
4277 fprintf(outf, "cpu%d: cpufreq governor: %s", base_cpu, governor_buf); in dump_sysfs_pstate_config()
4284 fprintf(outf, "cpufreq boost: %d\n", turbo); in dump_sysfs_pstate_config()
4293 fprintf(outf, "cpufreq intel_pstate no_turbo: %d\n", turbo); in dump_sysfs_pstate_config()
4320 fprintf(outf, "print_epb: Could not migrate to CPU %d\n", cpu); in print_epb()
4342 fprintf(outf, "cpu%d: EPB: %d (%s)\n", cpu, epb, epb_string); in print_epb()
4369 fprintf(outf, "print_hwp: Could not migrate to CPU %d\n", cpu); in print_hwp()
4376 fprintf(outf, "cpu%d: MSR_PM_ENABLE: 0x%08llx (%sHWP)\n", cpu, msr, (msr & (1 << 0)) ? "" : "No-"); in print_hwp()
4385 fprintf(outf, "cpu%d: MSR_HWP_CAPABILITIES: 0x%08llx " in print_hwp()
4395 fprintf(outf, "cpu%d: MSR_HWP_REQUEST: 0x%08llx " in print_hwp()
4408 fprintf(outf, "cpu%d: MSR_HWP_REQUEST_PKG: 0x%08llx " in print_hwp()
4420 fprintf(outf, "cpu%d: MSR_HWP_INTERRUPT: 0x%08llx " in print_hwp()
4427 fprintf(outf, "cpu%d: MSR_HWP_STATUS: 0x%08llx " in print_hwp()
4452 fprintf(outf, "print_perf_limit: Could not migrate to CPU %d\n", cpu); in print_perf_limit()
4458 fprintf(outf, "cpu%d: MSR_CORE_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
4459 fprintf(outf, " (Active: %s%s%s%s%s%s%s%s%s%s%s%s%s%s)", in print_perf_limit()
4473 fprintf(outf, " (Logged: %s%s%s%s%s%s%s%s%s%s%s%s%s%s)\n", in print_perf_limit()
4491 fprintf(outf, "cpu%d: MSR_GFX_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
4492 fprintf(outf, " (Active: %s%s%s%s%s%s%s%s)", in print_perf_limit()
4500 fprintf(outf, " (Logged: %s%s%s%s%s%s%s%s)\n", in print_perf_limit()
4511 fprintf(outf, "cpu%d: MSR_RING_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr); in print_perf_limit()
4512 fprintf(outf, " (Active: %s%s%s%s%s%s)", in print_perf_limit()
4518 fprintf(outf, " (Logged: %s%s%s%s%s%s)\n", in print_perf_limit()
4744 …fprintf(outf, "RAPL: %.0f sec. Joule Counter Range, at %.0f Watts\n", rapl_joule_counter_range, td… in rapl_probe_intel()
4785 …fprintf(outf, "RAPL: %.0f sec. Joule Counter Range, at %.0f Watts\n", rapl_joule_counter_range, td… in rapl_probe_amd()
4860 fprintf(outf, "print_thermal: Could not migrate to CPU %d\n", cpu); in print_thermal()
4869 fprintf(outf, "cpu%d: MSR_IA32_PACKAGE_THERM_STATUS: 0x%08llx (%d C)\n", cpu, msr, tj_max - dts); in print_thermal()
4876 fprintf(outf, "cpu%d: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x%08llx (%d C, %d C)\n", in print_thermal()
4888 fprintf(outf, "cpu%d: MSR_IA32_THERM_STATUS: 0x%08llx (%d C +/- %d)\n", in print_thermal()
4896 fprintf(outf, "cpu%d: MSR_IA32_THERM_INTERRUPT: 0x%08llx (%d C, %d C)\n", in print_thermal()
4905 fprintf(outf, "cpu%d: %s: %sabled (%0.3f Watts, %f sec, clamp %sabled)\n", in print_power_limit_msr()
4933 fprintf(outf, "print_rapl: Could not migrate to CPU %d\n", cpu); in print_rapl()
4947 fprintf(outf, "cpu%d: %s: 0x%08llx (%f Watts, %f Joules, %f sec.)\n", cpu, msr_name, msr, in print_rapl()
4955 fprintf(outf, "cpu%d: MSR_PKG_POWER_INFO: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n", in print_rapl()
4968 fprintf(outf, "cpu%d: MSR_PKG_POWER_LIMIT: 0x%08llx (%slocked)\n", in print_rapl()
4972 fprintf(outf, "cpu%d: PKG Limit #2: %sabled (%0.3f Watts, %f* sec, clamp %sabled)\n", in print_rapl()
4982 fprintf(outf, "cpu%d: MSR_VR_CURRENT_CONFIG: 0x%08llx\n", cpu, msr); in print_rapl()
4983 fprintf(outf, "cpu%d: PKG Limit #4: %f Watts (%slocked)\n", in print_rapl()
4991 fprintf(outf, "cpu%d: MSR_DRAM_POWER_INFO,: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n", in print_rapl()
5001 fprintf(outf, "cpu%d: MSR_DRAM_POWER_LIMIT: 0x%08llx (%slocked)\n", in print_rapl()
5010 fprintf(outf, "cpu%d: MSR_PP0_POLICY: %lld\n", cpu, msr & 0xF); in print_rapl()
5015 fprintf(outf, "cpu%d: MSR_PP0_POWER_LIMIT: 0x%08llx (%slocked)\n", in print_rapl()
5023 fprintf(outf, "cpu%d: MSR_PP1_POLICY: %lld\n", cpu, msr & 0xF); in print_rapl()
5027 fprintf(outf, "cpu%d: MSR_PP1_POWER_LIMIT: 0x%08llx (%slocked)\n", in print_rapl()
5198 fprintf(outf, "SLM BCLK: unknown\n"); in slm_bclk()
5202 fprintf(outf, "SLM BCLK[%d] invalid\n", i); in slm_bclk()
5208 fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq); in slm_bclk()
5234 fprintf(outf, "Could not migrate to CPU %d\n", t->cpu_id); in get_cpu_type()
5279 fprintf(outf, "Could not migrate to CPU %d\n", cpu); in set_temperature_target()
5285 fprintf(outf, "cpu%d: Using cmdline TCC Target (%d C)\n", cpu, tj_max); in set_temperature_target()
5302 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C) (%d default - %d offset)\n", in set_temperature_target()
5307 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C) (%d default - %d offset)\n", in set_temperature_target()
5311 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C)\n", cpu, msr, tcc_default); in set_temperature_target()
5325 fprintf(outf, "cpu%d: Guessing tjMax %d C, Please use -T to specify\n", cpu, tj_max); in set_temperature_target()
5335 fprintf(outf, "cpu%d: MSR_IA32_FEATURE_CONTROL: 0x%08llx (%sLocked %s)\n", in decode_feature_control_msr()
5347 fprintf(outf, "cpu%d: MSR_IA32_MISC_ENABLE: 0x%08llx (%sTCC %sEIST %sMWAIT %sPREFETCH %sTURBO)\n", in decode_misc_enable_msr()
5364 fprintf(outf, in decode_misc_feature_control()
5388 …fprintf(outf, "cpu%d: MSR_MISC_PWR_MGMT: 0x%08llx (%sable-EIST_Coordination %sable-EPB %sable-OOB)… in decode_misc_pwr_mgmt_msr()
5404 fprintf(outf, "cpu%d: MSR_CC6_DEMOTION_POLICY_CONFIG: 0x%08llx (%sable-CC6-Demotion)\n", in decode_c6_demotion_policy_msr()
5408 fprintf(outf, "cpu%d: MSR_MC6_DEMOTION_POLICY_CONFIG: 0x%08llx (%sable-MC6-Demotion)\n", in decode_c6_demotion_policy_msr()
5489 …fprintf(outf, "/dev/cpu_dma_latency: %d usec (%s)\n", value, value == 2000000000 ? "default" : "co… in print_dev_latency()
5531 fprintf(outf, "CPUID(0): %.4s%.4s%.4s 0x%x CPUID levels\n", in process_cpuid()
5557 fprintf(outf, "CPUID(1): family:model:stepping 0x%x:%x:%x (%d:%d:%d) microcode 0x%x\n", in process_cpuid()
5560 fprintf(outf, "CPUID(0x80000000): max_extended_levels: 0x%x\n", max_extended_level); in process_cpuid()
5561 fprintf(outf, "CPUID(1): %s %s %s %s %s %s %s %s %s %s\n", in process_cpuid()
5617 fprintf(outf, "CPUID(6): %sAPERF, %sTURBO, %sDTS, %sPTM, %sHWP, " in process_cpuid()
5642 fprintf(outf, "CPUID(7): %sSGX %sHybrid\n", has_sgx ? "" : "No-", is_hybrid ? "" : "No-"); in process_cpuid()
5661 fprintf(outf, "CPUID(0x15): eax_crystal: %d ebx_tsc: %d ecx_crystal_hz: %d\n", in process_cpuid()
5683 fprintf(outf, "TSC: %lld MHz (%d Hz * %d / %d / 1000000)\n", in process_cpuid()
5698 fprintf(outf, "CPUID(0x16): base_mhz: %d max_mhz: %d bus_mhz: %d\n", in process_cpuid()
5874 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num); in topology_probe()
5919 fprintf(outf, "cpu%d NOT PRESENT\n", i); in topology_probe()
5955 …fprintf(outf, "max_core_id %d, sizing for %d cores per package\n", max_core_id, topo.cores_per_nod… in topology_probe()
5961 fprintf(outf, "max_die_id %d, sizing for %d die\n", max_die_id, topo.num_die); in topology_probe()
5967 fprintf(outf, "max_package_id %d, sizing for %d packages\n", max_package_id, topo.num_packages); in topology_probe()
5973 fprintf(outf, "nodes_per_pkg %d\n", topo.nodes_per_pkg); in topology_probe()
5979 fprintf(outf, "max_siblings %d\n", max_siblings); in topology_probe()
5987 fprintf(outf, in topology_probe()
6114 fprintf(outf, "base_cpu = %d\n", base_cpu); in set_base_cpu()
6195 fprintf(outf, "%s: Counter reset detected\n", progname); in fork_it()
6201 fprintf(outf, "%.6f sec\n", tv_delta.tv_sec + tv_delta.tv_usec / 1000000.0); in fork_it()
6228 fprintf(outf, "turbostat version 2022.10.04 - Len Brown <lenb@kernel.org>\n"); in print_version()
6248 fprintf(outf, "Kernel command line: %s", bootcmd); in print_bootcmd()
6655 fprintf(outf, "interval %f seconds is too small\n", interval); in cmdline()
6673 outf = fopen_or_die(optarg, "w"); in cmdline()
6682 fprintf(outf, "iterations %d should be positive number\n", num_iterations); in cmdline()
6690 fprintf(outf, "iterations %d should be positive number\n", header_iterations); in cmdline()
6722 outf = stderr; in main()