diff --git a/devlib/trace/ftrace.py b/devlib/trace/ftrace.py index 871cc89..2973e0b 100644 --- a/devlib/trace/ftrace.py +++ b/devlib/trace/ftrace.py @@ -101,8 +101,14 @@ class FtraceCollector(TraceCollector): if self.automark: self.mark_start() self.target.execute('{} start {}'.format(self.target_binary, self.event_string), as_root=True) + if 'cpufreq' in self.target.modules: + self.logger.debug('Trace CPUFreq frequencies') + self.target.cpufreq.trace_frequencies() def stop(self): + if 'cpufreq' in self.target.modules: + self.logger.debug('Trace CPUFreq frequencies') + self.target.cpufreq.trace_frequencies() self.stop_time = time.time() if self.automark: self.mark_stop()