]> git.baikalelectronics.ru Git - kernel.git/commitdiff
perf scripts python: Fix passing arguments to stackcollapse report
authorMichael Petlan <mpetlan@redhat.com>
Mon, 27 Apr 2020 14:23:27 +0000 (16:23 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 10 Sep 2021 14:45:19 +0000 (11:45 -0300)
The '--' prevented arguments from being passed to the script, such as:

  $ perf script report stackcollapse -i my_perf.data

Signed-off-by: Michael Petlan <mpetlan@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
LPU-Reference: 20200427142327.21172-1-mpetlan@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/bin/stackcollapse-report

index 356b9656393db5a59bb3083d79d0ab0c35e1200a..21a356bd27f6c797208fae48addf15670bc3f606 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 # description: produce callgraphs in short form for scripting use
-perf script -s "$PERF_EXEC_PATH"/scripts/python/stackcollapse.py -- "$@"
+perf script -s "$PERF_EXEC_PATH"/scripts/python/stackcollapse.py "$@"