lttng-stop(1)
=============
-:revdate: 21 April 2021
+:revdate: 17 May 2021
NAME
The tracing session named 'SESSION'.
Without the 'SESSION' argument::
- The current tracing session (see man:lttng-create(1) and
- man:lttng-set-session(1) to learn more about the current tracing
- session).
+ The current tracing session (see man:lttng-concepts(7) to learn more
+ about the current tracing session).
+
+See man:lttng-concepts(7) to learn more about tracing sessions.
The selected tracing session must be active (started; see
man:lttng-start(1)). A tracing session is inactive on creation (see
man:lttng-create(1)).
-An active tracing session is an implicit recording event rule condition
-(see man:lttng-enable-event(1)). In other words, a recording event rule
-cannot match an event when its tracing session is inactive.
-
A `stop-session` trigger action can also stop a tracing session (see
man:lttng-add-trigger(1)).
the tracing 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-cmd-options-head.txt[]
+include::common-lttng-cmd-options-head.txt[]
option:-n, option:--no-wait::
is valid before exiting.
-include::common-cmd-help-options.txt[]
+include::common-lttng-cmd-help-options.txt[]
+
+
+include::common-lttng-cmd-after-options.txt[]
+
+
+[[examples]]
+EXAMPLES
+--------
+.Stop the current tracing session.
+====
+[role="term"]
+----
+$ lttng stop
+----
+====
+
+.Stop a specific tracing session.
+====
+[role="term"]
+----
+$ lttng stop my-session
+----
+====
+
+.Stop the current tracing session without waiting for completion.
+====
+See the option:--no-wait option.
+
+[role="term"]
+----
+$ lttng stop --no-wait
+----
+====
-include::common-cmd-footer.txt[]
+include::common-footer.txt[]
SEE ALSO
man:lttng-create(1),
man:lttng-enable-event(1),
man:lttng-rotate(1),
-man:lttng-start(1)
+man:lttng-start(1),
+man:lttng-concepts(7)