diff options
author | Pu Wen <[email protected]> | 2020-07-20 16:22:05 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-07-28 13:34:20 +0200 |
commit | d903b6d029d66e6478562d75ea18d89098f7b7e8 (patch) | |
tree | 8499619ad06b0688ffd0dc611bf635800b991413 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 112a0e4171e111e963aada3fe790c71accf4d705 (diff) |
perf/x86/rapl: Add Hygon Fam18h RAPL support
Hygon Family 18h(Dhyana) support RAPL in bit 14 of CPUID 0x80000007 EDX,
and has MSRs RAPL_PWR_UNIT/CORE_ENERGY_STAT/PKG_ENERGY_STAT. So add Hygon
Dhyana Family 18h support for RAPL.
The output is available via the energy-pkg pseudo event:
$ perf stat -a -I 1000 --per-socket -e power/energy-pkg/
[ mingo: Tidied up the initializers. ]
Signed-off-by: Pu Wen <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions