linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "perf hists browser: Support flat callchains" appears to have broken parent reporting
@ 2016-03-30 12:34 Andres Freund
  2016-03-30 13:46 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 14+ messages in thread
From: Andres Freund @ 2016-03-30 12:34 UTC (permalink / raw)
  To: Namhyung Kim, Arnaldo Carvalho de Melo, Peter Zijlstra, Ingo Molnar
  Cc: linux-kernel

Hi,

4b3a3212233a - "perf hists browser: Support flat callchains" seems to
have broken callchain display in tui mode when using !flat mode, or at
least changed it in an unintended manner.

Llooking at the same perf.data file:
perf report --tui --no-children -g
before:
-   16.69%  swapper          [kernel.kallsyms]             [k] poll_idle
   - poll_idle
      + 16.65% cpuidle_enter_state
      + 0.04% cpuidle_enter
-    3.51%  swapper          [kernel.kallsyms]             [k] intel_idle
   - intel_idle
      + 3.49% cpuidle_enter_state
      + 0.03% cpuidle_enter
-    1.35%  postgres         postgres                      [.] hash_search_with_hash_value
   - hash_search_with_hash_value
      - 0.32% BufTableLookup
         + ReadBuffer_common
      - 0.18% LockAcquireExtended
         + 0.16% LockRelationOid
         + 0.02% XactLockTableInsert
      + 0.14% FetchPreparedStatement
      + 0.13% CreatePortal
      + 0.11% RelationIdGetRelation
      + 0.10% GetPortalByName
after:
-   16.69%  swapper          [kernel.kallsyms]             [k] poll_idle
     poll_idle
-    3.51%  swapper          [kernel.kallsyms]             [k] intel_idle
     intel_idle
-    1.35%  postgres         postgres                      [.] hash_search_with_hash_value
     hash_search_with_hash_value
-    1.18%  postgres         postgres                      [.] AllocSetAlloc
     AllocSetAlloc
-    0.85%  postgres         libc-2.22.so                  [.] __memcpy_sse2_unaligned
     __memcpy_sse2_unaligned

as you can see after the aforementioned commit there's only one level of
callers reported.

--stdio output isn't affected.

I can provide an example perf.data file, but it apears to reproduce with
just about any profile here.

Greetings,

Andres Freund

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

end of thread, other threads:[~2016-05-02 23:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 12:34 "perf hists browser: Support flat callchains" appears to have broken parent reporting Andres Freund
2016-03-30 13:46 ` Arnaldo Carvalho de Melo
2016-03-30 14:19   ` Andres Freund
2016-03-30 16:00     ` Namhyung Kim
2016-03-30 19:02       ` Andres Freund
2016-03-31  6:33         ` [tip:perf/urgent] perf hists: Fix determination of a callchain node's childlessness tip-bot for Andres Freund
2016-04-16 19:46           ` Andres Freund
2016-04-18 14:07             ` Arnaldo Carvalho de Melo
2016-04-18 14:25           ` Andres Freund
2016-05-02 22:17             ` Greg KH
2016-05-02 22:25               ` Andres Freund
2016-05-02 23:24                 ` Greg KH
2016-05-02 23:34                   ` Andres Freund
2016-03-30 21:07       ` "perf hists browser: Support flat callchains" appears to have broken parent reporting Arnaldo Carvalho de Melo

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).