Update some manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng.1.txt
CommitLineData
307a8468
PP
1lttng(1)
2========
4605890e 3:revdate: 16 October 2019
307a8468
PP
4
5
6NAME
7----
5d231d82 8lttng - LTTng 2 tracer control command-line tool
307a8468
PP
9
10
11SYNOPSIS
12--------
5d231d82 13[verse]
484b2a0c
PP
14*lttng* [option:--group='GROUP'] [option:--mi=xml] [option:--no-sessiond | option:--sessiond-path='PATH']
15 [option:--quiet | option:-verbose...] '<<commands,COMMAND>>' ['COMMAND OPTIONS']
307a8468
PP
16
17
18DESCRIPTION
19-----------
484b2a0c 20include::common-intro.txt[]
307a8468 21
484b2a0c
PP
22The `lttng` command-line tool, as well as any user application linked
23with the LTTng control library (`liblttng-ctl`), sends commands to a
24listening LTTng session daemon (man:lttng-sessiond(8)). A session
25daemon:
307a8468 26
484b2a0c
PP
27* Manages tracing sessions (see man:lttng-create(1) to learn more
28 about tracing sessions).
307a8468 29
484b2a0c
PP
30* Controls the various components (like tracers and consumer daemons) of
31 LTTng.
307a8468 32
484b2a0c 33* Sends asynchronous notifications to user applications.
307a8468 34
484b2a0c
PP
35By default, the man:lttng-create(1) command automatically spawns a
36session daemon for your Unix user if none is currently running. Override
37the path of the session daemon binary to spawn with the
38option:--sessiond-path option. Avoid automatically spawning a session
39daemon with the option:--no-sessiond option.
307a8468 40
484b2a0c
PP
41NOTE: The LTTng project recommends that you start the session daemon at
42boot time for stable and long-term tracing.
307a8468 43
307a8468 44
484b2a0c
PP
45Session daemon connection
46~~~~~~~~~~~~~~~~~~~~~~~~~
47For most of its commands, the `lttng` tool needs to connect to a
48listening LTTng session daemon (man:lttng-sessiond(8)) to control LTTng
49tracing.
307a8468 50
484b2a0c
PP
51Each Unix user may have its own independent running session daemon.
52However, the `lttng` tool must connect to the session daemon of the
53`root` user (the root session daemon) to control Linux kernel tracing.
307a8468 54
484b2a0c
PP
55How the `lttng` tool chooses which session daemon to connect to
56is as follows:
307a8468 57
484b2a0c
PP
58If your Unix user is `root`::
59 Connect to the root session daemon.
307a8468 60
484b2a0c
PP
61If your Unix user is not `root`::
62 If your Unix user is part of the Unix tracing group:::
63 Try to connect to the root session daemon.
64+
65If the root session daemon isn't running, connect to the session daemon
66of your Unix user.
307a8468 67
484b2a0c
PP
68 If your Unix user is not part of the tracing group:::
69 Connect to the session daemon of your Unix user.
307a8468 70
484b2a0c
PP
71The name of the Unix tracing group is one of:
72
73With the nloption:--group='GROUP' option of the root session daemon (man:lttng-sessiond(8))::
74 'GROUP'
75+
76In that case, you must use the option:--group='GROUP' option, with
77the same 'GROUP' argument, of the `lttng` tool.
78
79Without the nloption:--group option of the root session daemon::
80 `tracing`
81
82LTTng-instrumented user applications automatically register to both the
83root session daemon and the user session daemon. This makes it possible
84for both session daemons to list the available traceable applications
85and known instrumentation points (see man:lttng-list(1)).
307a8468 86
307a8468 87
5d231d82
PP
88OPTIONS
89-------
59b19c3c 90option:-g 'GROUP', option:--group='GROUP'::
484b2a0c
PP
91 Set the name of the Unix tracing group to 'GROUP' instead of
92 `tracing`.
5d231d82 93+
484b2a0c
PP
94You must use this option to be able to connect to a root session daemon
95(man:lttng-sessiond(8)) which was started with its own
96nloption:--group='GROUP' option.
97
98option:-m `xml`, option:--mi=++xml++::
99 Print the command's result using a stable XML machine interface (MI)
100 output instead of the default, unstable human-readable output.
5d231d82 101+
484b2a0c
PP
102With this mode, `lttng` prints the resulting XML document to the
103standard output, while it prints any error/warning to the standard error
104with an unstable, human-readable format.
5d231d82 105+
484b2a0c
PP
106If any error occurs during the execution of `lttng`, the command
107exits with a status different than{nbsp}0, and `lttng` does
108:not: guarantee the syntax and data validity of its MI output.
5d231d82 109+
484b2a0c
PP
110An XML schema definition (XSD) file used for validation of the MI output
111is available: see the `src/common/mi_lttng.xsd` file in the LTTng-tools
112source tree.
307a8468 113
5d231d82 114option:-n, option:--no-sessiond::
484b2a0c
PP
115 Do not automatically spawn a session daemon for your Unix user when
116 running the man:lttng-create(1) command.
117+
118You may :not: use this option with the option:--sessiond-path option.
307a8468 119
5d231d82
PP
120option:-q, option:--quiet::
121 Suppress all messages, including warnings and errors.
484b2a0c
PP
122+
123You may :not: use this option with the option:--verbose option.
307a8468 124
5d231d82 125option:--sessiond-path='PATH'::
484b2a0c
PP
126 Set the absolute path of the session daemon binary to spawn from the
127 man:lttng-create(1) command to 'PATH'.
128+
129You may :not: use this option with the option:--no-sessiond option.
307a8468 130
5d231d82
PP
131option:-v, option:--verbose::
132 Increase verbosity.
133+
484b2a0c
PP
134Specify this option up to three times to get more levels of verbosity.
135+
136You may :not: use this option with the option:--quiet option.
307a8468 137
307a8468 138
5d231d82
PP
139Program information
140~~~~~~~~~~~~~~~~~~~
484b2a0c 141include::common-help-option.txt[]
307a8468 142
5d231d82 143option:--list-commands::
484b2a0c 144 List available commands and quit.
307a8468 145
5d231d82 146option:-V, option:--version::
484b2a0c 147 Show version and quit.
307a8468 148
307a8468 149
790e4a4c 150[[commands]]
5d231d82
PP
151COMMANDS
152--------
b5217c86 153The following commands also have their own nloption:--help option.
307a8468 154
307a8468 155
484b2a0c
PP
156Tracing session
157~~~~~~~~~~~~~~~
158[options="header"]
159|===
160|Command |Description
161
162|man:lttng-create(1) |{cmd_descr_create}.
163|man:lttng-destroy(1) |{cmd_descr_destroy}.
164|man:lttng-disable-rotation(1) |{cmd_descr_disable_rotation}.
165|man:lttng-enable-rotation(1) |{cmd_descr_enable_rotation}.
166|man:lttng-load(1) |{cmd_descr_load}.
167|man:lttng-regenerate(1) |{cmd_descr_regenerate}.
168|man:lttng-rotate(1) |{cmd_descr_rotate}.
169|man:lttng-save(1) |{cmd_descr_save}.
170|man:lttng-set-session(1) |{cmd_descr_set_session}.
171|man:lttng-snapshot(1) |{cmd_descr_snapshot}.
172|man:lttng-start(1) |{cmd_descr_start}.
173|man:lttng-status(1) |{cmd_descr_status}.
174|man:lttng-stop(1) |{cmd_descr_stop}.
175|===
176
177
178Channel
5d231d82 179~~~~~~~
484b2a0c
PP
180[options="header"]
181|===
182|Command |Description
307a8468 183
484b2a0c
PP
184|man:lttng-add-context(1) |{cmd_descr_add_context}.
185|man:lttng-disable-channel(1) |{cmd_descr_disable_channel}.
186|man:lttng-enable-channel(1) |{cmd_descr_enable_channel}.
187|===
307a8468 188
980bb5fd 189
484b2a0c
PP
190Recording event rule
191~~~~~~~~~~~~~~~~~~~~
192[options="header"]
193|===
194|Command |Description
980bb5fd 195
484b2a0c
PP
196|man:lttng-disable-event(1) |{cmd_descr_disable_event}.
197|man:lttng-enable-event(1) |{cmd_descr_enable_event}.
198|===
980bb5fd 199
484b2a0c
PP
200Information
201~~~~~~~~~~~
202[options="header"]
203|===
204|Command |Description
980bb5fd 205
484b2a0c
PP
206|man:lttng-list(1) |{cmd_descr_list}.
207|===
980bb5fd 208
5d231d82
PP
209Resource tracking
210~~~~~~~~~~~~~~~~~
484b2a0c
PP
211[options="header"]
212|===
213|Command |Description
214
215|man:lttng-track(1) |{cmd_descr_track}.
216|man:lttng-untrack(1) |{cmd_descr_untrack}.
217|===
307a8468 218
484b2a0c
PP
219Trigger
220~~~~~~~
221[options="header"]
222|===
223|Command |Description
307a8468 224
484b2a0c
PP
225|man:lttng-add-trigger(1) |{cmd_descr_add_trigger}.
226|man:lttng-list-triggers(1) |{cmd_descr_list_triggers}.
227|man:lttng-remove-trigger(1) |{cmd_descr_remove_trigger}.
228|===
307a8468 229
5d231d82
PP
230Miscellaneous
231~~~~~~~~~~~~~
484b2a0c
PP
232[options="header"]
233|===
234|Command |Description
307a8468 235
484b2a0c
PP
236|man:lttng-help(1) |{cmd_descr_help}.
237|man:lttng-version(1) |{cmd_descr_version}.
238|man:lttng-view(1) |{cmd_descr_view}.
239|===
307a8468
PP
240
241
5d231d82 242include::common-cmd-footer.txt[]
307a8468
PP
243
244
245SEE ALSO
246--------
484b2a0c 247man:babeltrace2(1),
7c1a4458 248man:lttng-relayd(8),
484b2a0c 249man:lttng-sessiond(8)
This page took 0.042712 seconds and 4 git commands to generate.