doc/man: follow man-pages(7) for section names/order and for "SEE ALSO"
[lttng-tools.git] / doc / man / lttng-stop.1.txt
CommitLineData
fb58d659
PP
1lttng-stop(1)
2=============
188419c4 3:revdate: 29 April 2021
fb58d659
PP
4
5
6NAME
7----
484b2a0c 8lttng-stop - Stop an LTTng tracing session
fb58d659
PP
9
10
11SYNOPSIS
12--------
13[verse]
ce19b9ed 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *stop* [option:--no-wait] ['SESSION']
fb58d659
PP
15
16
17DESCRIPTION
18-----------
484b2a0c
PP
19The `lttng stop` command stops a tracing session, that is, it
20deactivates the LTTng tracers for:
21
22With the 'SESSION' argument::
23 The tracing session named 'SESSION'.
24
25Without the 'SESSION' argument::
188419c4
PP
26 The current tracing session (see man:lttng-concepts(7) to learn more
27 about the current tracing session).
28
29See man:lttng-concepts(7) to learn more about tracing sessions.
484b2a0c
PP
30
31The selected tracing session must be active (started; see
32man:lttng-start(1)). A tracing session is inactive on creation (see
33man:lttng-create(1)).
34
484b2a0c
PP
35A `stop-session` trigger action can also stop a tracing session (see
36man:lttng-add-trigger(1)).
37
38Start an inactive tracing session with the man:lttng-start(1) command.
39
40By default, the `stop` command ensures that the trace data of the
41selected tracing session is valid before it exits. Make the command exit
42immediately with the option:--no-wait option. In this case, however, the
43traces(s) might not be valid when the command exits, and there's no way
44to know when it/they becomes valid.
45
46If LTTng archived the current trace chunk (see man:lttng-rotate(1) and
47man:lttng-enable-rotation(1)) of the selected tracing session at least
48once during its lifetime, the `stop` command renames the current trace
49chunk subdirectory and prints the renamed path. Although it's safe to
50read the content of this renamed subdirectory while the tracing session
51remains inactive, it's :not: a trace chunk archive: you need to destroy
52the tracing session with man:lttng-destroy(1) or perform a rotation with
53man:lttng-rotate(1) to archive it.
980bb5fd 54
fb58d659
PP
55
56include::common-cmd-options-head.txt[]
57
58
59option:-n, option:--no-wait::
484b2a0c
PP
60 Do :not: ensure that the trace data of the selected tracing session
61 is valid before exiting.
fb58d659
PP
62
63
64include::common-cmd-help-options.txt[]
65
66
67include::common-cmd-footer.txt[]
68
69
70SEE ALSO
71--------
484b2a0c
PP
72man:lttng(1),
73man:lttng-add-trigger(1),
74man:lttng-create(1),
75man:lttng-enable-event(1),
76man:lttng-rotate(1),
21b35b3a
PP
77man:lttng-start(1),
78man:lttng-concepts(7)
This page took 0.050179 seconds and 5 git commands to generate.