linux_dsm_epyc7002/tools/power/cpupower/utils/idle_monitor
Jacob Tanenbaum 20102ac5be cpupower: cpupower monitor reports uninitialized values for offline cpus
[root@hp-dl980g7-02 linux]# cpupower monitor
...
5472|   0|   1|******|******|******|******|| 0.00|  0.00|  0.00|  0.00|  0.00 *is offline
10567|   0| 159|******|******|******|******||  0.00|  0.00|  0.00|  0.00|  0.00 *is offline
1661206560|859272560| 150|******|******|******|******|| 0.00|  0.00|  0.00|  0.00|  0.00 *is offline
1661206560|943093104| 140|******|******|******|******|| 0.00|  0.00|  0.00|  0.00|  0.00 *is offline

because of this cpupower also holds the incorrect value for the number
of physical packages in the machine

Changed cpupower to initialize the values of an offline cpu's socket and
core to -1, warn the user that one or more cpus is/are
offline and not print statistics for offline cpus.

This fix hides offlined cores where topology cannot be accessed.
With a recent kernel patch suggested from Prarit Bhargava it may be possible
that soft offlined cores' topology can still be parsed.
This patch would then show which cores in which package/socket are offline,
when sane toplogoy information is available.

Signed-off-by: Jacob Tanenbaum <jtanenba@redhat.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-11-02 02:28:59 +01:00
..
amd_fam14h_idle.c cpupower: AMD fam14h/Ontario monitor can also be used by fam12h cpus 2012-03-03 14:40:08 +01:00
cpuidle_sysfs.c cpupower: Do not show an empty Idle_Stats monitor if no idle driver is available 2011-08-15 20:03:05 +02:00
cpupower-monitor.c cpupower: cpupower monitor reports uninitialized values for offline cpus 2015-11-02 02:28:59 +01:00
cpupower-monitor.h cpupower: Provide -c param for cpupower monitor to schedule process on all cores 2012-11-27 23:07:20 +01:00
hsw_ext_idle.c cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states 2013-07-05 01:52:19 +02:00
idle_monitors.def cpupower: Add Haswell family 0x45 specific idle monitor to show PC8,9,10 states 2013-07-05 01:52:19 +02:00
idle_monitors.h cpupowerutils - cpufrequtils extended with quite some features 2011-07-29 18:35:36 +02:00
mperf_monitor.c cpupower: mperf monitor: fix output in MAX_FREQ_SYSFS mode 2015-05-30 02:21:31 +02:00
nhm_idle.c cpupowerutils: idle_monitor - ConfigStyle bugfixes 2011-07-29 18:35:38 +02:00
snb_idle.c cpupower: Haswell also supports the C-states introduced with SandyBridge 2013-07-05 01:52:19 +02:00