LTTNG-CRASH(1)
π₯ LTTNG-CRASH(1) π₯
okay so bestie, this page comes to you straight out of the LTTng Manual, section 1, and it is genuinely one of my faves because it's the tool that shows up when everything has already gone wrong. crisis management, but make it chic. π«Ά
β¨ NAME β¨
lttng-crash β recover and read LTTng trace buffers in the event of a crash π₯
β¨ SYNOPSIS β¨
lttng-crash [--extract=DIR | --viewer=READER] [-verbose]... SHMDIR
β¨ DESCRIPTION β¨
The Linux Trace Toolkit: next generation (https://lttng.org/) is an open-source software package used for correlated tracing of the Linux kernel, user applications, and user libraries. obsessed with her actually.
So LTTng is made of two things: Linux kernel modules (that's your Linux kernel tracing πΈ) and dynamically loaded libraries (that's your user application and library tracing π¦).
And the lttng-crash command-line tool? She recovers LTTng trace buffers in the event of a system crash. yes, in the event of a crash. your system fell over, and she's still cute, still working. π
Here's the vibe: lttng-crash reads the files inside the SHMDIR directory, and then does one of these two things:
- Without the
--extractoption β she launches a trace reader (peep the--vieweroption π) so you can look at the traces she recovered. - With the
--extract=DIRoption β she extracts the files as uncorrupted LTTng traces into the DIR directory. pristine. no corruption. we love a clean recovery. β¨
And SHMDIR? That's the directory you passed as the argument of the --shm-path option of the lttng-create(1) command you used to create the recording session you're now desperately trying to recover. iykyk.
β¨ OPTIONS β¨
-x DIR,--extract=DIRβ extract the recovered traces into the directory DIR, and do NOT execute any trace reader. no reader, just files. periodt.-v,--verboseβ increase verbosity π£οΈ
Specify this option up to three times to get more levels of verbosity. stack 'em, bestie.
-e READER,--viewer=READERβ 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.
Without this option, lttng-crash uses babeltrace2(1) if it's available. Otherwise, it tries to use babeltrace(1). she's got backups for her backups. π
πΈ Program information πΈ
-h,--helpβ show help.
This option attempts to launch /usr/bin/man to view this manual page. Override the manual pager path with the LTTNG_MAN_BIN_PATH environment variable. if you've got opinions about pagers, that's your moment. π
--list-optionsβ list the available command options and quit.-V,--versionβ show version and quit.
β¨ EXIT STATUS β¨
0β success π1β error π3β fatal error π
β¨ RESOURCES β¨
- LTTng project website
https://lttng.orgπ - LTTng documentation
https://lttng.org/docsπ - LTTng bug tracker
https://bugs.lttng.orgπ - Git repositories
https://git.lttng.orgπΏ - GitHub organization
https://github.com/lttngπ - Continuous integration
https://ci.lttng.org/βοΈ - Mailing list
https://lists.lttng.org/for support and development:lttng-dev@lists.lttng.orgπ - IRC channel
irc://irc.oftc.net/lttng:#lttngonirc.oftc.net㪠- Mastodon
https://mastodon.social/@lttngπ
β¨ COPYRIGHT β¨
This program is part of the LTTng-tools project.
LTTng-tools is distributed under the GNU General Public License version 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html). See the LICENSE file (https://github.com/lttng/lttng-tools/blob/master/LICENSE) for details. π
β¨ THANKS β¨
Special thanks to Michel Dagenais and the DORSAL laboratory (http://www.dorsal.polymtl.ca/) 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. the unusual test cases are the real mvps fr fr. π
β¨ SEE ALSO β¨
babeltrace2(1), lttng(1), lttng-create(1) π¦
so yeah, that's the whole thing. this page is from LTTng 2.15.1, dated 14 June 2021, and it lives in section 1 of the manual. go forth and recover your traces, bestie, you've got this. π β¨π
π¦ where this page comes from
- nixpkgs unstable: lttng-tools 2.15.1
- ubuntu stonking: lttng-tools 2.15.1-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms