[PATCH 3/3] tools/power/turbostat: add denverton rapl support

From: Jacob Pan
Date: Thu Jun 16 2016 - 12:51:32 EST


Denverton CPU RAPL supports package, core, and dram domains.

Signed-off-by: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
---
tools/power/x86/turbostat/turbostat.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index d219c4f..3c10d6d 100644
--- a/tools/power/x86/turbostat/turbostat.c
+++ b/tools/power/x86/turbostat/turbostat.c
@@ -2677,6 +2677,9 @@ void rapl_probe(unsigned int family, unsigned int model)
case 0x4D: /* AVN */
do_rapl = RAPL_PKG | RAPL_CORES;
break;
+ case 0x5f: /* DNV */
+ do_rapl = RAPL_PKG | RAPL_DRAM | RAPL_DRAM_POWER_INFO | RAPL_DRAM_PERF_STATUS | RAPL_PKG_PERF_STATUS | RAPL_PKG_POWER_INFO | RAPL_CORES_ENERGY_STATUS;
+ break;
default:
return;
}
--
1.9.1