Re: latency tracing in mainline or rt

From: Steven Rostedt
Date: Fri Sep 24 2010 - 12:51:30 EST


On Fri, 2010-09-24 at 21:44 +0530, Jack Daniel wrote:
> Hi,
>
> Can some one tell me the difference between Latency tracing that's
> here http://people.redhat.com/mingo/latency-tracing-patches/ and the
> tracing supported in the RT kernel here
> http://www.kernel.org/pub/linux/kernel/projects/rt/ ? What's the
> status of the present latency tracing and its documentation. Does
> Ftrace override these with its superior tracing? Any help is highly
> appreciated.

Ftrace was derived from two projects. One was my own logdev, and the
other was Ingo's latency tracing patches. The irq/preempt off tracers
still hold some of the code from the latency tracing patches practically
untouched.

With the old latency tracing patches, to enable or disable the tracing
feature, you had to change a config option and recompile the kernel.

With ftrace, you only need to

echo irqsoff > /sys/kernel/debug/current_tracer

to enable irqsoff tracing (the latency of the kernel where it disables
interrupts).

Please read the documentation in the kernel source
Documentation/trace/ftrace.txt.

To answer your questions, ftrace is really just latency-tracing next
generation ;-)

-- Steve


--
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/