public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ftrace - Add function duration tracer to ftrace
@ 2009-12-09 22:40 Tim Bird
  2009-12-10  3:41 ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Bird @ 2009-12-09 22:40 UTC (permalink / raw)
  To: linux kernel, Steven Rostedt, Ingo Molnar, Frederic Weisbecker

I've created a new tracer, called the "function duration" tracer,
which is derived from the existing function graph tracer.  The
new feature of this tracer, relative to the function graph tracer,
is that it allows filtering by duration.

The rationale for creating a separate tracer is that some of the
optimizations used for the duration tracer were incompatible with
the function graph tracer.  Specifically, I avoid superfluous
calls to the ring_buffer code, avoiding substantial overhead
penalties.  Also, this tracer is more suitable for use at
bootup time (I have a set of patches pending which adds support
for that, on ARM).

The output format for the tracer is amenable to grep-ing.
That is, the duration is on the same line as the function name.

For details about this, see my presentation from the Japan Linux
Symposium:
http://elinux.org/images/7/70/Measuring-function-duration-with-ftrace-oct-2009.pdf

with more information available at the elinux wiki page:
http://elinux.org/Ftrace_Function_Graph_ARM

Patches to follow.  Thanks.
 -- Tim



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ftrace - Add function duration tracer to ftrace
  2009-12-09 22:40 [PATCH 0/4] ftrace - Add function duration tracer to ftrace Tim Bird
@ 2009-12-10  3:41 ` Steven Rostedt
  2009-12-10 20:21   ` Tim Bird
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2009-12-10  3:41 UTC (permalink / raw)
  To: Tim Bird; +Cc: linux kernel, Ingo Molnar, Frederic Weisbecker

On Wed, 2009-12-09 at 14:40 -0800, Tim Bird wrote:

> For details about this, see my presentation from the Japan Linux
> Symposium:
> http://elinux.org/images/7/70/Measuring-function-duration-with-ftrace-oct-2009.pdf

This document seems to be corrupted.

-- Steve



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ftrace - Add function duration tracer to ftrace
  2009-12-10  3:41 ` Steven Rostedt
@ 2009-12-10 20:21   ` Tim Bird
  2009-12-11  2:50     ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Bird @ 2009-12-10 20:21 UTC (permalink / raw)
  To: rostedt@goodmis.org
  Cc: Bird, Tim, linux kernel, Ingo Molnar, Frederic Weisbecker

Steven Rostedt wrote:
> On Wed, 2009-12-09 at 14:40 -0800, Tim Bird wrote:
> 
>> For details about this, see my presentation from the Japan Linux
>> Symposium:
>> http://elinux.org/images/7/70/Measuring-function-duration-with-ftrace-oct-2009.pdf
> 
> This document seems to be corrupted.

Indeed so.  Sorry.

It may be moot, given the ensuing discussion (which I'll respond to
shortly), but here's a link to an uncorrupted version:

http://elinux.org/images/3/3e/Measuring-function-duration-with-ftrace-october-2009.pdf

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/4] ftrace - Add function duration tracer to ftrace
  2009-12-10 20:21   ` Tim Bird
@ 2009-12-11  2:50     ` Steven Rostedt
  0 siblings, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2009-12-11  2:50 UTC (permalink / raw)
  To: Tim Bird; +Cc: Bird, Tim, linux kernel, Ingo Molnar, Frederic Weisbecker

On Thu, 2009-12-10 at 12:21 -0800, Tim Bird wrote:

> It may be moot, given the ensuing discussion (which I'll respond to
> shortly), but here's a link to an uncorrupted version:
> 
> http://elinux.org/images/3/3e/Measuring-function-duration-with-ftrace-october-2009.pdf

I just read your presentation, and I like it :-)

I still feel that we don't want to add another plugin, but as I also
stated, I don't want to stop improving on the current plugins until we
have a better alternative.

Would it be possible in making this an trace option (for now). And then
the function graph tracer would just morph into this duration tracer. No
added plugin, but just an option.

I do see value in this, and I don't want to keep it from making it into
34 just because we plan to some day phase out the plugins. There's too
many times we try to go for broke and end up with nothing at the end.
This is why it took so long for streamline_config to make it in.

Just make any tools that interface with this flexible, (abstract layer)
so that if this does change the tools can cope.

-- Steve



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-11  2:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-09 22:40 [PATCH 0/4] ftrace - Add function duration tracer to ftrace Tim Bird
2009-12-10  3:41 ` Steven Rostedt
2009-12-10 20:21   ` Tim Bird
2009-12-11  2:50     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox