Commit 43803cb1 authored by Anup Sharma's avatar Anup Sharma Committed by Arnaldo Carvalho de Melo

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: default avatarAnup 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@yogaSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f85d120c
#!/bin/bash #!/bin/bash
# description: create firefox gecko profile json format from perf.data # description: create firefox gecko profile json format from perf.data
perf script "$@" -s "$PERF_EXEC_PATH"/scripts/python/gecko.py if [ "$*" = "-i -" ]; then
perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py
else
perf script -s "$PERF_EXEC_PATH"/scripts/python/gecko.py -- "$@"
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment