From: Arnaldo Carvalho de Melo <acme@redhat.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Mike Galbraith" <efault@gmx.de>,
"Peter Zijlstra" <a.p.zijlstra@chello.nl>,
"Paul Mackerras" <paulus@samba.org>
Subject: Re: [PATCH 5/5] perf diff: Fix support for all --sort combinations
Date: Mon, 28 Dec 2009 22:54:29 -0200 [thread overview]
Message-ID: <20091229005429.GA17605@ghostprotocols.net> (raw)
In-Reply-To: <1262047716-23171-5-git-send-email-acme@infradead.org>
Em Mon, Dec 28, 2009 at 10:48:36PM -0200, Arnaldo Carvalho de Melo escreveu:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> When we finish creating the hist_entries we _already_ have them sorted "by
> name", in fact by what is in --sort, that is exactly how we can find the pairs
> in perf_session__match_hists as 'comm', 'dso' & 'symbol' all are strings we
> need to find the matches in the baseline session.
>
> So only do the sort by hits followed by a resort by --sort if we need to find
> the position for shwowing the --displacement of hist entries.
>
> Now all these modes work correctly:
>
> Example is a simple 'perf record -f find / > /dev/null' ran twice then followed
> by the following commands:
>
> $ perf diff -f --sort comm
> # Baseline Delta Command
> # ........ .......... .......
> #
> 0.00% +100.00% find
Dammit, of course this one needs some more love... will work on it
tomorrow, the others, humm, _should_ be right.
Its late, I should be having some rest already, I guess, or whatever
:-)
- Arnaldo
prev parent reply other threads:[~2009-12-29 0:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-29 0:48 [PATCH 1/5] perf header: do_read shouldn't die Arnaldo Carvalho de Melo
2009-12-29 0:48 ` [PATCH 2/5] perf header: perf_header__push_event " Arnaldo Carvalho de Melo
2009-12-29 0:48 ` [PATCH 3/5] perf report: Add --hide-unresolved/-U command line option Arnaldo Carvalho de Melo
2009-12-29 1:35 ` Valdis.Kletnieks
2009-12-29 0:48 ` [PATCH 4/5] perf diff: Don't add the period for unresolved symbols Arnaldo Carvalho de Melo
2009-12-29 0:48 ` [PATCH 5/5] perf diff: Fix support for all --sort combinations Arnaldo Carvalho de Melo
2009-12-29 0:54 ` Arnaldo Carvalho de Melo [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=20091229005429.GA17605@ghostprotocols.net \
--to=acme@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=efault@gmx.de \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.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