lttng-stop(1): add usage examples
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 May 2021 20:05:40 +0000 (16:05 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 May 2021 21:31:35 +0000 (17:31 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I6794937457d4f34d649b9edb6a755e091a6af67e

doc/man/lttng-stop.1.txt

index 9b1907c61127910802766bfda37707df476641ed..d0371c74d8ee9cd7aadfe703317075c3a3d2521d 100644 (file)
@@ -1,6 +1,6 @@
 lttng-stop(1)
 =============
-:revdate: 29 April 2021
+:revdate: 17 May 2021
 
 
 NAME
@@ -52,6 +52,8 @@ remains inactive, it's :not: a trace chunk archive: you need to destroy
 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-lttng-cmd-options-head.txt[]
 
@@ -67,6 +69,36 @@ 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-footer.txt[]
 
 
This page took 0.026275 seconds and 4 git commands to generate.