mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 10:10:46 +00:00
ftrace: give more time for a trace to be collected
The time required to fetch a trace depends not only on it time length but also on the amount of events collected and the processing power of the target device. This patch tries to factorise these last two components into a 5x constant which is good enough to collect a relatively big trace on a relatively slow device. Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
This commit is contained in:
parent
dcf239b06c
commit
82e951b4ce
@ -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.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user