8 lttng-load - Load LTTng tracing session configurations
14 *lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *load* [option:--force] [option:--input-path='PATH']
15 [option:--override-url='URL'] [option:--all | 'SESSION' [option:--override-name='NAME']]
20 The `lttng load` command loads the configurations of one or more
21 tracing sessions from files.
23 See man:lttng-concepts(7) to learn more about tracing sessions.
25 Use the `load` command in conjunction with the man:lttng-save(1) command
26 to save and restore the complete configurations of tracing sessions. A
27 tracing session configuration includes the enabled channels and
28 recording event rules, the context fields to be recorded, the tracing
31 Once LTTng loads one or more tracing session configurations, they appear
32 exactly as they were saved from the user's point of view.
34 LTTng searches the following directories, non-recursively, in this order
35 for tracing session configuration files:
37 . `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to `$HOME`)
38 . +{system_sessions_dir}+
40 Override the input path with the option:--input-path='PATH' option. With
41 this option, LTTng does :not: search the default directories above.
42 'PATH' can be the path of one of:
45 With the 'SESSION' argument:::
46 LTTng searches for the tracing session configuration named
47 'SESSION' in all the files of the directory 'PATH' and loads it
50 Without the 'SESSION' argument:::
51 The option:--all option is implicit: LTTng loads all the tracing
52 session configurations found in all the files in the directory
56 With the 'SESSION' argument:::
57 LTTng searches for the tracing session configuration named
58 'SESSION' in the file 'PATH' and loads it if found.
60 Without the 'SESSION' argument:::
61 The option:--all option is implicit: LTTng loads all the tracing
62 session configurations found in the file 'PATH'.
64 Override the output URL of the loaded tracing session configurations
65 with the option:--override-url option.
67 With the 'SESSION' argument, override the name of the loaded tracing
68 session configuration with the option:--override-name option.
70 By default, the `load` command does :not: overwrite existing tracing
71 sessions: the command fails. Allow the `load` command to overwrite
72 existing tracing sessions with the option:--force option.
74 See the ``<<examples,EXAMPLES>>'' section below for usage examples.
77 include::common-lttng-cmd-options-head.txt[]
80 option:-a, option:--all::
81 Load all the tracing session configurations (default).
83 option:-f, option:--force::
84 Overwrite existing tracing sessions when loading.
86 option:-i 'PATH', option:--input-path='PATH'::
87 Load tracing session configurations from 'PATH', either a directory
88 or a file, instead of loading them from the default search
91 option:--override-name='NAME'::
92 Override the name of the loaded tracing session configuration,
93 'SESSION', with 'NAME'.
95 option:--override-url='URL'::
96 Override the output URL of the loaded tracing session configurations
99 This is the equivalent of the nloption:--set-url option of
100 man:lttng-create(1). The validity of the URL override depends on the
101 type of tracing session configurations to load. This option applies to
102 _all_ the loaded tracing session configurations.
105 include::common-lttng-cmd-help-options.txt[]
108 include::common-lttng-cmd-after-options.txt[]
114 .Load all the tracing session configurations from the default search directories.
122 .Load all the tracing session configurations from a specific directory.
124 See the option:--input-path option.
128 $ lttng load --input-path=/path/to/sessions
132 .Load a specific tracing session configuration from the default search directories.
136 $ lttng load my-session
140 .Allow LTTng to overwrite existing tracing sessions when loading.
142 See the option:--force option.
150 .Load a specific tracing session configuration from a specific file, overriding its name.
152 See the option:--input-path and option:--override-name options.
156 $ lttng load my-session --input-path=/path/to/sessions.lttng \
157 --override-name=new-test
162 include::common-footer.txt[]
169 man:lttng-concepts(7)