lttng-crash — Recover and read LTTng trace buffers in the event of a crash
The Linux Trace Toolkit: next generation is an open-source software package used for correlated tracing of the Linux kernel, user applications, and user libraries.
LTTng consists of Linux kernel modules (for Linux kernel tracing) and dynamically loaded libraries (for user application and library tracing).
lttng-crash command-line tool recovers LTTng trace buffers in the
event of a system crash.
lttng-crash reads files within the directory
SHMDIR and does one
Launches a trace reader (see the
--viewer option) to view the
Extracts the files as uncorrupted LTTng traces to the
SHMDIR is the directory specified as the argument of the
--shm-path option of the lttng-create(1) command used to
create the recording session for which to recover the traces.
Extract recovered traces to the directory
DIR; do not execute
any trace reader.
Specify this option up to three times to get more levels of verbosity.
Use the trace reader
READER to read the trace buffers.
READER is the absolute path to the reader command to use, and it can
contain command arguments as well.
lttng-crash passes the trace
directory paths to the
READER command as its last arguments.
Special thanks to Michel Dagenais and the DORSAL laboratory at École Polytechnique de Montréal for the LTTng journey.
Also thanks to the Ericsson teams working on tracing which helped us greatly with detailed bug reports and unusual test cases.