From: Frederic Weisbecker <fweisbec@gmail.com>
To: John Kacur <jkacur@redhat.com>
Cc: mingo@elte.hu, Peter Zijlstra <a.p.zijlstra@chello.nl>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] Put common histogram functions for perf in their own file
Date: Tue, 29 Sep 2009 10:06:57 +0200 [thread overview]
Message-ID: <20090929080654.GC5233@nowhere> (raw)
In-Reply-To: <alpine.LFD.2.00.0909281652001.10299@localhost.localdomain>
On Mon, Sep 28, 2009 at 05:04:07PM +0200, John Kacur wrote:
> perf annotate still will not sort the entries with these changes.
> because callchain will be equal to zero.
The sorting does not only applies to callchains but also on
histogram entries.
> Calling output__resort(total) will be harmless because the calculation
> will be thrown away in output__insert_entry() here:
> if (callchain)
> callchain_param.sort(&he->sorted_chain, &he->callchain,
> min_callchain_hits, &callchain_param);
Hmm, but the histogram entries will still be sorted, I might be wrong
but it doesn't seem to be needed.
That said it's not something introduced by your patch, it was
already there, but I guess it would be a nice separate cleanup patch.
> From 7c6a2035c32d17db0e566a36c7e345ec2182f722 Mon Sep 17 00:00:00 2001
> From: John Kacur <jkacur@redhat.com>
> Date: Mon, 28 Sep 2009 14:53:08 +0200
> Subject: [PATCH] Put common histogram functions for perf in their own file
>
> Move histogram related functions into their own files (hist.c and hist.h)
> and make use of them in builtin-annotate.c and builtin-report.c
>
> Signed-off-by: John Kacur <jkacur@redhat.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Thanks!
prev parent reply other threads:[~2009-09-29 8:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-28 13:05 [PATCH] Put common histogram functions for perf in their own file John Kacur
2009-09-28 13:32 ` John Kacur
2009-09-30 12:13 ` [tip:perf/core] perf tools: Put common histogram functions " tip-bot for John Kacur
2009-09-28 14:02 ` [PATCH] Put common histogram functions for perf " Frederic Weisbecker
2009-09-28 15:04 ` John Kacur
2009-09-29 8:06 ` 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=20090929080654.GC5233@nowhere \
--to=fweisbec@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=jkacur@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@elte.hu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.