Using LTTng
The Linux Trace Toolkit project was started by Karim Yaghmour as a means of tracing kernel activity and was one of the first trace tools generally available for the Linux kernel. Later, Mathieu Desnoyers took up the idea and re-implemented it as the next generation trace tool, LTTng. It was then expanded to cover user space traces as well as the kernel. The project website is at http://lttng.org/ and contains a comprehensive user manual.
LTTng consists of three components:
- A core session manager
- A kernel tracer implemented as a group of kernel modules
- A user space tracer implemented as a library
In addition to those, you will need a trace viewer such as Babeltrace (http://www.efficios.com/babeltrace) or the Eclipse Trace Compaas plug-in to display and filter the raw trace data on the host or target.
LTTng requires a kernel configured with CONFIG_TRACEPOINTS
, which is enabled when you select Kernel hacking | Tracers | Kernel Function Tracer.
The description that follows refers to LTTng...