mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 05:30:44 +00:00
ftrace: chmod trace.dat to make world-readable
On some targets, umask is set such that the generated trace.dat is not world-readable by default. This means it cannot be pulled from target.
This commit is contained in:
parent
7e80a381d8
commit
61b13383a4
@ -203,7 +203,8 @@ class FtraceCollector(TraceCollector):
|
||||
def get_trace(self, outfile):
|
||||
if os.path.isdir(outfile):
|
||||
outfile = os.path.join(outfile, os.path.basename(self.target_output_file))
|
||||
self.target.execute('{} extract -o {}'.format(self.target_binary, self.target_output_file),
|
||||
self.target.execute('{0} extract -o {1}; chmod 666 {1}'.format(self.target_binary,
|
||||
self.target_output_file),
|
||||
timeout=TIMEOUT, as_root=True)
|
||||
|
||||
# The size of trace.dat will depend on how long trace-cmd was running.
|
||||
|
Loading…
x
Reference in New Issue
Block a user