Home
last modified time | relevance | path

Searched refs:base_cpu (Results 1 – 9 of 9) sorted by relevance

/tools/power/cpupower/utils/
Dcpupower.c34 int base_cpu; variable
203 base_cpu = sched_getcpu(); in main()
204 if (base_cpu < 0) { in main()
213 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in main()
/tools/power/cpupower/utils/idle_monitor/
Dnhm_idle.c131 nhm_get_count(TSC, &tsc_at_measure_start, base_cpu); in nhm_start()
139 nhm_get_count(TSC, &dbg, base_cpu); in nhm_start()
150 nhm_get_count(TSC, &tsc_at_measure_end, base_cpu); in nhm_stop()
158 nhm_get_count(TSC, &dbg, base_cpu); in nhm_stop()
Dhsw_ext_idle.c124 hsw_ext_get_count(TSC, &tsc_at_measure_start, base_cpu); in hsw_ext_start()
133 hsw_ext_get_count(TSC, &tsc_at_measure_end, base_cpu); in hsw_ext_stop()
Dsnb_idle.c122 snb_get_count(TSC, &tsc_at_measure_start, base_cpu); in snb_start()
131 snb_get_count(TSC, &tsc_at_measure_end, base_cpu); in snb_stop()
Dmperf_monitor.c83 ret = read_msr(base_cpu, MSR_TSC, tsc); in mperf_get_tsc()
/tools/power/x86/turbostat/
Dturbostat.c93 int base_cpu; variable
2074 get_msr(base_cpu, MSR_PLATFORM_INFO, &msr); in dump_nhm_platform_info()
2076 fprintf(outf, "cpu%d: MSR_PLATFORM_INFO: 0x%08llx\n", base_cpu, msr); in dump_nhm_platform_info()
2086 get_msr(base_cpu, MSR_IA32_POWER_CTL, &msr); in dump_nhm_platform_info()
2088 base_cpu, msr, msr & 0x2 ? "EN" : "DIS"); in dump_nhm_platform_info()
2099 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT2, &msr); in dump_hsw_turbo_ratio_limits()
2101 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT2: 0x%08llx\n", base_cpu, msr); in dump_hsw_turbo_ratio_limits()
2121 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT1, &msr); in dump_ivt_turbo_ratio_limits()
2123 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, msr); in dump_ivt_turbo_ratio_limits()
2187 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr); in dump_turbo_ratio_limits()
[all …]
/tools/power/cpupower/utils/helpers/
Dhelpers.h36 extern int base_cpu;
Dcpuid.c74 if (proc != (unsigned int)base_cpu) in get_cpu_info()
/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c56 int base_cpu; variable
1209 get_msr(base_cpu, MSR_PM_ENABLE, &msr); in verify_hwp_is_enabled()
1247 base_cpu = sched_getcpu(); in set_base_cpu()
1248 if (base_cpu < 0) in set_base_cpu()
1258 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in probe_dev_msr()
1291 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr); in early_cpuid()