<?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-report</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>29bab854 - perf script: Fix hangup in offline flamegraph report</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/perf/scripts/python/bin/flamegraph-report#29bab854</link>
        <description>perf script: Fix hangup in offline flamegraph reportA recent change in the flamegraph script fixed an issue with live modebut it created another for offline mode.  It needs to pass &quot;-&quot; to -ioption to read from stdin in the live mode.  Actually there&apos;s a logicto pass the option in the perf script code, but the script was writtenwith &quot;-- $@&quot; which prevented the option to go to the perf script.  Sothe previous commit added the hard-coded &quot;-i -&quot; to the report command.But it&apos;s a problem for the offline mode which expects input from a fileand now it&apos;s stuck on reading from stdin.  Let&apos;s remove the &quot;-i - --&quot;part and let it pass the options properly to perf script.Closes: https://lore.kernel.org/linux-perf-users/c41e4b04-e1fd-45ab-80b0-ec2ac6e94310@linux.ibm.comFixes: 23e0a63c6dd3f69c (&quot;perf script: force stdin for flamegraph in live mode&quot;)Reported-by: Thomas Richter &lt;tmricht@linux.ibm.com&gt;Tested-by: Thomas Richter &lt;tmricht@linux.ibm.com&gt;Cc: Anubhav Shelat &lt;ashelat@redhat.com&gt;Signed-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux-6.15/tools/perf/scripts/python/bin/flamegraph-report</description>
        <pubDate>Wed, 19 Feb 2025 00:05:58 +0000</pubDate>
        <dc:creator>Namhyung Kim &lt;namhyung@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>23e0a63c - perf script: force stdin for flamegraph in live mode</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/tools/perf/scripts/python/bin/flamegraph-report#23e0a63c</link>
        <description>perf script: force stdin for flamegraph in live modeCurrently, running &quot;perf script flamegraph -a -F 99 sleep 1&quot; shouldproduce flamegraph.html containing the flamegraph. Howevever, it gives asegmentation fault.This is caused because the flamegraph.py script issupposed to take as input the output of &quot;perf record&quot;, which should bein stdin. This would require passing &quot;-i -&quot; to flamegraph.py. However,the &quot;flamegraph-report&quot; script causes &quot;perf script&quot; command to take the&quot;-i -&quot; option instead of flamegraph.py, which causes no problem for&quot;perf script&quot;, but causes a seg fault since flamegraph.py has no inputfile. To fix this I added the &quot;-i -&quot; option directly to theflamegraph-report script to ensure flamegraph.py gets input from stdin.Signed-off-by: Anubhav Shelat &lt;ashelat@redhat.com&gt;Tested-by: Michael Petlan &lt;mpetlan@redhat.com&gt;Link: https://lore.kernel.org/r/20250131145704.3164542-2-ashelat@redhat.comSigned-off-by: Namhyung Kim &lt;namhyung@kernel.org&gt;

            List of files:
            /linux-6.15/tools/perf/scripts/python/bin/flamegraph-report</description>
        <pubDate>Fri, 31 Jan 2025 14:57:05 +0000</pubDate>
        <dc:creator>Anubhav Shelat &lt;ashelat@redhat.com&gt;</dc:creator>
    </item>
<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-report#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-report</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-report#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-report</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>
