Searched refs:msr (Results 1 – 6 of 6) sorted by relevance
/tools/power/x86/turbostat/ |
D | turbostat.c | 218 int get_msr(int cpu, off_t offset, unsigned long long *msr) in get_msr() argument 229 retval = pread(fd, msr, sizeof *msr, offset); in get_msr() 232 if (retval != sizeof *msr) { in get_msr() 834 unsigned long long msr; in get_counters() local 851 if (get_msr(cpu, MSR_SMI_COUNT, &msr)) in get_counters() 853 t->smi_count = msr & 0xFFFFFFFF; in get_counters() 856 if (get_msr(cpu, extra_delta_offset32, &msr)) in get_counters() 858 t->extra_delta32 = msr & 0xFFFFFFFF; in get_counters() 866 if (get_msr(cpu, extra_msr_offset32, &msr)) in get_counters() 868 t->extra_msr32 = msr & 0xFFFFFFFF; in get_counters() [all …]
|
/tools/power/cpupower/debug/i386/ |
D | centrino-decode.c | 29 static int rdmsr(unsigned int cpu, unsigned int msr, in rdmsr() argument 48 if (lseek(fd, msr, SEEK_CUR) == -1) in rdmsr() 64 static void decode (unsigned int msr) in decode() argument 69 multiplier = ((msr >> 8) & 0xFF); in decode() 71 mv = (((msr & 0xFF) * 16) + 700); in decode() 73 printf("0x%x means multiplier %d @ %d mV\n", msr, multiplier, mv); in decode()
|
D | powernow-k8-decode.c | 31 uint64_t msr = 0; in get_fidvid() local 44 if (read(fd, &msr, 8) != 8) in get_fidvid() 47 *fid = ((uint32_t )(msr & 0xffffffffull)) & MSR_S_LO_CURRENT_FID; in get_fidvid() 48 *vid = ((uint32_t )(msr>>32 & 0xffffffffull)) & MSR_S_HI_CURRENT_VID; in get_fidvid()
|
/tools/power/cpupower/utils/idle_monitor/ |
D | nhm_idle.c | 75 int msr; in nhm_get_count() local 79 msr = MSR_CORE_C3_RESIDENCY; in nhm_get_count() 82 msr = MSR_CORE_C6_RESIDENCY; in nhm_get_count() 85 msr = MSR_PKG_C3_RESIDENCY; in nhm_get_count() 88 msr = MSR_PKG_C6_RESIDENCY; in nhm_get_count() 91 msr = MSR_TSC; in nhm_get_count() 96 if (read_msr(cpu, msr, val)) in nhm_get_count()
|
D | snb_idle.c | 64 int msr; in snb_get_count() local 68 msr = MSR_CORE_C7_RESIDENCY; in snb_get_count() 71 msr = MSR_PKG_C2_RESIDENCY; in snb_get_count() 74 msr = MSR_PKG_C7_RESIDENCY; in snb_get_count() 77 msr = MSR_TSC; in snb_get_count() 82 if (read_msr(cpu, msr, val)) in snb_get_count()
|
/tools/power/x86/x86_energy_perf_policy/ |
D | x86_energy_perf_policy.c | 189 unsigned long long msr; in get_msr() local 202 retval = pread(fd, &msr, sizeof msr, offset); in get_msr() 204 if (retval != sizeof msr) { in get_msr() 209 return msr; in get_msr()
|