Re: perf scripting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Thursday, September 16, 2010 - 5:08 am

(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.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/6] vmscan: tracing: Roll up of patches curren ..., Frederic Weisbecker, (Fri Jul 30, 7:04 am)
Re: [PATCH 1/6] vmscan: tracing: Roll up of patches curren ..., Frederic Weisbecker, (Fri Jul 30, 7:15 am)
perf scripting, Christoph Hellwig, (Sat Aug 14, 1:04 pm)
Re: perf scripting, Frederic Weisbecker, (Thu Sep 16, 5:08 am)
Re: perf scripting, Masami Hiramatsu, (Fri Sep 17, 3:32 am)
Re: perf scripting, Tom Zanussi, (Fri Sep 17, 10:04 pm)