public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Nick Piggin <npiggin@kernel.dk>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: buggy perf callgraph output
Date: Thu, 9 Dec 2010 03:40:15 +1100	[thread overview]
Message-ID: <20101208164015.GA5444@amd> (raw)

Hi,

I get strange looking perf output with the callchain hits not sorted
properly for graph and fractal:

     7.34%          open  [kernel.kallsyms]     [k] kmem_cache_alloc
                    |
                    --- kmem_cache_alloc
                       |          
                       |---0.05%-- get_empty_filp
                       |          do_filp_open
                       |          do_sys_open
                       |          sys_open
                       |          system_call
                       |          __open_nocancel
                       |          
                        ---0.16%-- getname
                                  do_sys_open
                                  sys_open
                                  system_call
                                  __open_nocancel

     6.17%          open  [kernel.kallsyms]     [k] _raw_spin_lock
                    |
                    --- _raw_spin_lock
                       |          
                       |---0.01%-- add_partial
                       |          __slab_free
                       |          kmem_cache_free
                       |          file_free_rcu
                       |          __rcu_process_callbacks
                       |          rcu_process_callbacks
                       |          __do_softirq
                       |          call_softirq
                       |          do_softirq
                       |          irq_exit
                       |          smp_apic_timer_interrupt
                       |          apic_timer_interrupt
                       |          
                       |---0.16%-- dput
                       |          |          
                       |           --0.57%-- fput
                       |                     filp_close
                       |                     sys_close
                       |                     system_call
                       |                     __libc_close
                       |          
                       |--0.60%-- link_path_walk
                       |          do_path_lookup
                       |          do_filp_open
                       |          do_sys_open
                       |          sys_open
                       |          system_call
                       |          __open_nocancel
                       |          
                       |--0.57%-- __slab_free
                       |          kmem_cache_free
                       |          file_free_rcu
                       |          __rcu_process_callbacks
                       |          rcu_process_callbacks
                       |          __do_softirq


With flat it looks a bit better:
     7.34%          open  [kernel.kallsyms]     [k] kmem_cache_alloc
             6.09%
                kmem_cache_alloc
                get_empty_filp
                do_filp_open
                do_sys_open
                sys_open
                system_call
                __open_nocancel

             1.07%
                kmem_cache_alloc
                getname
                do_sys_open
                sys_open
                system_call
                __open_nocancel

     6.17%          open  [kernel.kallsyms]     [k] _raw_spin_lock
             0.60%
                _raw_spin_lock
                link_path_walk
                do_path_lookup
                do_filp_open
                do_sys_open
                sys_open
                system_call
                __open_nocancel

             0.57%
                _raw_spin_lock
                fd_install
                do_sys_open
                sys_open
                system_call
                __open_nocancel

             0.57%
                _raw_spin_lock
                dput
                fput
                filp_close
                sys_close
                system_call
                __libc_close


             reply	other threads:[~2010-12-08 16:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-08 16:40 Nick Piggin [this message]
2010-12-08 21:48 ` buggy perf callgraph output Frederic Weisbecker
2010-12-15 13:02   ` Nick Piggin
2010-12-16 11:47     ` Frederic Weisbecker
2010-12-17  5:32       ` Nick Piggin
2010-12-23 12:55         ` Frederic Weisbecker
2010-12-23 13:08           ` Ingo Molnar
2010-12-23 13:35             ` Frederic Weisbecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101208164015.GA5444@amd \
    --to=npiggin@kernel.dk \
    --cc=acme@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox