File: lttng-stop.1.txt

package info (click to toggle)
ltt-control 2.13.15-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,656 kB
  • sloc: ansic: 167,287; sh: 27,018; makefile: 2,828; python: 1,380; yacc: 692; lex: 129; java: 109; perl: 99; cpp: 35; xml: 23
file content (113 lines) | stat: -rw-r--r-- 2,747 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
lttng-stop(1)
=============
:revdate: 14 June 2021


NAME
----
lttng-stop - Stop an LTTng recording session


SYNOPSIS
--------
[verse]
*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *stop* [option:--no-wait] ['SESSION']


DESCRIPTION
-----------
The `lttng stop` command stops a recording session, that is, it
deactivates the LTTng tracers for:

With the 'SESSION' argument::
    The recording session named 'SESSION'.

Without the 'SESSION' argument::
    The current recording session (see man:lttng-concepts(7) to learn more
    about the current recording session).

See man:lttng-concepts(7) to learn more about recording sessions.

The selected recording session must be active (started; see
man:lttng-start(1)). A recording session is inactive on creation (see
man:lttng-create(1)).

A `stop-session` trigger action can also stop a recording session (see
man:lttng-add-trigger(1)).

Start an inactive recording session with the man:lttng-start(1) command.

By default, the `stop` command ensures that the trace data of the
selected recording session is valid before it exits. Make the command
exit immediately with the option:--no-wait option. In this case,
however, the traces(s) might not be valid when the command exits, and
there's no way to know when it/they becomes valid.

If LTTng archived the current trace chunk (see man:lttng-rotate(1) and
man:lttng-enable-rotation(1)) of the selected recording session at least
once during its lifetime, the `stop` command renames the current trace
chunk subdirectory and prints the renamed path. Although it's safe to
read the content of this renamed subdirectory while the recording
session remains inactive, it's :not: a trace chunk archive: you need to
destroy the recording session with man:lttng-destroy(1) or perform a
rotation with man:lttng-rotate(1) to archive it.

See the ``<<examples,EXAMPLES>>'' section below for usage examples.


include::common-lttng-cmd-options-head.txt[]


option:-n, option:--no-wait::
    Do :not: ensure that the trace data of the selected recording
    session is valid before exiting.


include::common-lttng-cmd-help-options.txt[]


include::common-lttng-cmd-after-options.txt[]


[[examples]]
EXAMPLES
--------
.Stop the current recording session.
====
[role="term"]
----
$ lttng stop
----
====

.Stop a specific recording session.
====
[role="term"]
----
$ lttng stop my-session
----
====

.Stop the current recording session without waiting for completion.
====
See the option:--no-wait option.

[role="term"]
----
$ lttng stop --no-wait
----
====


include::common-footer.txt[]


SEE ALSO
--------
man:lttng(1),
man:lttng-add-trigger(1),
man:lttng-create(1),
man:lttng-enable-event(1),
man:lttng-rotate(1),
man:lttng-start(1),
man:lttng-concepts(7)