doc/man: use double quotes when referring to internal section
[lttng-tools.git] / doc / man / lttng-destroy.1.txt
... / ...
CommitLineData
1lttng-destroy(1)
2================
3:revdate: 17 May 2021
4
5
6NAME
7----
8lttng-destroy - Destroy LTTng tracing sessions
9
10
11SYNOPSIS
12--------
13[verse]
14*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *destroy* [option:--no-wait] [option:--all | 'SESSION']
15
16
17DESCRIPTION
18-----------
19The `lttng destroy` command destroys:
20
21With the 'SESSION' argument::
22 The tracing session named 'SESSION'.
23
24With the option:--all option::
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.
31
32Otherwise::
33 The current tracing session (see man:lttng-concepts(7) to learn more
34 about the current tracing session).
35+
36In that case, the current tracing session becomes nonexistent.
37
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
46The `destroy` command stops any tracing activity within the selected
47tracing session(s). By default, the command runs an implicit
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
52when it/they become valid.
53
54If, for a tracing session{nbsp}__TS__ to destroy with the `destroy`
55command, the following statements are true:
56
57* You don't specify the option:--no-wait option.
58
59* LTTng archived the current trace chunk (see man:lttng-concepts(7))
60 of{nbsp}__TS__ at least once during its lifetime.
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.
66
67See the ``<<examples,EXAMPLES>>'' section below for usage examples.
68
69
70include::common-lttng-cmd-options-head.txt[]
71
72
73option:-a, option:--all::
74 Destroy all the tracing sessions of your Unix user, or of all users
75 if your Unix user is `root`, as listed in the output of
76 man:lttng-list(1), instead of the current tracing session or the
77 tracing session named 'SESSION'.
78
79option:-n, option:--no-wait::
80 Do :not: ensure that the trace data of the tracing session(s) to
81 destroy is valid before exiting.
82
83
84include::common-lttng-cmd-help-options.txt[]
85
86
87include::common-lttng-cmd-after-options.txt[]
88
89
90[[examples]]
91EXAMPLES
92--------
93.Destroy the current tracing session.
94====
95[role="term"]
96----
97$ lttng destroy
98----
99====
100
101.Destroy the current tracing session without waiting for completion.
102====
103See the option:--no-wait option.
104
105[role="term"]
106----
107$ lttng destroy --no-wait
108----
109====
110
111.Destroy a specific tracing session.
112====
113[role="term"]
114----
115$ lttng destroy my-session
116----
117====
118
119.Destroy all tracing sessions.
120====
121See the option:--all option.
122
123[role="term"]
124----
125$ lttng destroy --all
126----
127====
128
129
130include::common-footer.txt[]
131
132
133SEE ALSO
134--------
135man:lttng(1),
136man:lttng-create(1),
137man:lttng-list(1),
138man:lttng-concepts(7)
This page took 0.022404 seconds and 4 git commands to generate.