1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-04 17:27:51 +00:00

collector/ftrace: Remove cpu_frequency_devlib event in FtraceCollector.stop()

Emiting the current frequency of all CPUs in the stop() hook is not
useful as the current frequency should already be known from the trace.
Either the event is emitted every time the frequency changes and the
up-to-date information is available, or the frequency never changes
(e.g. userspace governor) and the frequencies will be known from
emitting cpu_frequency_devlib in start().
This commit is contained in:
Douglas Raillard 2025-02-03 15:49:50 +00:00 committed by Marc Bonnici
parent 1b6c8069bd
commit ae8149077c

View File

@ -328,9 +328,6 @@ class FtraceCollector(CollectorBase):
if self.functions and self.tracer is None:
self.target.execute('echo 0 > {}'.format(self.function_profile_file),
as_root=True)
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()