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:
@@ -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
|
||||
|
Reference in New Issue
Block a user