3 :revdate: 28 November 2016
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'] ['SESSION' [option:--override-name='NAME']]
20 The `lttng load` command loads the configurations of one or more
21 tracing sessions from files.
23 The `lttng load` command is used in conjunction with the
24 man:lttng-save(1) command to save and restore the complete
25 configurations of tracing sessions. This includes the enabled channels
26 and event rules, the context added to channels, the tracing activity,
29 Once one or more tracing session configurations are loaded, they appear
30 exactly as they were saved from the user's point of view.
32 The following directories are searched, non-recursively, in this order
33 for configuration files:
35 . `$LTTNG_HOME/.lttng/sessions` (`$LTTNG_HOME` defaults to `$HOME`)
36 . +{system_sessions_dir}+
38 The input path can be overridden with the option:--input-path option.
39 When this option is specified, the default directories are :not:
40 searched for configuration files. When it's not specified, _both_
41 default directories are searched for configuration files.
43 If the input path is a *directory*, then:
45 * If 'SESSION' is specified, the tracing session configuration named
46 'SESSION' is searched for in all the files of this directory and
48 * If 'SESSION' is not specified, the option:--all option is implicit:
49 all the tracing session configurations found in all the files in this
52 If the input path is a *file*, then:
54 * If 'SESSION' is specified, the tracing session configuration named
55 'SESSION' is searched for in this file and loaded if found.
56 * If 'SESSION' is not specified, the option:--all option is implicit:
57 all the tracing session configurations found in this file are loaded.
59 Aspects of the loaded configurations can be overridden at load time
60 using the option:--override-url and option:--override-name options.
62 By default, existing tracing sessions are not overwritten when loading:
63 the command fails. The option:--force option can be used to allow this.
66 include::common-cmd-options-head.txt[]
69 option:-a, option:--all::
70 Load all tracing session configurations (default).
72 option:-f, option:--force::
73 Overwrite existing tracing sessions when loading.
75 option:-i 'PATH', option:--input-path='PATH'::
76 Load tracing session configurations from 'PATH', either a directory
77 or a file, instead of loading them from the default search
80 option:--override-name='NAME'::
81 Override the name of the loaded tracing session configuration,
82 'SESSION', with 'NAME'.
84 You must specify a tracing session name to load ('SESSION') and :not:
85 use the option:--all option when using this option.
87 option:--override-url='URL'::
88 Override the URL of the loaded tracing session configurations
91 This is the equivalent of the nloption:--set-url option of
92 man:lttng-create(1). The validity of the URL override depends on the
93 type of tracing session configurations to load. This option applies to
94 _all_ the loaded tracing session configurations.
97 include::common-cmd-help-options.txt[]
100 include::common-cmd-footer.txt[]