Update the remaining manual pages for LTTng-tools 2.13
[lttng-tools.git] / doc / man / lttng-destroy.1.txt
CommitLineData
7bf169bd 1lttng-destroy(1)
4605890e 2================
26f0c779 3:revdate: 3 May 2021
7bf169bd
PP
4
5
6NAME
7----
484b2a0c 8lttng-destroy - Destroy LTTng tracing sessions
7bf169bd
PP
9
10
11SYNOPSIS
12--------
13[verse]
d0d2c3e4 14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *destroy* [option:--no-wait] [option:--all | 'SESSION']
7bf169bd
PP
15
16
17DESCRIPTION
18-----------
26f0c779 19The `lttng destroy` command destroys:
7bf169bd 20
484b2a0c
PP
21With the 'SESSION' argument::
22 The tracing session named 'SESSION'.
7bf169bd 23
484b2a0c 24With the option:--all option::
26f0c779
PP
25 *All* the tracing sessions of the connected session daemon for your
26 Unix user, or for all users if your Unix user is `root`, as listed
27 in the output of `lttng list` (see man:lttng-list(1)).
28+
29See the ``Session daemon connection'' section of man:lttng(1) to learn
30how a user application connects to a session daemon.
7bf169bd 31
484b2a0c 32Otherwise::
26f0c779
PP
33 The current tracing session (see man:lttng-concepts(7) to learn more
34 about the current tracing session).
484b2a0c
PP
35+
36In that case, the current tracing session becomes nonexistent.
7bf169bd 37
26f0c779
PP
38See man:lttng-concepts(7) to learn more about tracing sessions.
39
40``Destroying'' a tracing session means freeing the resources which the
41LTTng daemons and tracers acquired for it, also making sure to flush all
42the recorded trace data to either the local file system or the connected
43LTTng relay daemon (see man:lttng-relayd(8)), depending on the tracing
44session mode.
45
484b2a0c 46The `destroy` command stops any tracing activity within the selected
26f0c779 47tracing session(s). By default, the command runs an implicit
484b2a0c
PP
48man:lttng-stop(1) command to ensure that the trace data of the tracing
49session(s) is valid before it exits. Make the command exit immediately
50with the option:--no-wait option. In this case, however, the traces(s)
51might not be valid when the command exits, and there's no way to know
26f0c779 52when it/they become valid.
484b2a0c
PP
53
54If, for a tracing session{nbsp}__TS__ to destroy with the `destroy`
55command, the following statements are true:
56
26f0c779 57* You don't specify the option:--no-wait option.
484b2a0c 58
26f0c779
PP
59* LTTng archived the current trace chunk (see man:lttng-concepts(7))
60 of{nbsp}__TS__ at least once during its lifetime.
484b2a0c
PP
61
62Then all the subdirectories of the output directory of{nbsp}__TS__
63(local or remote) are considered trace chunk archives once the `destroy`
64command exits. In other words, it's safe to read them, modify them, move
65them, or remove then.
980bb5fd 66
7bf169bd
PP
67
68include::common-cmd-options-head.txt[]
69
70
71option:-a, option:--all::
26f0c779
PP
72 Destroy all the tracing sessions of your Unix user, or of all users
73 if your Unix user is `root`, as listed in the output of
74 man:lttng-list(1), instead of the current tracing session or the
75 tracing session named 'SESSION'.
7bf169bd 76
d0d2c3e4 77option:-n, option:--no-wait::
484b2a0c
PP
78 Do :not: ensure that the trace data of the tracing session(s) to
79 destroy is valid before exiting.
d0d2c3e4 80
7bf169bd
PP
81
82include::common-cmd-help-options.txt[]
83
84
85include::common-cmd-footer.txt[]
86
87
88SEE ALSO
89--------
484b2a0c 90man:lttng(1),
26f0c779 91man:lttng-concepts(7),
7c1a4458 92man:lttng-create(1),
26f0c779 93man:lttng-list(1)
This page took 0.034949 seconds and 4 git commands to generate.