From 14bb86efadafc5e4fdc761bf2a1e2677fd7c65d1 Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Mon, 11 Sep 2023 11:13:47 +0100 Subject: [PATCH] collector/perfetto: Use busybox cat Use busybox cat instead of system's cat. --- devlib/collector/perfetto.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/devlib/collector/perfetto.py b/devlib/collector/perfetto.py index 7383d09..c5070e0 100644 --- a/devlib/collector/perfetto.py +++ b/devlib/collector/perfetto.py @@ -86,8 +86,8 @@ class PerfettoCollector(CollectorBase): self.target_output_file = target.path.join(target_output_path, OUTPUT_PERFETTO_TRACE) def start(self): - cmd = "cat {} | {} --txt -c - -o {}".format( - quote(self.config), quote(self.target_binary), quote(self.target_output_file) + cmd = "{} cat {} | {} --txt -c - -o {}".format( + quote(self.target.busybox), quote(self.config), quote(self.target_binary), quote(self.target_output_file) ) # start tracing if self.bg_cmd is None: @@ -117,4 +117,3 @@ class PerfettoCollector(CollectorBase): else: output.append(CollectorOutputEntry(self.output_path, 'file')) return output -