From fade6b4247a0a278df1502a795f561501bef77a5 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Mon, 13 Mar 2023 14:48:24 +0000 Subject: [PATCH] ftrace: Fix use of named buffer trace-cmd extract needs -B devlib to be passed, otherwise an empty buffer will be extracted. --- devlib/collector/ftrace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/collector/ftrace.py b/devlib/collector/ftrace.py index 6de4856..69792ab 100644 --- a/devlib/collector/ftrace.py +++ b/devlib/collector/ftrace.py @@ -319,7 +319,7 @@ class FtraceCollector(CollectorBase): def get_data(self): if self.output_path is None: 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), timeout=TIMEOUT, as_root=True)