summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2025-02-08 10:44:26 +0800
committerLen Brown <len.brown@intel.com>2025-02-08 21:10:20 -0600
commitb312d880fb462d4759396950865ec914de9d253c (patch)
treed05d507cd7a8a611e3e3aa7902ace255fa896d64 /tools/perf/scripts/python/export-to-sqlite.py
parent1c7c7388e6c31f46b26a884d80b45efbad8237b2 (diff)
downloadlinux-b312d880fb462d4759396950865ec914de9d253c.tar.gz
linux-b312d880fb462d4759396950865ec914de9d253c.tar.bz2
linux-b312d880fb462d4759396950865ec914de9d253c.zip
tools/power turbostat: Allow Zero return value for some RAPL registers
turbostat aborted with below messages on a dual-package system, turbostat: turbostat.c:3744: rapl_counter_accumulate: Assertion `dst->unit == src->unit' failed. Aborted This is because 1. the MSR_DRAM_PERF_STATUS returns Zero for one package, and non-Zero for another package 2. probe_msr() treats Zero return value as a failure so this feature is enabled on one package, and disabled for another package. 3. turbostat aborts because the feature is invalid on some package Unlike the RAPL energy counter registers, MSR_DRAM_PERF_STATUS can return Zero value, and this should not be treated as a failure. Fix the problem by allowing Zero return value for RAPL registers other than the energy counters. Fixes: 7c6fee25bdf5 ("tools/power turbostat: Check for non-zero value when MSR probing") Reported-by: Artem Bityutskiy <artem.bityutskiy@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions