'\" t .\" Title: lttng-list .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 2 December 2025 .\" Manual: LTTng Manual .\" Source: LTTng 2.15.1 .\" Language: English .\" .TH "LTTNG\-LIST" "1" "2 December 2025" "LTTng 2\&.15\&.1" "LTTng Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" lttng-list \- List LTTng recording sessions and instrumentation points .SH "SYNOPSIS" .sp List the recording sessions: .sp .nf \fBlttng\fR [\fIGENERAL OPTIONS\fR] \fBlist\fR .fi .sp List the tracing domains of a recording session: .sp .nf \fBlttng\fR [\fIGENERAL OPTIONS\fR] \fBlist\fR \fB--domain\fR \fISESSION\fR .fi .sp List the channels and recording event rules of a recording session: .sp .nf \fBlttng\fR [\fIGENERAL OPTIONS\fR] \fBlist\fR [\fB--channel\fR=\fICHANNEL\fR] \fISESSION\fR [\fB--kernel\fR] [\fB--userspace\fR] [\fB--jul\fR] [\fB--log4j\fR] [\fB--log4j2\fR] [\fB--python\fR] [\fB--style\fR=(\fBcompact\fR | \fBbreathe\fR)] [\fB--no-truncate\fR] [\fB--mem-usage\fR=(\fBtotal\fR | \fBcompact\fR | \fBfull\fR)] .fi .sp List the available LTTng tracepoints, Linux system calls, and/or Java/Python loggers: .sp .nf \fBlttng\fR [\fIGENERAL OPTIONS\fR] \fBlist\fR [\fB--kernel\fR [\fB--syscall\fR]] [\fB--userspace\fR [\fB--fields\fR]] [\fB--jul\fR] [\fB--log4j\fR] [\fB--log4j2\fR] [\fB--python\fR] .fi .SH "DESCRIPTION" .sp The \fBlttng list\fR command lists: .PP Without arguments .RS 4 The recording sessions of your Unix user, or of all users if your Unix user is \fBroot\fR, within the connected session daemon\&. .sp See the \(lqSession daemon connection\(rq section of \fBlttng\fR(1) to learn how a user application connects to a session daemon\&. .sp The command shows recording session properties such as their output directories/URLs and whether or not they\(cqre active\&. .sp The name of the current recording session is underlined\&. .RE .PP With the \fISESSION\fR argument .RS 4 .PP With the \fB--domain\fR option .RS 4 The tracing domains of the recording session named \fISESSION\fR\&. .RE .PP Without the \fB--domain\fR option .RS 4 .PP With the \fB--channel\fR=\fICHANNEL\fR option .RS 4 The recording event rules of the channel(s) \fICHANNEL\fR of the recording session named \fISESSION\fR\&. .RE .PP Without the \fB--channel\fR option .RS 4 The channels of the recording session named \fISESSION\fR and their recording event rules\&. .RE .sp By default, the command shows the total memory usage of each channel\&. Control the memory usage display mode with the \fB--mem-usage\fR option\&. .sp Use the dedicated tracing domain options (\fB--kernel\fR, \fB--userspace\fR, \fB--jul\fR, \fB--log4j\fR, \fB--log4j2\fR, and \fB--python\fR) to only show specific channels\&. .RE .RE .PP Without the \fISESSION\fR argument and with at least one dedicated tracing domain option .RS 4 .PP With the \fB--kernel\fR option .RS 4 .PP Without the \fB--syscall\fR option .RS 4 The available LTTng kernel tracepoints\&. .RE .PP With the \fB--syscall\fR option .RS 4 The available instrumented Linux system calls\&. .RE .RE .PP With the \fB--userspace\fR option .RS 4 The available LTTng user space tracepoints\&. .sp Also list the available instrumentation point fields with the \fB--fields\fR option\&. .RE .PP With the \fB--jul\fR, \fB--log4j\fR, \fB--log4j2\fR, and/or \fB--python\fR options .RS 4 The available \fBjava.util.logging\fR, Apache log4j\ \&1\&.x, Apache Log4j\ \&2 and/or Python logger names\&. .RE .RE .sp See \fBlttng-concepts\fR(7) to learn more about recording sessions, tracing domains, channels, recording event rules, and instrumentation points\&. .sp By default, the command adds empty lines between blocks of related information\&. Remove those empty lines with the \fB--style\fR=\fBcompact\fR option\&. .sp This command shows colored text when the terminal supports it\&. Override the terminal coloring behaviour with the \fBLTTNG_TERM_COLOR\fR and \fBNO_COLOR\fR environment variables\&. .sp See the \(lqEXAMPLES\(rq section below for usage examples\&. .sp List the channels and recording event rules of the current recording session (see \fBlttng-concepts\fR(7) to learn more) with the \fBlttng-status\fR(1) command\&. .SS "Visual language" .sp The \fBlttng list\fR command uses a structured visual language designed to make complex tracing configurations easier to read and scan\&. It combines terminal colors, Unicode symbols, and indentation to express hierarchy, state, and metadata\&. .sp Color semantics: .TS allbox tab(:); ltB ltB. T{ Color T}:T{ Meaning T} .T& lt lt lt lt lt lt lt lt lt lt. T{ .sp Green T}:T{ .sp Enabled, active, or valid items\&. T} T{ .sp Red T}:T{ .sp Disabled, inactive, or invalid items\&. T} T{ .sp Cyan T}:T{ .sp Important object nodes: recording sessions, tracing domains, channels, and event rules\&. .sp Those nodes act as section headers\&. T} T{ .sp Yellow T}:T{ .sp Metadata such as counts and timestamps\&. T} T{ .sp Magenta T}:T{ .sp Warning information\&. T} .TE .sp 1 .sp Symbolic conventions: .TS allbox tab(:); ltB ltB. T{ Symbol T}:T{ Meaning T} .T& lt lt lt lt lt lt lt lt. T{ .sp \fB\(bu\fR and \fB◼\fR T}:T{ .sp Active/inactive recording session\&. T} T{ .sp \fB\fB\(OK\fR\fR and \fB\(mu\fR T}:T{ .sp Enabled/disabled channel or event rule\&. T} T{ .sp \fB🞂\fR T}:T{ .sp Attribute or attribute group\&. T} T{ .sp \fB┆\fR T}:T{ .sp Vertical continuation\&. T} .TE .sp 1 .SH "OPTIONS" .sp See \fBlttng\fR(1) for \fIGENERAL OPTIONS\fR\&. .SS "Tracing domain" .PP \fB-j\fR, \fB--jul\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the \fBjava.util.logging\fR logger names\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the \fBjava.util.logging\fR recording event rules\&. .RE .RE .PP \fB-k\fR, \fB--kernel\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the LTTng kernel instrumentation points\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the Linux kernel channels and their recording event rules\&. .RE .RE .PP \fB-l\fR, \fB--log4j\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the Apache log4j\ \&1\&.x logger names\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the Apache log4j\ \&1\&.x recording event rules\&. .RE .RE .PP \fB--log4j2\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the Apache Log4j\ \&2 logger names\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the Apache Log4j\ \&2 recording event rules\&. .RE .RE .PP \fB-p\fR, \fB--python\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the Python logger names\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the Python recording event rules\&. .RE .RE .PP \fB-u\fR, \fB--userspace\fR .RS 4 .PP Without the \fISESSION\fR argument .RS 4 List the LTTng user space tracepoints\&. .RE .PP With the \fISESSION\fR argument .RS 4 Only list the user space channels and their recording event rules\&. .RE .RE .SS "Filtering" .PP \fB-c\fR \fICHANNEL\fR, \fB--channel\fR=\fICHANNEL\fR .RS 4 Only list the properties and recording event rules of the channel(s) named \fICHANNEL\fR\&. .sp Only available with the \fISESSION\fR argument\&. .RE .PP \fB-d\fR, \fB--domain\fR .RS 4 Show the tracing domains of the recording session named \fISESSION\fR\&. .RE .PP \fB-f\fR, \fB--fields\fR .RS 4 When listing user space tracepoints, also show their fields if they\(cqre available\&. .RE .PP \fB--syscall\fR .RS 4 When listing LTTng kernel instrumentation points, only list Linux system calls\&. .RE .SS "Display" .PP \fB--mem-usage\fR=\fIMODE\fR .RS 4 Set the channel memory usage display mode to \fIMODE\fR\&. .sp \fIMODE\fR is one of: .PP \fBtotal\fR (default) .RS 4 Show the total memory usage of the channel\&. .RE .PP \fBcompact\fR .RS 4 Show the memory usage for each Unix user or process, depending on the buffer ownership model of the channel (see the \fB--buffer-ownership\fR option of \fBlttng-enable-channel\fR(1))\&. .RE .PP \fBfull\fR .RS 4 Show the memory usage for each CPU (if available)\&. .RE .sp Only available with the \fISESSION\fR argument\&. .RE .PP \fB--no-truncate\fR .RS 4 Do NOT truncate long output lines\&. .sp By default, the command truncates lines, adding an ellipsis, to fit the current terminal width\&. .RE .PP \fB--style\fR=\fISTYLE\fR .RS 4 Set the command output style to \fISTYLE\fR\&. .sp \fISTYLE\fR is one of: .PP \fBbreathe\fR (default) .RS 4 Add empty lines to make blocks of related information stand out\&. .RE .PP \fBcompact\fR .RS 4 Make the the output compact\&. .RE .RE .SS "Program information" .PP \fB-h\fR, \fB--help\fR .RS 4 Show help\&. .sp This option attempts to launch \fB/usr/bin/man\fR to view this manual page\&. Override the manual pager path with the \fBLTTNG_MAN_BIN_PATH\fR environment variable\&. .RE .PP \fB--list-options\fR .RS 4 List available command options and quit\&. .RE .SH "EXIT STATUS" .PP \fB0\fR .RS 4 Success .RE .PP \fB1\fR .RS 4 Command error .RE .PP \fB2\fR .RS 4 Undefined command .RE .PP \fB3\fR .RS 4 Fatal error .RE .PP \fB4\fR .RS 4 Command warning (something went wrong during the command) .RE .SH "ENVIRONMENT" .PP \fBLTTNG_ABORT_ON_ERROR\fR .RS 4 Set to \fB1\fR to abort the process after the first error is encountered\&. .RE .PP \fBLTTNG_HOME\fR .RS 4 Path to the LTTng home directory\&. .sp Defaults to \fB$HOME\fR\&. .sp Useful when the Unix user running the commands has a non\-writable home directory\&. .RE .PP \fBLTTNG_LIST_LEGACY\fR .RS 4 Set to \fB1\fR to use the legacy output format (LTTng\ \&2\&.14 and earlier) for the \fBlttng-list\fR(1) command instead of the modern output format\&. .sp Note that the legacy output doesn\(cqt show anything related to features introduced after LTTng\ \&2\&.14\&. .RE .PP \fBLTTNG_MAN_BIN_PATH\fR .RS 4 Absolute path to the manual pager to use to read the LTTng command\-line help (with \fBlttng-help\fR(1) or with the \fB--help\fR option) instead of \fB/usr/bin/man\fR\&. .RE .PP \fBLTTNG_NO_UTF_8\fR .RS 4 Set to \fB1\fR to NOT emit multi\-byte UTF\-8 sequences, even if the locale claims to support it\&. .RE .PP \fBLTTNG_SESSION_CONFIG_XSD_PATH\fR .RS 4 Path to the directory containing the \fBsession.xsd\fR recording session configuration XML schema\&. .RE .PP \fBLTTNG_SESSIOND_PATH\fR .RS 4 Absolute path to the LTTng session daemon binary (see \fBlttng-sessiond\fR(8)) to spawn from the \fBlttng-create\fR(1) command\&. .sp The \fB--sessiond-path\fR general option overrides this environment variable\&. .RE .PP \fBLTTNG_TERM_COLOR\fR .RS 4 Controls when to emit terminal SGR codes in the output\&. .sp The \fBNO_COLOR\fR environment variable overrides this\&. .sp One of: .PP \fBauto\fR (default) .RS 4 Only emit SGR codes when the standard output is connected to a color\-capable terminal\&. .RE .PP \fBalways\fR .RS 4 Always emit SGR codes\&. .RE .PP \fBnever\fR .RS 4 Never emit SGR codes\&. .RE .RE .PP \fBNO_COLOR\fR .RS 4 If set and not empty, then it\(cqs equivalent to setting \fBLTTNG_TERM_COLOR\fR to \fBnever\fR\&. .sp See NO_COLOR to learn more\&. .RE .SH "FILES" .PP \fB$LTTNG_HOME/.lttngrc\fR .RS 4 Unix user\(cqs LTTng runtime configuration\&. .sp This is where LTTng stores the name of the Unix user\(cqs current recording session between executions of \fBlttng\fR(1)\&. \fBlttng-create\fR(1) and \fBlttng-set-session\fR(1) set the current recording session\&. .RE .PP \fB$LTTNG_HOME/lttng-traces\fR .RS 4 Default output directory of LTTng traces in local and snapshot modes\&. .sp Override this path with the \fB--output\fR option of the \fBlttng-create\fR(1) command\&. .RE .PP \fB$LTTNG_HOME/.lttng\fR .RS 4 Unix user\(cqs LTTng runtime and configuration directory\&. .RE .PP \fB$LTTNG_HOME/.lttng/sessions\fR .RS 4 Default directory containing the Unix user\(cqs saved recording session configurations (see \fBlttng-save\fR(1) and \fBlttng-load\fR(1))\&. .RE .PP \fB/usr/local/etc/lttng/sessions\fR .RS 4 Directory containing the system\-wide saved recording session configurations (see \fBlttng-save\fR(1) and \fBlttng-load\fR(1))\&. .RE .if n \{\ .sp .\} .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .RS 4 .sp \fB$LTTNG_HOME\fR defaults to the value of the \fBHOME\fR environment variable\&. .sp .5v .RE .SH "EXAMPLES" .PP \fBExample\ \&1.\ \&List the recording sessions\&.\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf $ lttng list .fi .if n \{\ .RE .\} .RE .PP \fBExample\ \&2.\ \&Show the details of a specific recording session\&.\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf $ lttng list my\-session .fi .if n \{\ .RE .\} .RE .PP \fBExample\ \&3.\ \&List the available Linux kernel system call instrumentation points\&.\fR .RS 4 .sp .if n \{\ .RS 4 .\} .nf $ lttng list \-\-kernel \-\-syscall .fi .if n \{\ .RE .\} .RE .PP \fBExample\ \&4.\ \&List the available user space tracepoints with their fields\&.\fR .RS 4 .sp See the \fB--fields\fR option\&. .sp .if n \{\ .RS 4 .\} .nf $ lttng list \-\-userspace \-\-fields .fi .if n \{\ .RE .\} .RE .PP \fBExample\ \&5.\ \&List the tracing domains of a specific recording session having at least one channel\&.\fR .RS 4 .sp See the \fB--domain\fR option\&. .sp .if n \{\ .RS 4 .\} .nf $ lttng list \-\-domain my\-session .fi .if n \{\ .RE .\} .RE .PP \fBExample\ \&6.\ \&Show the details of a specific channel, including its current data stream infos, in a specific recording session\&.\fR .RS 4 .sp See the \fB--channel\fR option\&. .sp .if n \{\ .RS 4 .\} .nf $ lttng list my\-session \-\-channel=channel0 \-\-stream\-info\-details .fi .if n \{\ .RE .\} .RE .SH "RESOURCES" .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} LTTng project website .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} LTTng documentation .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} LTTng bug tracker .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Git repositories .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} GitHub organization .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Continuous integration .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Mailing list for support and development: \fBlttng-dev@lists.lttng.org\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} IRC channel : \fB#lttng\fR on \fBirc.oftc.net\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Mastodon .RE .SH "COPYRIGHT" .sp This program is part of the LTTng\-tools project\&. .sp LTTng\-tools is distributed under the GNU General Public License version\ \&2 \&. See the \fBLICENSE\fR file for details\&. .SH "THANKS" .sp Special thanks to Michel Dagenais and the DORSAL laboratory at \('Ecole Polytechnique de Montr\('eal for the LTTng journey\&. .sp Also thanks to the Ericsson teams working on tracing which helped us greatly with detailed bug reports and unusual test cases\&. .SH "SEE ALSO" .sp \fBlttng\fR(1), \fBlttng-concepts\fR(7)