1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

Merge pull request #13 from derkling/fix_ftrace

ftrace: give more time for a trace to be collected
This commit is contained in:
setrofim 2016-01-26 17:36:52 +00:00
commit b1a7f3fcd0

View File

@ -124,7 +124,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 = self.stop_time - self.start_time pull_timeout = 5 * (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.')