linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* perf script: perf script hangs forever in linux-next
@ 2025-02-13 11:06 Thomas Richter
  2025-02-14  2:13 ` Namhyung Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Richter @ 2025-02-13 11:06 UTC (permalink / raw)
  To: linux-perf-use., ashelat, Michael Petlan

Command 'perf script report flamegraph' hangs for ever as can
be seen with these commands:

  # perf record -- dd if=/dev/zero of=/dev/null bs=1M count=10K > /dev/null
  10240+0 records in
  10240+0 records out
  10737418240 bytes (11 GB, 10 GiB) copied, 0.387818 s, 27.7 GB/s
  [ perf record: Woken up 1 times to write data ]
  [ perf record: Captured and wrote 0.074 MB perf.data (1520 samples) ]
  #
  # time perf script report flamegraph
  ^C

  real  0m53.506s
  user  0m0.017s
  sys   0m0.012s
  #
  
Control-C interrupt is needed to terminate the command.

If I revert commit 23e0a63c6dd3f69cb7ee18411e5f6857cca55b30
 Author: Anubhav Shelat <ashelat@redhat.com>
 Date:   Fri Jan 31 09:57:05 2025 -0500

    perf script: force stdin for flamegraph in live mode

then everythings works fine again:

 # PERF_EXEC_PATH=/root/mirror-linux-next/tools/perf ./perf script report flamegraph
 # dumping data to flamegraph.html
 # 

Can you fix this so above invocation works again or revert that patch?

Thanks a lot
~                                                                                                   
~                                                                                                   
~                   
-- 
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany
--
IBM Deutschland Research & Development GmbH

Vorsitzender des Aufsichtsrats: Wolfgang Wendt

Geschäftsführung: David Faller

Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-02-19 20:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 11:06 perf script: perf script hangs forever in linux-next Thomas Richter
2025-02-14  2:13 ` Namhyung Kim
2025-02-14 10:21   ` Thomas Richter
2025-02-19 10:13     ` PING " Thomas Richter
2025-02-19 20:34     ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).