Re: [RFC PATCH] perf report: add sort by file lines
From: Arnaldo Carvalho de Melo
Date: Thu Mar 31 2011 - 11:35:57 EST
Em Thu, Mar 31, 2011 at 10:19:36PM +0800, Lin Ming escreveu:
> On Thu, 2011-03-31 at 21:46 +0800, Arnaldo Carvalho de Melo wrote:
> > I think it does, so we do just like with annotation, but parsing objdump
> > -S output, is that what you're planning?
>
> I mean to use libopcodes to decode the instructions.
> But to parse objdump -S output maybe a better and simpler idea.
When we started working on code annotation I thought about using a
library, but after a while, no, not really, better to parse a tool
output like Ingo did in the first usable version of perf annotate.
objdump output (and pahole, for data annotation) is very much set in
stone after all those years, so we can just use it.
> > After we have the members we can do data annotation, in much the same
> > way we do with code annotation, i.e. augmenting pahole output.
> What is data annotation? Is it to list the percentage of access for each
> member of the structure? For example,
> struct bar {
> int poekoe[5]; //10%
> int fubar; //20%
> };
Exactly. Using different colors for percentage ranges, etc. Like code
annotation right now.
Done in perf report (static) zoomable, i.e. choosing a DSO and getting
the hits originated from functions in it, or in a thread, or in both,
like we have today for code annotation.
And in 'perf top --tui' live data annotation. With the same set of
zooming operations. So that one can see patterns of data structure
access as a workload runs.
- Arnaldo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/