projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dc241f
)
tools/power turbostat: fix dump for AMD cpus
author
Dan Merillat
<git@dan.eginity.com>
Sun, 9 May 2021 09:08:55 +0000
(
05:08
-0400)
committer
Len Brown
<len.brown@intel.com>
Sun, 17 Apr 2022 01:58:14 +0000
(21:58 -0400)
turbostat --Dump exits early with status 243 (-13)
get_counters() calls get_msr_sum() on zen CPUS
for MSR_PKG_ENERGY_STAT, but per_cpu_msr_sum
has not been initialized.
Signed-off-by: Dan Merillat <git@dan.eginity.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index c050994313788e8ffa2ede7ca3175cde3245a9b2..1ba444d9b68a8d3486fed97493116220ba8a2fc3 100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-6437,6
+6437,8
@@
int main(int argc, char **argv)
turbostat_init();
+ msr_sum_record();
+
/* dump counters and exit */
if (dump_only)
return get_and_dump_counters();
@@
-6448,7
+6450,6
@@
int main(int argc, char **argv)
return 0;
}
- msr_sum_record();
/*
* if any params left, it must be a command to fork
*/