Skip to content

Commit 43803cb

Browse files
TwilightTechieacmel
authored andcommitted
perf scripts python: Add support for input args in gecko script
Refines the argument handling mechanism in the "gecko-report" script to enable better compatibility and improved user experience. The script now differentiates between scenarios where arguments are provided for record and report cases where gecko.py arguments are passed. Signed-off-by: Anup Sharma <anupnewsmail@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/ZNf7W+EIrrCSHZN0@yoga Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent f85d120 commit 43803cb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/perf/scripts/python/bin/gecko-report

100644100755
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/bin/bash
22
# description: create firefox gecko profile json format from perf.data
3-
perf script "$@" -s "$PERF_EXEC_PATH"/scripts/python/gecko.py
3+
if [ "$*" = "-i -" ]; then
4+
perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py
5+
else
6+
perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py -- "$@"
7+
fi

0 commit comments

Comments
 (0)