linux/tools/power/cpupower/utils/idle_monitor
Kaushlendra Kumar 6b401a5b2d cpupower: idle_monitor: fix incorrect value logged after stop
The cpuidle sysfs monitor printed the previous sample’s counter
value in cpuidle_stop() instead of the freshly read one. The dprint
line used previous_count[cpu][state] while current_count[cpu][state]
had just been populated. This caused misleading debug output.

Switch the logging to current_count so the post-interval snapshot
matches the displayed value.

Link: https://lore.kernel.org/r/20251202044012.3844790-1-kaushlendra.kumar@intel.com
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2025-12-15 12:33:28 -07:00
..
amd_fam14h_idle.c cpupower: Remove unneeded semicolon 2020-05-08 10:13:26 -06:00
cpuidle_sysfs.c cpupower: idle_monitor: fix incorrect value logged after stop 2025-12-15 12:33:28 -07:00
cpupower-monitor.c pm: cpupower: Fix printing of CORE, CPU fields in cpupower-monitor 2025-06-18 16:21:18 -06:00
cpupower-monitor.h cpupower: avoid multiple definition with gcc -fno-common 2020-03-02 08:53:34 -07:00
hsw_ext_idle.c cpupower: revise is_valid flag handling for idle_monitor 2024-12-09 17:52:03 -07:00
idle_monitors.def cpupower: rapl monitor - shows the used power consumption in uj for each rapl domain 2022-11-30 16:48:34 -07:00
idle_monitors.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 166 2019-05-30 11:26:39 -07:00
mperf_monitor.c pm: cpupower: Fix the snapshot-order of tsc,mperf, clock in mperf_stop() 2025-06-18 16:21:12 -06:00
nhm_idle.c cpupower: revise is_valid flag handling for idle_monitor 2024-12-09 17:52:03 -07:00
rapl_monitor.c cpupower: rapl monitor - shows the used power consumption in uj for each rapl domain 2022-11-30 16:48:34 -07:00
snb_idle.c cpupower: revise is_valid flag handling for idle_monitor 2024-12-09 17:52:03 -07:00