Lines Matching refs:base_cpu
360 int base_cpu; variable
449 if (get_msr(base_cpu, MSR_FSB_FREQ, &msr)) in slm_bclk()
1626 int base_cpu; member
1641 int base_cpu; member
1976 return ((int)t->cpu_id == c->base_cpu || c->base_cpu < 0); in is_cpu_first_thread_in_core()
1983 return ((int)t->cpu_id == p->base_cpu || p->base_cpu < 0); in is_cpu_first_core_in_package()
4826 get_msr(base_cpu, MSR_PKG_CST_CONFIG_CONTROL, &msr); in probe_cst_limit()
4838 get_msr(base_cpu, MSR_PLATFORM_INFO, &msr); in dump_platform_info()
4840 fprintf(outf, "cpu%d: MSR_PLATFORM_INFO: 0x%08llx\n", base_cpu, msr); in dump_platform_info()
4856 get_msr(base_cpu, MSR_IA32_POWER_CTL, &msr); in dump_power_ctl()
4858 base_cpu, msr, msr & 0x2 ? "EN" : "DIS"); in dump_power_ctl()
4872 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT2, &msr); in dump_turbo_ratio_limit2()
4874 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT2: 0x%08llx\n", base_cpu, msr); in dump_turbo_ratio_limit2()
4891 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT1, &msr); in dump_turbo_ratio_limit1()
4893 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, msr); in dump_turbo_ratio_limit1()
4934 get_msr(base_cpu, trl_msr_offset, &msr); in dump_turbo_ratio_limits()
4936 base_cpu, trl_msr_offset == MSR_SECONDARY_TURBO_RATIO_LIMIT ? "SECONDARY_" : "", msr); in dump_turbo_ratio_limits()
4939 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT1, &core_counts); in dump_turbo_ratio_limits()
4940 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT1: 0x%08llx\n", base_cpu, core_counts); in dump_turbo_ratio_limits()
4963 get_msr(base_cpu, MSR_ATOM_CORE_RATIOS, &msr); in dump_atom_turbo_ratio_limits()
4964 fprintf(outf, "cpu%d: MSR_ATOM_CORE_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF); in dump_atom_turbo_ratio_limits()
4978 get_msr(base_cpu, MSR_ATOM_CORE_TURBO_RATIOS, &msr); in dump_atom_turbo_ratio_limits()
4979 fprintf(outf, "cpu%d: MSR_ATOM_CORE_TURBO_RATIOS: 0x%08llx\n", base_cpu, msr & 0xFFFFFFFF); in dump_atom_turbo_ratio_limits()
5008 get_msr(base_cpu, MSR_TURBO_RATIO_LIMIT, &msr); in dump_knl_turbo_ratio_limits()
5010 fprintf(outf, "cpu%d: MSR_TURBO_RATIO_LIMIT: 0x%08llx\n", base_cpu, msr); in dump_knl_turbo_ratio_limits()
5062 get_msr(base_cpu, MSR_PKG_CST_CONFIG_CONTROL, &msr); in dump_cst_cfg()
5064 fprintf(outf, "cpu%d: MSR_PKG_CST_CONFIG_CONTROL: 0x%08llx", base_cpu, msr); in dump_cst_cfg()
5087 get_msr(base_cpu, MSR_CONFIG_TDP_NOMINAL, &msr); in dump_config_tdp()
5088 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_NOMINAL: 0x%08llx", base_cpu, msr); in dump_config_tdp()
5091 get_msr(base_cpu, MSR_CONFIG_TDP_LEVEL_1, &msr); in dump_config_tdp()
5092 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_1: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
5101 get_msr(base_cpu, MSR_CONFIG_TDP_LEVEL_2, &msr); in dump_config_tdp()
5102 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_LEVEL_2: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
5111 get_msr(base_cpu, MSR_CONFIG_TDP_CONTROL, &msr); in dump_config_tdp()
5112 fprintf(outf, "cpu%d: MSR_CONFIG_TDP_CONTROL: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
5118 get_msr(base_cpu, MSR_TURBO_ACTIVATION_RATIO, &msr); in dump_config_tdp()
5119 fprintf(outf, "cpu%d: MSR_TURBO_ACTIVATION_RATIO: 0x%08llx (", base_cpu, msr); in dump_config_tdp()
5135 get_msr(base_cpu, MSR_PKGC3_IRTL, &msr); in print_irtl()
5136 fprintf(outf, "cpu%d: MSR_PKGC3_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5142 get_msr(base_cpu, MSR_PKGC6_IRTL, &msr); in print_irtl()
5143 fprintf(outf, "cpu%d: MSR_PKGC6_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5149 get_msr(base_cpu, MSR_PKGC7_IRTL, &msr); in print_irtl()
5150 fprintf(outf, "cpu%d: MSR_PKGC7_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5156 get_msr(base_cpu, MSR_PKGC8_IRTL, &msr); in print_irtl()
5157 fprintf(outf, "cpu%d: MSR_PKGC8_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5163 get_msr(base_cpu, MSR_PKGC9_IRTL, &msr); in print_irtl()
5164 fprintf(outf, "cpu%d: MSR_PKGC9_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5170 get_msr(base_cpu, MSR_PKGC10_IRTL, &msr); in print_irtl()
5171 fprintf(outf, "cpu%d: MSR_PKGC10_IRTL: 0x%08llx (", base_cpu, msr); in print_irtl()
5695 int base_cpu; in set_max_cpu_num() local
5699 base_cpu = sched_getcpu(); in set_max_cpu_num()
5700 if (base_cpu < 0) in set_max_cpu_num()
5702 sprintf(pathname, "/sys/devices/system/cpu/cpu%d/topology/thread_siblings", base_cpu); in set_max_cpu_num()
6258 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_dev_msr()
6308 sprintf(pathname, "/dev/cpu/%d/msr", base_cpu); in check_msr_permission()
6337 get_msr(base_cpu, MSR_PLATFORM_INFO, &msr); in probe_bclk()
6673 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", base_cpu, state); in dump_sysfs_cstate_config()
6689 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/desc", base_cpu, state); in dump_sysfs_cstate_config()
6696 fprintf(outf, "cpu%d: %s: %s", base_cpu, name_buf, desc); in dump_sysfs_cstate_config()
6709 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_driver", base_cpu); in dump_sysfs_pstate_config()
6719 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor", base_cpu); in dump_sysfs_pstate_config()
6729 fprintf(outf, "cpu%d: cpufreq driver: %s", base_cpu, driver_buf); in dump_sysfs_pstate_config()
6730 fprintf(outf, "cpu%d: cpufreq governor: %s", base_cpu, governor_buf); in dump_sysfs_pstate_config()
7003 if (!get_msr(base_cpu, MSR_PKG_POWER_INFO, &msr)) in get_tdp_intel()
7032 if (get_msr(base_cpu, MSR_RAPL_POWER_UNIT, &msr)) in rapl_probe_intel()
7071 if (get_msr(base_cpu, MSR_RAPL_PWR_UNIT, &msr)) in rapl_probe_amd()
7282 if (get_msr(base_cpu, MSR_IA32_TEMPERATURE_TARGET, &msr)) in set_temperature_target()
7291 if (bits && !get_msr(base_cpu, MSR_PLATFORM_INFO, &enabled)) in set_temperature_target()
7429 if (!get_msr(base_cpu, MSR_IA32_FEAT_CTL, &msr)) in decode_feature_control_msr()
7431 base_cpu, msr, msr & FEAT_CTL_LOCKED ? "" : "UN-", msr & (1 << 18) ? "SGX" : ""); in decode_feature_control_msr()
7444 if (!get_msr(base_cpu, MSR_IA32_MISC_ENABLE, &msr)) in decode_misc_enable_msr()
7446 base_cpu, msr, in decode_misc_enable_msr()
7464 if (!get_msr(base_cpu, MSR_MISC_FEATURE_CONTROL, &msr)) in decode_misc_feature_control()
7467 base_cpu, msr, msr & (0 << 0) ? "No-" : "", msr & (1 << 0) ? "No-" : "", in decode_misc_feature_control()
7488 if (!get_msr(base_cpu, MSR_MISC_PWR_MGMT, &msr)) in decode_misc_pwr_mgmt_msr()
7490 base_cpu, msr, in decode_misc_pwr_mgmt_msr()
7510 if (!get_msr(base_cpu, MSR_CC6_DEMOTION_POLICY_CONFIG, &msr)) in decode_c6_demotion_policy_msr()
7512 base_cpu, msr, msr & (1 << 0) ? "EN" : "DIS"); in decode_c6_demotion_policy_msr()
7514 if (!get_msr(base_cpu, MSR_MC6_DEMOTION_POLICY_CONFIG, &msr)) in decode_c6_demotion_policy_msr()
7516 base_cpu, msr, msr & (1 << 0) ? "EN" : "DIS"); in decode_c6_demotion_policy_msr()
7552 fd = open_perf_counter(base_cpu, PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS, -1, 0); in has_instr_count_access()
7679 if ((cai->flags & RAPL_COUNTER_FLAG_PLATFORM_COUNTER) && (cpu != base_cpu)) in rapl_perf_init()
8502 (*c)[i].base_cpu = -1; in allocate_counters()
8511 (*p)[i].base_cpu = -1; in allocate_counters()
8546 if (c->base_cpu < 0) in init_counter()
8547 c->base_cpu = t->cpu_id; in init_counter()
8548 if (p->base_cpu < 0) in init_counter()
8549 p->base_cpu = t->cpu_id; in init_counter()
8592 if ((int)t->cpu_id == c->base_cpu) in update_topo()
8594 if ((int)t->cpu_id == p->base_cpu) in update_topo()
8627 base_cpu = i; in set_base_cpu()
8629 fprintf(outf, "base_cpu = %d\n", base_cpu); in set_base_cpu()
9153 if (BIC_IS_ENABLED(BIC_IPC) && has_aperf_access && get_instr_count_fd(base_cpu) != -1) in turbostat_init()
9816 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", base_cpu, state); in probe_sysfs()
9847 sprintf(path, "/sys/devices/system/cpu/cpu%d/cpuidle/state%d/name", base_cpu, state); in probe_sysfs()