Using LTTng
The Linux Trace Toolkit (LTT) 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 a next-generation trace tool, LTTng. It was then expanded to cover user space traces as well as the kernel. The project website is at https://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 (https://babeltrace.org) or the Eclipse Trace Compass plugin 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...