From: Peter Zijlstra <peterz@infradead.org>
To: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>, LKML <linux-kernel@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Mike Galbraith <efault@gmx.de>,
Pekka Enberg <penberg@cs.helsinki.fi>
Subject: Re: [PATCH] perf tools: Fix cumul hit based sub-total
Date: Fri, 07 Aug 2009 10:12:58 +0200 [thread overview]
Message-ID: <1249632778.32113.608.camel@twins> (raw)
In-Reply-To: <1249621865-9325-1-git-send-email-fweisbec@gmail.com>
On Fri, 2009-08-07 at 07:11 +0200, Frederic Weisbecker wrote:
> The callchain fractal mode builds each new total hits in a new branch
> of profiling by using the parent's hits of the current branch plus the
> hits of the children.
>
> This is wrong, the total hits of a branch should be made of the sum of
> every children hits, we must ignore the parent hits in this scope.
>
> This patch also fixes another mistakes with the hit counting.
>
> Now the rates are corrects.
>
> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Peter Zijlstra <peterz@infradead.org>
> Cc: Mike Galbraith <efault@gmx.de>
> ---
Ah will this fix these instances where you'd have things like
| page_fault
| |
| |--100.00%-- __strcmp_sse2
| | copy_dep_chain
| | __libc_start_main
| |
| --100.00%-- gettimeofday
| __libc_start_main
I was meaning to poke you about that :-)
next prev parent reply other threads:[~2009-08-07 8:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 5:11 [PATCH] perf tools: Fix cumul hit based sub-total Frederic Weisbecker
2009-08-07 6:36 ` [tip:perfcounters/urgent] perf tools: Fix call-chain cumul hit based sub-total (fractal mode) tip-bot for Frederic Weisbecker
2009-08-07 7:39 ` tip-bot for Frederic Weisbecker
2009-08-07 8:12 ` Peter Zijlstra [this message]
2009-08-07 8:22 ` [PATCH] perf tools: Fix cumul hit based sub-total 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=1249632778.32113.608.camel@twins \
--to=peterz@infradead.org \
--cc=acme@redhat.com \
--cc=efault@gmx.de \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=penberg@cs.helsinki.fi \
/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