LTTng controls low-overhead tracing on Linux for kernel and user-space events. It helps you capture, stream, and analyze how applications and the kernel interact.
Overview
LTTng is an open source tracing framework for Linux aimed at showing how a system behaves under real workloads. You identify events that expose application and kernel activity, record them with tracing designed for low overhead, and analyze the results with graphical tools, command-line utilities, or your own scripts.
The lttng-tools components control that tracing. A session daemon acts as a tracing registry. The lttng command-line interface drives setup and control through a C library that also offers Python 3 bindings. A relay daemon supports network streaming of traces, and a separate consumer daemon participates in the pipeline. A crash-recovery tool can retrieve and view trace buffers after failures.
LTTng works with matching versions of the Linux kernel tracer and the user-space tracer, so you can correlate events from C/C++, Java, and other instrumented applications with kernel activity. The project notes that applications built with older user-space tracer versions do not need rebuilding to work with current control components.
The framework targets flexible deployment from small embedded Linux systems to large server environments. Documentation and manual pages describe how to build the control components from source on Linux and how to operate tracing in production.
Key features
- Session daemon tracing registry
- lttng command-line control
- liblttng-ctl C API
- Python 3 control bindings
- Network trace streaming relay
- Kernel and user-space tracers
- Post-crash trace buffer recovery
- Consumer daemon for traces
Use cases
- Production system behavior analysis
- Kernel and application event correlation
- Low-overhead embedded tracing
- Multi-process interaction debugging
- Trace recovery after crashes