From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org, David Ahern <dsahern@gmail.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Hagen Paul Pfeifer <hagen@jauu.net>,
Mike Galbraith <efault@gmx.de>, Namhyung Kim <namhyung@gmail.com>,
Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <peterz@infradead.org>,
Stephane Eranian <eranian@google.com>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [GIT PULL 0/4] perf/annotate loop detection V2, fixes
Date: Fri, 27 Apr 2012 12:16:42 -0300 [thread overview]
Message-ID: <20120427151642.GB27997@infradead.org> (raw)
In-Reply-To: <20120427072153.GB4766@gmail.com>
Em Fri, Apr 27, 2012 at 09:21:53AM +0200, Ingo Molnar escreveu:
> * Arnaldo Carvalho de Melo <acme@infradead.org> wrote:
> > Arnaldo Carvalho de Melo (4):
> > perf annotate browser: Handle NULL jump targets
> > perf annotate: Disambiguage offsets and addresses in operands
> > perf annotate: Mark jump instructions with no offset
> > perf annotate browser: Don't draw jump connectors for out of function jumps
> Pulled, thanks a lot Arnaldo!
> Works pretty well here, the segfaults are gone. I think we can
> use it as a starting point so I've pulled it into perf/core.
> One thing that we need to fix with this new scheme is the visual
> dynamism/unpredictability of the loop drawing:
Yeah, something to experiment, when Linus suggested it he was afraid
that we would get way too many lines, but Arjan has since requested that
we have a key to toggle showing all jumps at the same time, so that is
what I'm going to do.
Then we can check how that goes.
> As I move the cursor line up and down the current loop is shown
> and it flips in and out of view depending on where I am. In one
> way it's a feature (it shows the currently interesting loop) -
That is why probably we want to get a
show-me-just-the-current-loop/show-me-all-loops toggle key.
> but in another way that kind of 'active' UI element draws my eye
> all the time and it gets tiring and hard to ignore when I'm not
> interested in the current loop but look at other elements of the
> UI output.
>
> It would be better to have a stable image of loops that is
> static and scrolls up and down with the rest of the image. When
> I press 'o' to see the raw disassembly it should probably
> disappear completely.
Right, that can be done as well, but perhaps its better to have a 'j'
key that cycles thru:
. Show me just the current loop
. Show me all loops
. No loops please
That can be used in both raw and augmented mode.
> This would require for us to draw all loops that are
> interesting: probably all backwards jumping ones, with some
> nesting limit of 5 or so. I think we really need this loop graph
> for this UI to have low visual overhead :-/
Well, when first marking the jump targets we'll notice how many loops
there are, reserve N columns for them, then just have a loop where right
now we have the current loop arrow drawing code.
> Beyond improving visual stability of the output, this would also
> obviously be (much) more informative as for reasonably sized
> functions it would show all the current loop contexts - which is
> very useful when one tries to make sense of a function in
> assembly.
>
> Doing that will take up some screen real estate on the left,
> because with increasing nesting levels there will be parallel
> lines and crossing lines - I did a quick ASCII mockup and I
> think it will be fine, as long as we have a hotkey that makes it
> easy to show/hide the loop graph.
'j' or 'l', I'll check which one is available
> If it's all concentrated within a narrow vertical column it also
> does not clutter the output and is easy to ignore when it's not
> needed.
>
> How and whether labels should be mixed with this graph output
> remains to be seen - my intuition is that the two should be
> integrated, like the current code does it.
>
> ( Once we have that done and gather some experience with it can
> we decide whether to show it by default. )
Right, hence all the toggle keys, to experiment with combinations of
output formats.
> We can also save some screen real estate on the left side of the
> screen, the instruction overhead percentage column. Right now
> the largest entry possible is:
>
> 100.00 ││ lea (%rbx,%r12,1),%r14
>
> This could be trimmed by two characters to:
>
> 100.0 ││ lea (%rbx,%r12,1),%r14
>
> This saves a space before the percent value and reduces the
> width of the output - I think 0.1% granularity ought to be
> enough in practice. We should also probably hide entries below
> 0.1% overhead as if they got no hits at all.
Right, that will be used as well when I implement a suggestin Stephane
made while in San Francisco: To show multiple overhead columns for
sessions with multiple events, helping to correlate them.
- Arnaldo
next prev parent reply other threads:[~2012-04-27 15:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-26 15:06 Arnaldo Carvalho de Melo
2012-04-26 15:06 ` [PATCH 1/4] perf annotate browser: Handle NULL jump targets Arnaldo Carvalho de Melo
2012-04-26 15:06 ` [PATCH 2/4] perf annotate: Disambiguage offsets and addresses in operands Arnaldo Carvalho de Melo
2012-04-26 15:06 ` [PATCH 3/4] perf annotate: Mark jump instructions with no offset Arnaldo Carvalho de Melo
2012-04-26 15:06 ` [PATCH 4/4] perf annotate browser: Don't draw jump connectors for out of function jumps Arnaldo Carvalho de Melo
2012-04-27 7:21 ` [GIT PULL 0/4] perf/annotate loop detection V2, fixes Ingo Molnar
2012-04-27 8:06 ` Ingo Molnar
2012-04-27 15:31 ` Arnaldo Carvalho de Melo
2012-04-27 15:48 ` Peter Zijlstra
2012-04-27 16:07 ` Arnaldo Carvalho de Melo
2012-04-27 16:20 ` Peter Zijlstra
2012-04-27 18:09 ` Arnaldo Carvalho de Melo
2012-04-27 15:16 ` Arnaldo Carvalho de Melo [this message]
2012-04-27 16:35 ` Linus Torvalds
2012-04-27 16:46 ` Arnaldo Carvalho de Melo
2012-04-27 17:12 ` Linus Torvalds
2012-04-27 18:03 ` Arnaldo Carvalho de Melo
2012-04-27 18:23 ` Linus Torvalds
2012-04-27 19:17 ` Arnaldo Carvalho de Melo
2012-04-28 13:38 ` Arnaldo Carvalho de Melo
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=20120427151642.GB27997@infradead.org \
--to=acme@infradead.org \
--cc=dsahern@gmail.com \
--cc=efault@gmx.de \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=hagen@jauu.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@gmail.com \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=torvalds@linux-foundation.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
all inboxes | Powered by JetHome®