I have prepared a 2.5.7 patch for the Linux Trace Toolkit.
As I had said before, LTT now supports 5 architectures: i386, PPC, S/390, SuperH and MIPS.
For those who are not familiar with LTT, it provides for dynamic tracing of
the Linux kernel. This type of toolset is fundamental when developing applications
that require a clear understanding of the sequence of events that occur. It is, for
instance, impossible to debug any form of inter-process communication using a
conventional debugger. With a trace tool such as LTT, this becomes fairly easy.
Synchronization problem solving and performance measurement are the two broad
categories where LTT is unique in its capabilities.
In order to provide these capabilities, information must be collected at the kernel
level during execution. Hence, trace statements are inserted at key points in the
kernel to collect data. The following is an example statement:
This is actually a macro which gets replaced by the following iff tracing is
selected during kernel configuration (otherwise, no code is generated):
#define TRACE_SCHEDCHANGE(OUT, IN) \
sched_event.out = OUT->pid;\
sched_event.in = (uint32_t) IN;\
sched_event.out_state = OUT->state; \
trace_event() is a unified trace function which is called by all the instrumented
parts of the kernel. The rest of the mechanics of how information is recorded,
committed and reused is covered in a paper I presented at the 2000 Usenix Annual
Technical Conference entitled "Measuring and Characterizing System Behavior
Using Kernel-Level Event Logging." The complete paper can be found here:
As said above, LTT does not add any code to the kernel when disabled at config
time. Also, LTT has a very low impact (2.5%) on the system's behavior when activated.
This impact has been studied in the Usenix paper.
LTT has been available for close to 3 years now and has seen many contributions
from IBM, MontaVista, HP and Sony, to name a few. It is already part of a number
of distributions, including MontaVista, Lineo and Debian, with more on the way.
In the past, many have shown interest and support for LTT's inclusion in
the standard kernel tree. I won't fill this mail with names, but Alan Cox,
for instance, is one of them.
The patch is available here:
LTT's home page is:
Embedded and Real-Time Linux Expert
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Apr 15 2002 - 22:00:19 EST