kernel_optimize_test/tools/perf/scripts/python/bin
Arnaldo Carvalho de Melo 19ce232173 perf flamegraph: Use /bin/bash for report and record scripts
As all the other tools/perf/scripts/python/bin/*-{report,record}
scripts, fixing the this problem reported by Daniel Diaz:

  Our OpenEmbedded builds detected an issue with 5287f92692 ("perf
  script: Add flamegraph.py script"):
    ERROR: perf-1.0-r9 do_package_qa: QA Issue:
  /usr/libexec/perf-core/scripts/python/bin/flamegraph-report contained
  in package perf-python requires /usr/bin/sh, but no providers found in
  RDEPENDS_perf-python? [file-rdeps]

  This means that there is a new binary pulled in in the shebang line
  which was unaccounted for: `/usr/bin/sh`. I don't see any other usage
  of /usr/bin/sh in the kernel tree (does not even exist on my Ubuntu
  dev machine) but plenty of /bin/sh. This patch is needed:
  -----8<----------8<----------8<-----
  diff --git a/tools/perf/scripts/python/bin/flamegraph-record
  b/tools/perf/scripts/python/bin/flamegraph-record
  index 725d66e71570..a2f3fa25ef81 100755
  --- a/tools/perf/scripts/python/bin/flamegraph-record
  +++ b/tools/perf/scripts/python/bin/flamegraph-record
  @@ -1,2 +1,2 @@
  -#!/usr/bin/sh
  +#!/bin/sh
   perf record -g "$@"
  diff --git a/tools/perf/scripts/python/bin/flamegraph-report
  b/tools/perf/scripts/python/bin/flamegraph-report
  index b1a79afd903b..b0177355619b 100755
  --- a/tools/perf/scripts/python/bin/flamegraph-report
  +++ b/tools/perf/scripts/python/bin/flamegraph-report
  @@ -1,3 +1,3 @@
  -#!/usr/bin/sh
  +#!/bin/sh
   # description: create flame graphs
   perf script -s "$PERF_EXEC_PATH"/scripts/python/flamegraph.py -- "$@"
  ----->8---------->8---------->8-----

Fixes: 5287f92692 ("perf script: Add flamegraph.py script")
Reported-by: Daniel Díaz <daniel.diaz@linaro.org>
Acked-by: Andreas Gerstmayr <agerstmayr@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: lkft-triage@lists.linaro.org
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/CAEUSe7_wmKS361mKLTB1eYbzYXcKkXdU26BX5BojdKRz8MfPCw@mail.gmail.com
Link: http://lore.kernel.org/lkml/20200505170320.GZ30487@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2020-05-05 16:35:32 -03:00
..
compaction-times-record perf scripts python: Add new compaction-times script 2015-08-28 14:53:40 -03:00
compaction-times-report perf scripts python: Add new compaction-times script 2015-08-28 14:53:40 -03:00
event_analyzing_sample-record
event_analyzing_sample-report
export-to-postgresql-record perf script: Add Python script to export to postgresql 2014-10-29 10:32:49 -02:00
export-to-postgresql-report perf tools: Add call information to Python export 2014-11-03 18:10:06 -03:00
export-to-sqlite-record perf script python: Add support for exporting to sqlite3 2017-08-15 16:37:55 -03:00
export-to-sqlite-report perf script python: Add support for exporting to sqlite3 2017-08-15 16:37:55 -03:00
failed-syscalls-by-pid-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
failed-syscalls-by-pid-report
flamegraph-record perf flamegraph: Use /bin/bash for report and record scripts 2020-05-05 16:35:32 -03:00
flamegraph-report perf flamegraph: Use /bin/bash for report and record scripts 2020-05-05 16:35:32 -03:00
futex-contention-record
futex-contention-report
intel-pt-events-record perf intel-pt: Add example script for power events and PTWRITE 2017-06-30 11:50:53 -03:00
intel-pt-events-report perf intel-pt: Add example script for power events and PTWRITE 2017-06-30 11:50:53 -03:00
mem-phys-addr-record perf script python: Add script to profile and resolve physical mem type 2018-01-12 11:06:57 -03:00
mem-phys-addr-report perf script python: Add script to profile and resolve physical mem type 2018-01-12 11:06:57 -03:00
net_dropmonitor-record
net_dropmonitor-report
netdev-times-record
netdev-times-report
powerpc-hcalls-record perf script powerpc: Python script for hypervisor call statistics 2018-06-06 12:52:06 -03:00
powerpc-hcalls-report perf script powerpc: Python script for hypervisor call statistics 2018-06-06 12:52:06 -03:00
sched-migration-record
sched-migration-report
sctop-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
sctop-report
stackcollapse-record perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
stackcollapse-report perf script: Add stackcollapse.py script 2016-06-21 13:18:35 -03:00
syscall-counts-by-pid-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
syscall-counts-by-pid-report
syscall-counts-record perf scripts: Fallback to syscalls:* when raw_syscalls:* is not available 2014-06-25 12:26:56 -03:00
syscall-counts-report