Lines Matching defs:outf

472 FILE *outf;
614 fprintf(outf, "SLM BCLK: unknown\n");
618 fprintf(outf, "SLM BCLK[%d] invalid\n", i);
624 fprintf(outf, "SLM BCLK: %.1f Mhz\n", freq);
1270 fprintf(outf, "Forced to run on unsupported platform!\n");
2569 fprintf(outf,
3664 if (outf == stderr)
3667 filep = outf;
3677 fputs(output_buffer, outf);
3678 fflush(outf);
3902 fprintf(outf, "cpu%d MPERF 0!\n", old->cpu_id);
4503 fprintf(outf, "cpu%d: BIOS BUG: apic 0x%x x2apic 0x%x\n", t->cpu_id, t->apic_id, t->x2apic_id);
5111 fprintf(outf, "%s: Could not migrate to CPU %d\n", __func__, cpu);
5379 fprintf(outf, "cpu%d: MSR_PLATFORM_INFO: 0x%08llx\n", base_cpu, msr);
5382 fprintf(outf, "%d * %.1f = %.1f MHz max efficiency frequency\n", ratio, bclk, ratio * bclk);
5385 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk);
5396 fprintf(outf, "cpu%d: MSR_IA32_POWER_CTL: 0x%08llx (C1E auto-promotion: %sabled)\n",
5401 fprintf(outf, "C-state Pre-wake: %sabled\n", msr & 0x40000000 ? "DIS" : "EN");
5413 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT2: 0x%08llx\n", base_cpu, msr);
5417 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 18 active cores\n", ratio, bclk, ratio * bclk);
5421 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 17 active cores\n", ratio, bclk, ratio * bclk);
5432 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, msr);
5436 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 16 active cores\n", ratio, bclk, ratio * bclk);
5440 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 15 active cores\n", ratio, bclk, ratio * bclk);
5444 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 14 active cores\n", ratio, bclk, ratio * bclk);
5448 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 13 active cores\n", ratio, bclk, ratio * bclk);
5452 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 12 active cores\n", ratio, bclk, ratio * bclk);
5456 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 11 active cores\n", ratio, bclk, ratio * bclk);
5460 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 10 active cores\n", ratio, bclk, ratio * bclk);
5464 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 9 active cores\n", ratio, bclk, ratio * bclk);
5474 fprintf(outf, "cpu%d: MSR_%sTURBO_RATIO_LIMIT: 0x%08llx\n",
5479 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, core_counts);
5490 fprintf(outf, "%d * %.1f = %.1f MHz max turbo %d active cores\n",
5503 fprintf(outf, "cpu%d: MSR_ATOM_CORE_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF);
5507 fprintf(outf, "%d * %.1f = %.1f MHz minimum operating frequency\n", ratio, bclk, ratio * bclk);
5511 fprintf(outf, "%d * %.1f = %.1f MHz low frequency mode (LFM)\n", ratio, bclk, ratio * bclk);
5515 fprintf(outf, "%d * %.1f = %.1f MHz base frequency\n", ratio, bclk, ratio * bclk);
5518 fprintf(outf, "cpu%d: MSR_ATOM_CORE_TURBO_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF);
5522 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 4 active cores\n", ratio, bclk, ratio * bclk);
5526 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 3 active cores\n", ratio, bclk, ratio * bclk);
5530 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 2 active cores\n", ratio, bclk, ratio * bclk);
5534 fprintf(outf, "%d * %.1f = %.1f MHz max turbo 1 active core\n", ratio, bclk, ratio * bclk);
5549 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", base_cpu, msr);
5589 fprintf(outf,
5603 fprintf(outf, "cpu%d: MSR_PKG_CST_CONFIG_CONTROL: 0x%08llx", base_cpu, msr);
5605 fprintf(outf, " (%s%s%s%s%slocked, pkg-cstate-limit=%d (%s)",
5614 fprintf(outf, ", automatic c-state conversion=%s", (msr & AUTOMATIC_CSTATE_CONVERSION) ? "on" : "off");
5617 fprintf(outf, ")\n");
5627 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_NOMINAL: 0x%08llx", base_cpu, msr);
5628 fprintf(outf, " (base_ratio=%d)\n", (unsigned int)msr & 0xFF);
5631 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_1: 0x%08llx (", base_cpu, msr);
5633 fprintf(outf, "PKG_MIN_PWR_LVL1=%d ", (unsigned int)(msr >> 48) & 0x7FFF);
5634 fprintf(outf, "PKG_MAX_PWR_LVL1=%d ", (unsigned int)(msr >> 32) & 0x7FFF);
5635 fprintf(outf, "LVL1_RATIO=%d ", (unsigned int)(msr >> 16) & 0xFF);
5636 fprintf(outf, "PKG_TDP_LVL1=%d", (unsigned int)(msr) & 0x7FFF);
5638 fprintf(outf, ")\n");
5641 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_2: 0x%08llx (", base_cpu, msr);
5643 fprintf(outf, "PKG_MIN_PWR_LVL2=%d ", (unsigned int)(msr >> 48) & 0x7FFF);
5644 fprintf(outf, "PKG_MAX_PWR_LVL2=%d ", (unsigned int)(msr >> 32) & 0x7FFF);
5645 fprintf(outf, "LVL2_RATIO=%d ", (unsigned int)(msr >> 16) & 0xFF);
5646 fprintf(outf, "PKG_TDP_LVL2=%d", (unsigned int)(msr) & 0x7FFF);
5648 fprintf(outf, ")\n");
5651 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_CONTROL: 0x%08llx (", base_cpu, msr);
5653 fprintf(outf, "TDP_LEVEL=%d ", (unsigned int)(msr) & 0x3);
5654 fprintf(outf, " lock=%d", (unsigned int)(msr >> 31) & 1);
5655 fprintf(outf, ")\n");
5658 fprintf(outf, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr);
5659 fprintf(outf, "MAX_NON_TURBO_RATIO=%d", (unsigned int)(msr) & 0xFF);
5660 fprintf(outf, " lock=%d", (unsigned int)(msr >> 31) & 1);
5661 fprintf(outf, ")\n");
5675 fprintf(outf, "cpu%d: MSR_PKGC3_IRTL: 0x%08llx (", base_cpu, msr);
5676 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
5682 fprintf(outf, "cpu%d: MSR_PKGC6_IRTL: 0x%08llx (", base_cpu, msr);
5683 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
5689 fprintf(outf, "cpu%d: MSR_PKGC7_IRTL: 0x%08llx (", base_cpu, msr);
5690 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
5696 fprintf(outf, "cpu%d: MSR_PKGC8_IRTL: 0x%08llx (", base_cpu, msr);
5697 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
5703 fprintf(outf, "cpu%d: MSR_PKGC9_IRTL: 0x%08llx (", base_cpu, msr);
5704 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
5710 fprintf(outf, "cpu%d: MSR_PKGC10_IRTL: 0x%08llx (", base_cpu, msr);
5711 fprintf(outf, "%svalid, %lld ns)\n", msr & (1 << 15) ? "" : "NOT",
6229 fprintf(outf, "turbostat: re-initialized with num_cpus %d, allowed_cpus %d\n", topo.num_cpus,
6612 fprintf(outf, "Can not update msr(0x%llx)\n", (unsigned long long)offset);
6639 fprintf(outf, "Can not allocate memory for long time MSR.\n");
6651 fprintf(outf, "Can not create timer.\n");
6667 fprintf(outf, "Can not set timer.\n");
6964 fprintf(outf, "NSFOD %s\n", path);
6982 fprintf(outf, "NSFOD %s\n", path);
6989 fprintf(outf, "%s: %s", strrchr(path, '/') + 1, cpuidle_buf);
7018 fprintf(outf, "Uncore Frequency package%d die%d: %d - %d MHz ", i, j, k / 1000, l / 1000);
7024 fprintf(outf, "(%d - %d MHz)", k / 1000, l / 1000);
7028 fprintf(outf, " %d MHz\n", k / 1000);
7096 fprintf(outf, "Uncore Frequency package%d domain%d cluster%d: %d - %d MHz ", package_id, domain_id,
7103 fprintf(outf, "(%d - %d MHz)", k / 1000, l / 1000);
7107 fprintf(outf, " %d MHz\n", k / 1000);
7246 fprintf(outf, "cpuidle not loaded\n");
7279 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc);
7295 fprintf(outf, "NSFOD %s\n", path);
7305 fprintf(outf, "NSFOD %s\n", path);
7312 fprintf(outf, "cpu%d: cpufreq driver: %s", base_cpu, driver_buf);
7313 fprintf(outf, "cpu%d: cpufreq governor: %s", base_cpu, governor_buf);
7320 fprintf(outf, "cpufreq boost: %d\n", turbo);
7329 fprintf(outf, "cpufreq intel_pstate no_turbo: %d\n", turbo);
7356 fprintf(outf, "print_epb: Could not migrate to CPU %d\n", cpu);
7378 fprintf(outf, "cpu%d: EPB: %d (%s)\n", cpu, epb, epb_string);
7408 fprintf(outf, "print_hwp: Could not migrate to CPU %d\n", cpu);
7415 fprintf(outf, "cpu%d: MSR_PM_ENABLE: 0x%08llx (%sHWP)\n", cpu, msr, (msr & (1 << 0)) ? "" : "No-");
7424 fprintf(outf, "cpu%d: MSR_HWP_CAPABILITIES: 0x%08llx "
7434 fprintf(outf, "cpu%d: MSR_HWP_REQUEST: 0x%08llx "
7447 fprintf(outf, "cpu%d: MSR_HWP_REQUEST_PKG: 0x%08llx "
7459 fprintf(outf, "cpu%d: MSR_HWP_INTERRUPT: 0x%08llx "
7466 fprintf(outf, "cpu%d: MSR_HWP_STATUS: 0x%08llx "
7494 fprintf(outf, "print_perf_limit: Could not migrate to CPU %d\n", cpu);
7500 fprintf(outf, "cpu%d: MSR_CORE_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr);
7501 fprintf(outf, " (Active: %s%s%s%s%s%s%s%s%s%s%s%s%s%s)",
7515 fprintf(outf, " (Logged: %s%s%s%s%s%s%s%s%s%s%s%s%s%s)\n",
7533 fprintf(outf, "cpu%d: MSR_GFX_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr);
7534 fprintf(outf, " (Active: %s%s%s%s%s%s%s%s)",
7542 fprintf(outf, " (Logged: %s%s%s%s%s%s%s%s)\n",
7553 fprintf(outf, "cpu%d: MSR_RING_PERF_LIMIT_REASONS, 0x%08llx", cpu, msr);
7554 fprintf(outf, " (Active: %s%s%s%s%s%s)",
7560 fprintf(outf, " (Logged: %s%s%s%s%s%s)\n",
7654 fprintf(outf, "RAPL: %.0f sec. Joule Counter Range, at %.0f Watts\n", rapl_joule_counter_range, tdp);
7684 fprintf(outf, "RAPL: %.0f sec. Joule Counter Range, at %.0f Watts\n", rapl_joule_counter_range, tdp);
7689 fprintf(outf, "cpu%d: %s: %sabled (%0.3f Watts, %f sec, clamp %sabled)\n",
7764 fprintf(outf, "%s: %s", domain_path + strlen(PATH_RAPL_SYSFS) + 1, str);
7772 fputs(" disabled\n", outf);
7783 fprintf(outf, " %0.1fs", (double)val / 1000000);
7785 fprintf(outf, " %0.1fms", (double)val / 1000);
7787 fprintf(outf, " %0.1fus", (double)val);
7792 fprintf(outf, ":%lluW", val / 1000000);
7797 fprintf(outf, ",max:%lluW", val / 1000000);
7799 fputc('\n', outf);
7869 fprintf(outf, "print_rapl: Could not migrate to CPU %d\n", cpu);
7883 fprintf(outf, "cpu%d: %s: 0x%08llx (%f Watts, %f Joules, %f sec.)\n", cpu, msr_name, msr,
7891 fprintf(outf, "cpu%d: MSR_PKG_POWER_INFO: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n",
7904 fprintf(outf, "cpu%d: MSR_PKG_POWER_LIMIT: 0x%08llx (%slocked)\n",
7908 fprintf(outf, "cpu%d: PKG Limit #2: %sabled (%0.3f Watts, %f* sec, clamp %sabled)\n",
7918 fprintf(outf, "cpu%d: MSR_VR_CURRENT_CONFIG: 0x%08llx\n", cpu, msr);
7919 fprintf(outf, "cpu%d: PKG Limit #4: %f Watts (%slocked)\n",
7927 fprintf(outf, "cpu%d: MSR_DRAM_POWER_INFO,: 0x%08llx (%.0f W TDP, RAPL %.0f - %.0f W, %f sec.)\n",
7937 fprintf(outf, "cpu%d: MSR_DRAM_POWER_LIMIT: 0x%08llx (%slocked)\n",
7946 fprintf(outf, "cpu%d: MSR_PP0_POLICY: %lld\n", cpu, msr & 0xF);
7951 fprintf(outf, "cpu%d: MSR_PP0_POWER_LIMIT: 0x%08llx (%slocked)\n",
7959 fprintf(outf, "cpu%d: MSR_PP1_POLICY: %lld\n", cpu, msr & 0xF);
7963 fprintf(outf, "cpu%d: MSR_PP1_POWER_LIMIT: 0x%08llx (%slocked)\n",
8024 fprintf(outf, "Could not migrate to CPU %d\n", cpu);
8030 fprintf(outf, "cpu%d: Using cmdline TCC Target (%d C)\n", cpu, tj_max);
8052 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C) (%d default - %d offset)\n",
8055 fprintf(outf, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C)\n", cpu, msr, tcc_default);
8068 fprintf(outf, "cpu%d: Guessing tjMax %d C, Please use -T to specify\n", cpu, tj_max);
8095 fprintf(outf, "print_thermal: Could not migrate to CPU %d\n", cpu);
8104 fprintf(outf, "cpu%d: MSR_IA32_PACKAGE_THERM_STATUS: 0x%08llx (%d C)\n", cpu, msr, tj_max - dts);
8111 fprintf(outf, "cpu%d: MSR_IA32_PACKAGE_THERM_INTERRUPT: 0x%08llx (%d C, %d C)\n",
8123 fprintf(outf, "cpu%d: MSR_IA32_THERM_STATUS: 0x%08llx (%d C +/- %d)\n",
8131 fprintf(outf, "cpu%d: MSR_IA32_THERM_INTERRUPT: 0x%08llx (%d C, %d C)\n",
8164 fprintf(outf, "Could not migrate to CPU %d\n", t->cpu_id);
8186 fprintf(outf, "cpu%d: MSR_IA32_FEATURE_CONTROL: 0x%08llx (%sLocked %s)\n",
8201 fprintf(outf, "cpu%d: MSR_IA32_MISC_ENABLE: 0x%08llx (%sTCC %sEIST %sMWAIT %sPREFETCH %sTURBO)\n",
8221 fprintf(outf,
8245 fprintf(outf, "cpu%d: MSR_MISC_PWR_MGMT: 0x%08llx (%sable-EIST_Coordination %sable-EPB %sable-OOB)\n",
8267 fprintf(outf, "cpu%d: MSR_CC6_DEMOTION_POLICY_CONFIG: 0x%08llx (%sable-CC6-Demotion)\n",
8271 fprintf(outf, "cpu%d: MSR_MC6_DEMOTION_POLICY_CONFIG: 0x%08llx (%sable-MC6-Demotion)\n",
8295 fprintf(outf, "/dev/cpu_dma_latency: %d usec (%s)\n", value, value == 2000000000 ? "default" : "constrained");
8830 fprintf(outf, "CPUID(0): %.4s%.4s%.4s 0x%x CPUID levels\n",
8860 fprintf(outf, "CPUID(1): family:model:stepping 0x%x:%x:%x (%d:%d:%d)",
8863 fprintf(outf, " microcode 0x%x", (unsigned int)((ucode_patch >> 32) & 0xFFFFFFFF));
8864 fputc('\n', outf);
8866 fprintf(outf, "CPUID(0x80000000): max_extended_levels: 0x%x\n", max_extended_level);
8867 fprintf(outf, "CPUID(1): %s %s %s %s %s %s %s %s %s %s\n",
8916 fprintf(outf, "CPUID(6): %sAPERF, %sTURBO, %sDTS, %sPTM, %sHWP, "
8941 fprintf(outf, "CPUID(7): %sSGX %sHybrid\n", has_sgx ? "" : "No-", is_hybrid ? "" : "No-");
8959 fprintf(outf, "CPUID(0x15): eax_crystal: %d ebx_tsc: %d ecx_crystal_hz: %d\n",
8968 fprintf(outf, "TSC: %lld MHz (%d Hz * %d / %d / 1000000)\n",
8992 fprintf(outf, "CPUID(0x16): base_mhz: %d max_mhz: %d bus_mhz: %d\n",
9102 fprintf(outf, "num_cpus %d max_cpu_num %d\n", topo.num_cpus, topo.max_cpu_num);
9207 fprintf(outf, "cpu%d NOT PRESENT\n", i);
9250 fprintf(outf, "max_core_id %d, sizing for %d cores per package\n", max_core_id, topo.cores_per_node);
9256 fprintf(outf, "max_die_id %d, sizing for %d die\n", topo.max_die_id, topo.num_die);
9265 fprintf(outf, "max_package_id %d, sizing for %d packages\n", max_package_id, topo.num_packages);
9271 fprintf(outf, "nodes_per_pkg %d\n", topo.nodes_per_pkg);
9277 fprintf(outf, "max_siblings %d\n", max_siblings);
9285 fprintf(outf,
9441 fprintf(outf, "base_cpu = %d\n", base_cpu);
10096 fprintf(outf, "%s: Counter reset detected\n", progname);
10102 fprintf(outf, "%.6f sec\n", tv_delta.tv_sec + tv_delta.tv_usec / 1000000.0);
10129 fprintf(outf, "turbostat version 2025.09.09 - Len Brown <lenb@kernel.org>\n");
10149 fprintf(outf, "Kernel command line: %s", bootcmd);
11098 fprintf(outf, "interval %f seconds is too small\n", interval);
11116 outf = fopen_or_die(optarg, "w");
11129 fprintf(outf, "iterations %d should be positive number\n", num_iterations);
11137 fprintf(outf, "iterations %d should be positive number\n", header_iterations);
11199 outf = stderr;