<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in flamegraph-record</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>19ce2321 - perf flamegraph: Use /bin/bash for report and record scripts</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/perf/scripts/python/bin/flamegraph-record#19ce2321</link>
        <description>perf flamegraph: Use /bin/bash for report and record scriptsAs 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 5287f9269206 (&quot;perf  script: Add flamegraph.py script&quot;):    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&apos;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&lt;----------8&lt;----------8&lt;-----  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 &quot;$@&quot;  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 &quot;$PERF_EXEC_PATH&quot;/scripts/python/flamegraph.py -- &quot;$@&quot;  -----&gt;8----------&gt;8----------&gt;8-----Fixes: 5287f9269206 (&quot;perf script: Add flamegraph.py script&quot;)Reported-by: Daniel D&#237;az &lt;daniel.diaz@linaro.org&gt;Acked-by: Andreas Gerstmayr &lt;agerstmayr@redhat.com&gt;Cc: Adrian Hunter &lt;adrian.hunter@intel.com&gt;Cc: Jiri Olsa &lt;jolsa@kernel.org&gt;Cc: lkft-triage@lists.linaro.orgCc: Namhyung Kim &lt;namhyung@kernel.org&gt;Link: http://lore.kernel.org/lkml/CAEUSe7_wmKS361mKLTB1eYbzYXcKkXdU26BX5BojdKRz8MfPCw@mail.gmail.comLink: http://lore.kernel.org/lkml/20200505170320.GZ30487@kernel.orgSigned-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;

            List of files:
            /linux-6.15/tools/perf/scripts/python/bin/flamegraph-record</description>
        <pubDate>Tue, 05 May 2020 16:33:12 +0000</pubDate>
        <dc:creator>Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;</dc:creator>
    </item>
<item>
        <title>5287f926 - perf script: Add flamegraph.py script</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/perf/scripts/python/bin/flamegraph-record#5287f926</link>
        <description>perf script: Add flamegraph.py scriptThis script works in tandem with d3-flame-graph to generate flame graphsfrom perf. It supports two output formats: JSON and HTML (the default).The HTML format will look for a standalone d3-flame-graph template filein /usr/share/d3-flame-graph/d3-flamegraph-base.html and fill in thecollected stacks.Usage:    perf record -a -g -F 99 sleep 60    perf script report flamegraphCombined:    perf script flamegraph -a -F 99 sleep 60Committer testing:Tested both with &quot;PYTHON=python3&quot; and with the default, that usespython2-devel:Complete set of instructions:  $ mkdir /tmp/build/perf  $ make PYTHON=python3 -C tools/perf O=/tmp/build/perf install-bin  $ export PATH=~/bin:$PATH  $ perf record -a -g -F 99 sleep 60  $ perf script report flamegraphNow go and open the generated flamegraph.html file in a browser.At first this required building with PYTHON=python3, but after Ireported this Andreas was kind enough to send a patch making it workwith both python and python3.Signed-off-by: Andreas Gerstmayr &lt;agerstmayr@redhat.com&gt;Tested-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;Cc: Alexander Shishkin &lt;alexander.shishkin@linux.intel.com&gt;Cc: Jiri Olsa &lt;jolsa@redhat.com&gt;Cc: Mark Rutland &lt;mark.rutland@arm.com&gt;Cc: Namhyung Kim &lt;namhyung@kernel.org&gt;Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;Cc: Brendan Gregg &lt;bgregg@netflix.com&gt;Cc: Martin Spier &lt;mspier@netflix.com&gt;Link: http://lore.kernel.org/lkml/20200320151355.66302-1-agerstmayr@redhat.comSigned-off-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;

            List of files:
            /linux-6.15/tools/perf/scripts/python/bin/flamegraph-record</description>
        <pubDate>Fri, 20 Mar 2020 15:13:48 +0000</pubDate>
        <dc:creator>Andreas Gerstmayr &lt;agerstmayr@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
