2023-07-20 14:31:05

by Anup Sharma

[permalink] [raw]
Subject: [PATCH 1/2] perf scripts python: Add command execution for firefox gecko converter script

This will enable the execution of firefox-gecko-converter.py script
using record and report commands.

Signed-off-by: Anup Sharma <[email protected]>
---
tools/perf/scripts/python/bin/firefox-gecko-converter-record | 2 ++
tools/perf/scripts/python/bin/firefox-gecko-converter-report | 3 +++
2 files changed, 5 insertions(+)
create mode 100755 tools/perf/scripts/python/bin/firefox-gecko-converter-record
create mode 100755 tools/perf/scripts/python/bin/firefox-gecko-converter-report

diff --git a/tools/perf/scripts/python/bin/firefox-gecko-converter-record b/tools/perf/scripts/python/bin/firefox-gecko-converter-record
new file mode 100755
index 000000000000..7df5a19c0163
--- /dev/null
+++ b/tools/perf/scripts/python/bin/firefox-gecko-converter-record
@@ -0,0 +1,2 @@
+#!/bin/bash
+perf record -g "$@"
diff --git a/tools/perf/scripts/python/bin/firefox-gecko-converter-report b/tools/perf/scripts/python/bin/firefox-gecko-converter-report
new file mode 100755
index 000000000000..2405c6b26446
--- /dev/null
+++ b/tools/perf/scripts/python/bin/firefox-gecko-converter-report
@@ -0,0 +1,3 @@
+#!/bin/bash
+# description: create firefox gecko profile json format from perf.data
+perf script -s "$PERF_EXEC_PATH"/scripts/python/firefox-gecko-converter.py -- "$@"
--
2.34.1