doc/man/manpage.xsl: do not indent the title of an admonition block
[lttng-tools.git] / doc / man / lttng-stop.1.txt
CommitLineData
fb58d659
PP
1lttng-stop(1)
2=============
484b2a0c 3:revdate: 21 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::
26 The current tracing session (see man:lttng-create(1) and
27 man:lttng-set-session(1) to learn more about the current tracing
28 session).
29
30The selected tracing session must be active (started; see
31man:lttng-start(1)). A tracing session is inactive on creation (see
32man:lttng-create(1)).
33
34An active tracing session is an implicit recording event rule condition
35(see man:lttng-enable-event(1)). In other words, a recording event rule
36cannot match an event when its tracing session is inactive.
37
38A `stop-session` trigger action can also stop a tracing session (see
39man:lttng-add-trigger(1)).
40
41Start an inactive tracing session with the man:lttng-start(1) command.
42
43By default, the `stop` command ensures that the trace data of the
44selected tracing session is valid before it exits. Make the command exit
45immediately with the option:--no-wait option. In this case, however, the
46traces(s) might not be valid when the command exits, and there's no way
47to know when it/they becomes valid.
48
49If LTTng archived the current trace chunk (see man:lttng-rotate(1) and
50man:lttng-enable-rotation(1)) of the selected tracing session at least
51once during its lifetime, the `stop` command renames the current trace
52chunk subdirectory and prints the renamed path. Although it's safe to
53read the content of this renamed subdirectory while the tracing session
54remains inactive, it's :not: a trace chunk archive: you need to destroy
55the tracing session with man:lttng-destroy(1) or perform a rotation with
56man:lttng-rotate(1) to archive it.
980bb5fd 57
fb58d659
PP
58
59include::common-cmd-options-head.txt[]
60
61
62option:-n, option:--no-wait::
484b2a0c
PP
63 Do :not: ensure that the trace data of the selected tracing session
64 is valid before exiting.
fb58d659
PP
65
66
67include::common-cmd-help-options.txt[]
68
69
70include::common-cmd-footer.txt[]
71
72
73SEE ALSO
74--------
484b2a0c
PP
75man:lttng(1),
76man:lttng-add-trigger(1),
77man:lttng-create(1),
78man:lttng-enable-event(1),
79man:lttng-rotate(1),
80man:lttng-start(1)
This page took 0.037302 seconds and 4 git commands to generate.