Skip to content

ftrace - Add function duration tracer to ftrace

Tim Bird lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ftrace - expose tracing_thresh and global_tracekernel/trace/trace.c kernel/trace/trace.h+8 -41 reply
2/4ftrace - add function_duration tracerkernel/trace/Kconfig kernel/trace/Makefile kernel/trace/trace.c +1 more+568 -025 replies
3/4ftrace - add fdd scriptscripts/fdd+766 -00 replies
4/4ftrace - function_duration DocumentationDocumentation/trace/func-duration.txt+439 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ftrace - Add function duration tracer to ftrace

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