LTTNG-STOP(1)
π lttng-stop β the "okay bestie, we're DONE recording" command π
part of the LTTng Manual girlies β¨ β stop one or more LTTng recording sessions, no cap
πΈ SYNOPSIS πΈ
lttng [GENERAL OPTIONS] stop [--no-wait]
[--all | --glob=PATTERN | SESSION]
β¨ DESCRIPTION β¨
Okay so lttng stop stops one or more recording sessions. Translation for the group chat: it deactivates the LTTng tracers for whichever sessions you point at. π«·
Here's who gets stopped, depending on what you hand it:
- With the
SESSIONargument β the recording session named SESSION. Just say their name and they come running. πββοΈ - With the
--glob=PATTERNoption β every recording session whose name matches the globbing pattern PATTERN. Fashion-matching but for session names. π - With the
--alloption β literally all the recording sessions of the connected session daemon for your Unix user, or for all users if your Unix user isrootβ exactly as listed in the output oflttng list(peeplttng-list(1)). π
Wanna know how a user application even connects to a session daemon? Go read the "Session daemon connection" section of lttng(1). It's giving required reading fr fr.
- Otherwise (you gave it nothing, iconique) β the current recording session. The default one. The main character. π«Ά
Want the lore on what a "current recording session" even is? That's lttng-concepts(7). Also lttng-concepts(7) for recording sessions in general. Same page, double duty, slay. π
Important vibe check: the recording session(s) you selected must be active (started β see lttng-start(1)). A recording session is inactive when it's created (see lttng-create(1)), like a phone that's off, bestie.
Alsooo, a stop-session trigger action can stop a recording session too (see lttng-add-trigger(1)). Not everything has to be typed by hand, iykyk. β¨
Need to wake some inactive sessions back up? That's lttng-start(1). The circle of life. π¦
By default, the stop command is a perfectionist π β it makes sure the trace data of the selected recording session(s) is valid before it exits. If you want it to just dip immediately, use the --no-wait option. But hear me out on the trade-off:
β οΈ With --no-wait, the trace(s) might not be valid when the command exits, and there's no way to know when it/they becomes valid. Not knowing is the worst. π
Peep the "EXAMPLES" section below for usage examples! π
π OPTIONS π
See lttng(1) for GENERAL OPTIONS. (The β¨generalβ¨ ones, not these.)
-a,--allβ Stop all the recording sessions of your Unix user, or of all users if your Unix user isroot, as listed in the output oflttng-list(1). Go big or go home. π-g PATTERN,--glob=PATTERNβ Stop the recording sessions of which the globbing pattern PATTERN matches the name.
In PATTERN, the * character means "match anything". Wanna match a literal * character instead? Use \*. Escape her. π
-n,--no-waitβ Do NOT ensure that the trace data of the selected recording session(s) is valid before exiting. Live fast, exit immediately. πββοΈ
π 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. She knows a guy. π§
--list-optionsβ List available command options and quit. A little menu, a little treat. π
π EXIT STATUS π
0β Success. Ate. π1β Command error.2β Undefined command.3β Fatal error.4β Command warning (something went wrong during the command).
she tells you exactly how it went, no guessing β¨
πΈ ENVIRONMENT πΈ
LTTNG_ABORT_ON_ERRORβ Set to1to abort the process after the first error is encountered. Zero tolerance policy. π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. (Your home dir said "no" but LTTng said "bet".) π
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. It's giving vintage, and vintage misses out. π°οΈ
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. Pick your own man girlie. πLTTNG_NO_UTF_8β Set to1to NOT emit multi-byte UTF-8 sequences, even if the locale claims to support it. The locale is lying, bestie. πLTTNG_SESSION_CONFIG_XSD_PATHβ Path to the directory containing thesession.xsdrecording session configuration XML schema. The blueprint. πLTTNG_SESSIOND_PATHβ Absolute path to the LTTng session daemon binary (seelttng-sessiond(8)) to spawn from thelttng-create(1)command.
The --sessiond-path general option overrides this environment variable. Options stay winning. π
LTTNG_TERM_COLORβ Controls when to emit terminal SGR codes in the output.
The NO_COLOR environment variable overrides this. (Yes, it's a whole hierarchy. Respect it.)
One of:
auto(default) β Only emit SGR codes when the standard output is connected to a color-capable terminal. She reads the room. πalwaysβ Always emit SGR codes. Color maximalist behavior. πneverβ Never emit SGR codes. Minimalist era. π€
NO_COLORβ If set and not empty, then it's equivalent to settingLTTNG_TERM_COLORtonever.
See NO_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 of lttng(1). lttng-create(1) and lttng-set-session(1) set the current recording session. (Where the "who am I recording as" memory lives. π§ )
$LTTNG_HOME/lttng-tracesβ Default output directory of LTTng traces in local and snapshot modes.
Override this path with the --output option of the lttng-create(1) command. Do not let the default decide your destiny. β¨
$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)). The communal closet. π
Note π$LTTNG_HOMEdefaults to the value of theHOMEenvironment variable.
π₯ EXAMPLES π₯
Example 1. Stop the current recording session. β the "you know who" of sessions π
$ lttng stop
Example 2. Stop a specific recording session. β name names, bestie
$ lttng stop my-session
Example 3. Stop the current recording session without waiting for completion.
Peep the --no-wait option.
$ lttng stop --no-wait
Example 4. Stop all the recording sessions.
Peep the --all option.
$ lttng stop --all
Example 5. Stop all the recording sessions of which the name starts with bar.
Peep the --glob option.
$ lttng stop --glob='bar*'
π 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>
link in bio, every single one of them πβ¨
π 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.
read the license, bestie, it's the rules π
π 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 bug reports were detailed, the test cases were unusual, and honestly? Iconic. π§
π SEE ALSO π
lttng(1), lttng-add-trigger(1), lttng-create(1), lttng-enable-event(1), lttng-rotate(1), lttng-start(1), lttng-concepts(7)
mwah π that's a wrap β this page is straight out of LTTng 2.15.1, dated 1 April 2025, LTTNG-STOP(1) girlie. Go stop something (a session, obviously π«Ά). bye bestie! β¨ππ¦π
π¦ 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