mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
ftrace: bugfix start marker injection
The start marker must be inserted when tracing has been already enabled. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
parent
615f1ce5e8
commit
a8dfd2e744
@ -125,9 +125,9 @@ class FtraceCollector(TraceCollector):
|
|||||||
self.start_time = time.time()
|
self.start_time = time.time()
|
||||||
if self._reset_needed:
|
if self._reset_needed:
|
||||||
self.reset()
|
self.reset()
|
||||||
|
self.target.execute('{} start {}'.format(self.target_binary, self.event_string), as_root=True)
|
||||||
if self.automark:
|
if self.automark:
|
||||||
self.mark_start()
|
self.mark_start()
|
||||||
self.target.execute('{} start {}'.format(self.target_binary, self.event_string), as_root=True)
|
|
||||||
if 'cpufreq' in self.target.modules:
|
if 'cpufreq' in self.target.modules:
|
||||||
self.logger.debug('Trace CPUFreq frequencies')
|
self.logger.debug('Trace CPUFreq frequencies')
|
||||||
self.target.cpufreq.trace_frequencies()
|
self.target.cpufreq.trace_frequencies()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user