1
0
mirror of https://github.com/ARM-software/devlib.git synced 2024-10-06 10:50:51 +01:00

trace/ftrace: increase trace pull timeout

Double the existing timeout, as the current one is too short for noisy
devices on slower connections.
This commit is contained in:
Sergei Trofimov 2018-02-12 17:23:35 +00:00 committed by Marc Bonnici
parent f3c8ce975e
commit 515095d9b2

View File

@ -214,7 +214,7 @@ class FtraceCollector(TraceCollector):
# The size of trace.dat will depend on how long trace-cmd was running. # The size of trace.dat will depend on how long trace-cmd was running.
# Therefore timout for the pull command must also be adjusted # Therefore timout for the pull command must also be adjusted
# accordingly. # accordingly.
pull_timeout = 5 * (self.stop_time - self.start_time) pull_timeout = 10 * (self.stop_time - self.start_time)
self.target.pull(self.target_output_file, outfile, timeout=pull_timeout) self.target.pull(self.target_output_file, outfile, timeout=pull_timeout)
if not os.path.isfile(outfile): if not os.path.isfile(outfile):
self.logger.warning('Binary trace not pulled from device.') self.logger.warning('Binary trace not pulled from device.')