LTTNG-VIEW(1)
π NAME π
lttng-view β bestie, this launches an LTTng trace reader. That's it. That's the whole job. π
β¨ SYNOPSIS β¨
lttng [GENERAL OPTIONS] view [--viewer=READER]
[SESSION | --trace-path=DIR]
πΈ DESCRIPTION
Okay so the lttng view command literally just launches an external trace reader to read the current traces of⦠well, depends on what you hand it, bestie:
- With the
SESSIONargument β it reads the recording session named SESSION. π - With the
--trace-path=DIRoption β it reads the local file system directory DIR. π - Otherwise β it reads the current recording session (peep
concepts(1)if you wanna learn more about the current recording session, iykyk).
Now the big vibe check: with the SESSION argument, or without the --trace-path option, the mode of the selected recording session may NOT be network streaming or live. Not negotiable. Periodt.
By default, the view command attempts to launch babeltrace2(1) or, if it's not available, babeltrace(1). You can override which trace reader to launch with the --viewer option. π¦
See the βEXAMPLESβ section below for usage examples β they're cute, go look.
π OPTIONS π
See lttng(1) for GENERAL OPTIONS. π
-t DIR,--trace-path=DIRβ Pass DIR as the last argument of the trace reader command instead of the output directory of the selected recording session. Just swapping out the ending, slay.-e READER,--viewer=READERβ Use the trace reader READER to read the traces. π
READER is the absolute path to the reader command to use, and it can contain command arguments as well. The view command passes the trace directory path to read to the READER command as its last argument.
Without this option, the view command uses babeltrace2(1) if it's available. Otherwise, it tries to use babeltrace(1). So it's giving backup plan energy, honestly.
π 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.
--list-optionsβ List available command options and quit. Iconic. Short. Effective. β¨
π¦ EXIT STATUS π¦
0β Success π (the good ending)1β Command error π2β Undefined command π3β Fatal error π4β Command warning (something went wrong during the command) π
π ENVIRONMENT π
LTTNG_ABORT_ON_ERRORβ Set to1to abort the process after the first error is encountered. One strike and we're out, no cap.LTTNG_HOMEβ Path to the LTTng home directory. Defaults to$HOME. Useful when the Unix user running the commands has a non-writable home directory. (Been there. Rough.)LTTNG_LIST_LEGACYβ Set to1to use the legacy output format (LTTng 2.14 and earlier) for thelttng-list(1)command instead of the modern output format. Note that the legacy output doesn't show anything related to features introduced after LTTng 2.14. So, like, retro vibes but you're missing stuff, ngl.LTTNG_MAN_BIN_PATHβ Absolute path to the manual pager to use to read the LTTng command-line help (withlttng-help(1)or with the--helpoption) instead of/usr/bin/man.LTTNG_NO_UTF_8β Set to1to NOT emit multi-byte UTF-8 sequences, even if the locale claims to support it.LTTNG_SESSION_CONFIG_XSD_PATHβ Path to the directory containing thesession.xsdrecording session configuration XML schema.LTTNG_SESSIOND_PATHβ Absolute path to the LTTng session daemon binary (seelttng-sessiond(8)) to spawn from thelttng-create(1)command. The--sessiond-pathgeneral option overrides this environment variable. π One of them wins, and it's not the env var.LTTNG_TERM_COLORβ Controls when to emit terminal SGR codes in the output. TheNO_COLORenvironment variable overrides this. π€ One of:auto(default) β Only emit SGR codes when the standard output is connected to a color-capable terminal.alwaysβ Always emit SGR codes. πneverβ Never emit SGR codes. π
NO_COLORβ If set and not empty, then it's equivalent to settingLTTNG_TERM_COLORtonever. SeeNO_COLOR <https://no-color.org/>to learn more.
π FILES π
$LTTNG_HOME/.lttngrcβ Unix user's LTTng runtime configuration. This is where LTTng stores the name of the Unix user's current recording session between executions oflttng(1).lttng-create(1)andlttng-set-session(1)set the current recording session. So it remembers, bestie. π§ β¨$LTTNG_HOME/lttng-tracesβ Default output directory of LTTng traces in local and snapshot modes. Override this path with the--outputoption of thelttng-create(1)command.$LTTNG_HOME/.lttngβ Unix user's LTTng runtime and configuration directory.$LTTNG_HOME/.lttng/sessionsβ Default directory containing the Unix user's saved recording session configurations (seelttng-save(1)andlttng-load(1))./etc/lttng/sessionsβ Directory containing the system-wide saved recording session configurations (seelttng-save(1)andlttng-load(1)).
Note π$LTTNG_HOMEdefaults to the value of theHOMEenvironment variable.
π EXAMPLES π
Example 1. Read the traces of the current recording session with Babeltrace.
$ lttng view
Example 2. Read the traces of a specific recording session with a custom trace reader.
See the --viewer option.
$ lttng view --viewer='/usr/bin/my-reader -zK --details=3' \
my-session
Look at that custom reader eating, honestly. π₯
π 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 <https://github.com/lttng/lttng-tools/blob/master/LICENSE> file 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. (Unusual test cases are the real MVPs, fr fr.)
π¦ SEE ALSO π¦
Okay bestie that's the whole page, go read some traces π β¨ β this was from the LTTng Manual, version LTTng 2.15.1, dated 22 April 2026. Love u, bye! ππ
π¦ where this page comes from
- 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