1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

output_processors/cpustates: Improve handling of missing cpuinfo data

Improve checking of whether cpu idle state information is available for
processing.
Add debug message to inform user if the cpuidle module is not detected
on the target.
This commit is contained in:
Marc Bonnici
2019-10-15 13:41:39 +01:00
committed by setrofim
parent 298bc3a7f3
commit ab5d12be72
2 changed files with 6 additions and 3 deletions

View File

@@ -97,6 +97,9 @@ class CpuStatesProcessor(OutputProcessor):
if 'cpufreq' not in target_info.modules:
msg = '"cpufreq" module not detected on target, cpu frequency information may be missing.'
self.logger.warning(msg)
if 'cpuidle' not in target_info.modules:
msg = '"cpuidle" module not detected on target, cpu idle information may be missing.'
self.logger.debug(msg)
self.logger.info('Generating power state reports from trace...')
reports = report_power_stats( # pylint: disable=unbalanced-tuple-unpacking