docs: Add supported versions and fix-backport policy
[lttng-tools.git] / doc / man / lttng-stop.1.txt
CommitLineData
fb58d659
PP
1lttng-stop(1)
2=============
e9711845 3:revdate: 14 June 2021
fb58d659
PP
4
5
6NAME
7----
e9711845 8lttng-stop - Stop an LTTng recording session
fb58d659
PP
9
10
11SYNOPSIS
12--------
13[verse]
2a8d72ed 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *stop* [option:--no-wait] [option:--all | option:--glob 'SESSION' | 'SESSION']
fb58d659
PP
15
16
17DESCRIPTION
18-----------
e9711845 19The `lttng stop` command stops a recording session, that is, it
484b2a0c
PP
20deactivates the LTTng tracers for:
21
22With the 'SESSION' argument::
e9711845 23 The recording session named 'SESSION'.
484b2a0c
PP
24
25Without the 'SESSION' argument::
e9711845
PP
26 The current recording session (see man:lttng-concepts(7) to learn more
27 about the current recording session).
26f0c779 28
e9711845 29See man:lttng-concepts(7) to learn more about recording sessions.
484b2a0c 30
e9711845
PP
31The selected recording session must be active (started; see
32man:lttng-start(1)). A recording session is inactive on creation (see
484b2a0c
PP
33man:lttng-create(1)).
34
e9711845 35A `stop-session` trigger action can also stop a recording session (see
484b2a0c
PP
36man:lttng-add-trigger(1)).
37
e9711845 38Start an inactive recording session with the man:lttng-start(1) command.
484b2a0c
PP
39
40By default, the `stop` command ensures that the trace data of the
e9711845
PP
41selected recording session is valid before it exits. Make the command
42exit immediately with the option:--no-wait option. In this case,
43however, the traces(s) might not be valid when the command exits, and
44there's no way to know when it/they becomes valid.
484b2a0c
PP
45
46If LTTng archived the current trace chunk (see man:lttng-rotate(1) and
e9711845 47man:lttng-enable-rotation(1)) of the selected recording session at least
484b2a0c
PP
48once during its lifetime, the `stop` command renames the current trace
49chunk subdirectory and prints the renamed path. Although it's safe to
e9711845
PP
50read the content of this renamed subdirectory while the recording
51session remains inactive, it's :not: a trace chunk archive: you need to
52destroy the recording session with man:lttng-destroy(1) or perform a
53rotation with man:lttng-rotate(1) to archive it.
980bb5fd 54
da39b67c 55See the ``<<examples,EXAMPLES>>'' section below for usage examples.
4182cfea 56
fb58d659 57
f5511eea 58include::common-lttng-cmd-options-head.txt[]
fb58d659
PP
59
60
61option:-n, option:--no-wait::
e9711845
PP
62 Do :not: ensure that the trace data of the selected recording
63 session is valid before exiting.
fb58d659 64
2a8d72ed
OD
65option:-a, option:--all::
66 Stop all sessions.
67
68option:-g, option:--glob::
69 Interpret SESSION as a globbing pattern.
fb58d659 70
f5511eea 71include::common-lttng-cmd-help-options.txt[]
fb58d659
PP
72
73
f5511eea
PP
74include::common-lttng-cmd-after-options.txt[]
75
76
4182cfea
PP
77[[examples]]
78EXAMPLES
79--------
e9711845 80.Stop the current recording session.
4182cfea
PP
81====
82[role="term"]
83----
84$ lttng stop
85----
86====
87
e9711845 88.Stop a specific recording session.
4182cfea
PP
89====
90[role="term"]
91----
92$ lttng stop my-session
93----
94====
95
e9711845 96.Stop the current recording session without waiting for completion.
4182cfea
PP
97====
98See the option:--no-wait option.
99
100[role="term"]
101----
102$ lttng stop --no-wait
103----
104====
105
2a8d72ed
OD
106.Stop all sessions.
107====
108See the option:--all option.
109
110[role="term"]
111----
112$ lttng stop --all
113----
114====
115
116.Stop all sessions with the suffix foo.
117====
118See the option:--glob option.
119
120[role="term"]
121----
122$ lttng stop --glob '*foo'
123----
124====
125
4182cfea 126
f5511eea 127include::common-footer.txt[]
fb58d659
PP
128
129
130SEE ALSO
131--------
484b2a0c
PP
132man:lttng(1),
133man:lttng-add-trigger(1),
134man:lttng-create(1),
135man:lttng-enable-event(1),
136man:lttng-rotate(1),
af1c4164
PP
137man:lttng-start(1),
138man:lttng-concepts(7)
This page took 0.052903 seconds and 5 git commands to generate.