(Sorry to answer that so late)
On Sat, Aug 14, 2010 at 04:04:15PM -0400, Christoph Hellwig wrote:
Somehow, that's a kind of overview you can get with
perf report, using the default fractal mode or the graph mode.
Callers are sorted by hits in these modes (actually in raw mode too).
But it could be interesting to add the callchains as arguments to the
perl/python scripting handlers for precise usecases.
So for example that becomes an even more precise usecase.
Currently the perf scripting engine doesn't give you access
to the callchains of a trace sample. That would be a nice feature
and would solve your problem.
Tom, what do you think about that? This could be a special mode
requested by the user, or something made automatically if callchains
are present in samples. We could add a specific callchain extra
argument to the generated scripting handlers, or this could
be a generic extra dict argument that can contain whatever we want
(perf sample headers, etc...), whatever extra data the user might
request.
What do you think?
Thanks.
--