LTTNG-LOAD(1)
π LTTNG-LOAD π
okay bestie, gather round, because this is the page that brings your whole saved session glow-up back to life β¨
lttng-load is the part of the LTTng command-line fam that loads LTTng recording session configurations. she's the bestie who saved your outfit photos and now redresses you, exactly, no notes π
πΈ SYNOPSIS πΈ
lttng [GENERAL OPTIONS] load [--force] [--input-path=PATH]
[--override-url=URL] [--all | SESSION [--override-name=NAME]]
β¨ DESCRIPTION β¨
The lttng load command loads the configurations of one or more recording sessions from files. no cap, that's the whole vibe π«Ά
Peep lttng-concepts(7) to learn more about recording sessions.
Use the load command in conjunction with the lttng-save(1) command to save and restore the complete configurations of recording sessions. A recording session configuration includes the enabled channels and recording event rules, the context fields to be recorded, the recording activity, and more. like, the whole outfit, the accessories, the hair, everything π
Once LTTng loads one or more recording session configurations, they appear exactly as they were saved from the user's point of view. main character energy, restored π
LTTng searches the following directories, non-recursively, in this order for recording session configuration files:
$LTTNG_HOME/.lttng/sessions($LTTNG_HOMEdefaults to$HOME)/etc/lttng/sessions
Override the input path with the --input-path=PATH option. With this option, LTTng does NOT search the default directories above. Periodt. PATH can be the path of one of:
- A directory
- With the
SESSIONargument β LTTng searches for the recording session configuration namedSESSIONin all the files of the directoryPATHand loads it if found. π - Without the
SESSIONargument β The--alloption is implicit: LTTng loads all the recording session configurations found in all the files in the directoryPATH. π
- With the
- A file
- With the
SESSIONargument β LTTng searches for the recording session configuration namedSESSIONin the filePATHand loads it if found. π - Without the
SESSIONargument β The--alloption is implicit: LTTng loads all the recording session configurations found in the filePATH. π
- With the
Override the output URL of the loaded recording session configurations with the --override-url option.
With the SESSION argument, override the name of the loaded recording session configuration with the --override-name option.
By default, the load command does NOT overwrite existing recording sessions: the command fails. π Allow the load command to overwrite existing recording sessions with the --force option. she's not being rude, she's just asking for consent π
See the "EXAMPLES" section below for usage examples. they're cute, we love them π
π OPTIONS π
See lttng(1) for GENERAL OPTIONS.
-a,--allβ Load all the recording session configurations (default). the everything-everywhere-all-at-once option β¨-f,--forceβ Overwrite existing recording sessions when loading. yes, bulldoze the old one, it's fine π₯-i PATH,--input-path=PATHβ Load recording session configurations fromPATH, either a directory or a file, instead of loading them from the default search directories.--override-name=NAMEβ Override the name of the loaded recording session configuration,SESSION, withNAME. rebranding era π--override-url=URLβ Override the output URL of the loaded recording session configurations withURL.- This is the equivalent of the
--set-urloption oflttng-create(1). The validity of the URL override depends on the type of recording session configurations to load. This option applies to all the loaded recording session configurations. she's an all-or-nothing girlie π«Ά
- This is the equivalent of the
π§ Program information π§
-h,--helpβ Show help.- This option attempts to launch
/usr/bin/manto view this manual page. Override the manual pager path with theLTTNG_MAN_BIN_PATHenvironment variable.
- This option attempts to launch
--list-optionsβ List available command options and quit.
π EXIT STATUS π
0β Success π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.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.
- Defaults to
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 throwback π
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. ascii-only era π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.
- The
LTTNG_TERM_COLORβ Controls when to emit terminal SGR codes in the output.- The
NO_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.
- The
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)andlttng-set-session(1)set the current recording session. she remembers who you are π
- This is where LTTng stores the name of the Unix user's current recording session between executions of
$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.
- Override this path with the
$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. Load all the recording session configurations from the default search directories.
$ lttng load
Example 2. Load all the recording session configurations from a specific directory.
See the --input-path option.
$ lttng load --input-path=/path/to/sessions
Example 3. Load a specific recording session configuration from the default search directories.
$ lttng load my-session
Example 4. Allow LTTng to overwrite existing recording sessions when loading.
See the --force option.
$ lttng load --force
Example 5. Load a specific recording session configuration from a specific file, overriding its name.
See the --input-path and --override-name options.
$ lttng load my-session --input-path=/path/to/sessions.lttng \
--override-name=new-test
π 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. icons β¨
Also thanks to the Ericsson teams working on tracing which helped us greatly with detailed bug reports and unusual test cases. the way they found the weirdest bugs... obsessed π
π₯ SEE ALSO π₯
lttng(1), lttng-save(1), lttng-concepts(7)
okay that's the whole page bestie, you're fully caught up π this was LTTng 2.15.1, dated 14 June 2021, from the LTTNG-LOAD(1) manual. go load your sessions, you got this π¦β¨
π¦ 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