diff options
author | Len Brown <len.brown@intel.com> | 2017-03-04 18:18:28 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2017-04-12 20:03:35 -0400 |
commit | 6dbd25a24599db07d88a805615bad1f4d48a5749 (patch) | |
tree | 02dc96f5fde7520b5481eafb02bf83129abe1266 /tools | |
parent | f4896fa502b81c5bce93f375bd17b14725c01826 (diff) |
tools/power turbostat: update HWP dump to decimal from hex
Syntax only.
The HWP CAPABILTIES and REQUEST ratios are more easily
viewed in decimal -- just multiply by 100 and you get MHz...
new:
cpu0: MSR_HWP_CAPABILITIES: 0x010c1b23 (high 35 guar 27 eff 12 low 1)
cpu0: MSR_HWP_REQUEST: 0x80002301 (min 1 max 35 des 0 epp 0x80 window 0x0 pkg 0x0)
old:
cpu0: MSR_HWP_CAPABILITIES: 0x010c1b23 (high 0x23 guar 0x1b eff 0xc low 0x1)
cpu0: MSR_HWP_REQUEST: 0x80002301 (min 0x1 max 0x23 des 0x0 epp 0x80 window 0x0 pkg 0x0)
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index e95799966560..b0591d0da801 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
@@ -3113,7 +3113,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) | |||
3113 | return 0; | 3113 | return 0; |
3114 | 3114 | ||
3115 | fprintf(outf, "cpu%d: MSR_HWP_CAPABILITIES: 0x%08llx " | 3115 | fprintf(outf, "cpu%d: MSR_HWP_CAPABILITIES: 0x%08llx " |
3116 | "(high 0x%x guar 0x%x eff 0x%x low 0x%x)\n", | 3116 | "(high %d guar %d eff %d low %d)\n", |
3117 | cpu, msr, | 3117 | cpu, msr, |
3118 | (unsigned int)HWP_HIGHEST_PERF(msr), | 3118 | (unsigned int)HWP_HIGHEST_PERF(msr), |
3119 | (unsigned int)HWP_GUARANTEED_PERF(msr), | 3119 | (unsigned int)HWP_GUARANTEED_PERF(msr), |
@@ -3124,7 +3124,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) | |||
3124 | return 0; | 3124 | return 0; |
3125 | 3125 | ||
3126 | fprintf(outf, "cpu%d: MSR_HWP_REQUEST: 0x%08llx " | 3126 | fprintf(outf, "cpu%d: MSR_HWP_REQUEST: 0x%08llx " |
3127 | "(min 0x%x max 0x%x des 0x%x epp 0x%x window 0x%x pkg 0x%x)\n", | 3127 | "(min %d max %d des %d epp 0x%x window 0x%x pkg 0x%x)\n", |
3128 | cpu, msr, | 3128 | cpu, msr, |
3129 | (unsigned int)(((msr) >> 0) & 0xff), | 3129 | (unsigned int)(((msr) >> 0) & 0xff), |
3130 | (unsigned int)(((msr) >> 8) & 0xff), | 3130 | (unsigned int)(((msr) >> 8) & 0xff), |
@@ -3138,7 +3138,7 @@ int print_hwp(struct thread_data *t, struct core_data *c, struct pkg_data *p) | |||
3138 | return 0; | 3138 | return 0; |
3139 | 3139 | ||
3140 | fprintf(outf, "cpu%d: MSR_HWP_REQUEST_PKG: 0x%08llx " | 3140 | fprintf(outf, "cpu%d: MSR_HWP_REQUEST_PKG: 0x%08llx " |
3141 | "(min 0x%x max 0x%x des 0x%x epp 0x%x window 0x%x)\n", | 3141 | "(min %d max %d des %d epp 0x%x window 0x%x)\n", |
3142 | cpu, msr, | 3142 | cpu, msr, |
3143 | (unsigned int)(((msr) >> 0) & 0xff), | 3143 | (unsigned int)(((msr) >> 0) & 0xff), |
3144 | (unsigned int)(((msr) >> 8) & 0xff), | 3144 | (unsigned int)(((msr) >> 8) & 0xff), |