public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Peter Zijlstra <peterz@infradead.org>
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, 7 Aug 2009 10:22:16 +0200	[thread overview]
Message-ID: <20090807082214.GC4955@nowhere> (raw)
In-Reply-To: <1249632778.32113.608.camel@twins>

On Fri, Aug 07, 2009 at 10:12:58AM +0200, Peter Zijlstra wrote:
> 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 haven't met such huge rate's mistake yet :)
It was more about +-20% of imprecision.

I guess this patch should fix what you've met. If you still see that,
please tell me.

BTW, I will soon add a debug option to check the percentage correctness
and things like that...


      reply	other threads:[~2009-08-07  8:22 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 ` [PATCH] perf tools: Fix cumul hit based sub-total Peter Zijlstra
2009-08-07  8:22   ` Frederic Weisbecker [this message]

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=20090807082214.GC4955@nowhere \
    --to=fweisbec@gmail.com \
    --cc=acme@redhat.com \
    --cc=efault@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=penberg@cs.helsinki.fi \
    --cc=peterz@infradead.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