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

ftrace: Fix use of named buffer

trace-cmd extract needs -B devlib to be passed, otherwise an empty
buffer will be extracted.
This commit is contained in:
Douglas Raillard 2023-03-13 14:48:24 +00:00 committed by Marc Bonnici
parent 3d2cdd99c5
commit fade6b4247

View File

@ -319,7 +319,7 @@ class FtraceCollector(CollectorBase):
def get_data(self): def get_data(self):
if self.output_path is None: if self.output_path is None:
raise RuntimeError("Output path was not set.") raise RuntimeError("Output path was not set.")
self.target.execute('{0} extract -o {1}; chmod 666 {1}'.format(self.target_binary, self.target.execute('{0} extract -B devlib -o {1}; chmod 666 {1}'.format(self.target_binary,
self.target_output_file), self.target_output_file),
timeout=TIMEOUT, as_root=True) timeout=TIMEOUT, as_root=True)