Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1647734
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf tools: Fix to put caller above callee in children mode |
| Date | 2017-05-23 09:40 +0200 |
| Message-ID | <tKcA9-8tW-11@gated-at.bofh.it> (permalink) |
| References | <tJV6i-5Qr-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, May 22, 2017 at 09:50:29PM +0900, Namhyung Kim wrote: > The __hpp__sort_acc() sorts entries using callchain depth in order to > put callers above in children mode. But it assumed the callchain order > was callee-first. Now default (for children) is caller-first so the > order of entries is reverted. > > For example, consider following case. > > $ perf report --no-children > ..l > # Overhead Command Shared Object Symbol > # ........ ....... ................... .......................... > # > 99.44% a.out a.out [.] main > | > ---main > __libc_start_main > _start > > Then children mode should show 'start' above '__libc_start_main' since > it's the caller (parent) of the __libc_start_main. But it's reversed: > > # Children Self Command Shared Object Symbol > # ........ ........ ....... ............... ..................... > # > 99.61% 0.00% a.out libc-2.25.so [.] __libc_start_main > 99.61% 0.00% a.out a.out [.] _start > 99.54% 99.44% a.out a.out [.] main > > This patch fixes it. > > # Children Self Command Shared Object Symbol > # ........ ........ ....... ............... ..................... > # > 99.61% 0.00% a.out a.out [.] _start > 99.61% 0.00% a.out libc-2.25.so [.] __libc_start_main > 99.54% 99.44% a.out a.out [.] main > > Cc: Frederic Weisbecker <fweisbec@gmail.com> > Cc: Milian Wolff <milian.wolff@kdab.com> > Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> thanks, jirka
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf tools: Fix to put caller above callee in children mode Namhyung Kim <namhyung@kernel.org> - 2017-05-22 15:00 +0200 Re: [PATCH] perf tools: Fix to put caller above callee in children mode Jiri Olsa <jolsa@redhat.com> - 2017-05-23 09:40 +0200
csiph-web