lttng-regenerate(1): add usage examples
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 May 2021 19:35:42 +0000 (15:35 -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: I91074dfc717d481fe16ec4f40533757a0b3f3da4

doc/man/lttng-regenerate.1.txt

index cd8f4d7764b4f64dcc303519b46809f6c87c2189..7e447600796d27b520dacec37ecdd680cb57b79c 100644 (file)
@@ -1,6 +1,6 @@
 lttng-regenerate(1)
 ===================
-:revdate: 30 April 2021
+:revdate: 17 May 2021
 
 
 NAME
@@ -37,6 +37,8 @@ See man:lttng-concepts(7) to learn more about tracing sessions.
 As of this version, the `metadata` and `statedump` targets are
 available.
 
+See the <<examples,EXAMPLES>> section below for usage examples.
+
 
 Regenerate the metadata of a tracing session
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -99,6 +101,28 @@ include::common-lttng-cmd-help-options.txt[]
 include::common-lttng-cmd-after-options.txt[]
 
 
+[[examples]]
+EXAMPLES
+--------
+.Regenerate the metadata of the current tracing session.
+====
+[role="term"]
+----
+$ lttng regenerate metadata
+----
+====
+
+.Regenerate the state dump event records of a specific tracing session.
+====
+See the option:--session option.
+
+[role="term"]
+----
+$ lttng regenerate statedump --session=my-session
+----
+====
+
+
 include::common-footer.txt[]
 
 
This page took 0.0275 seconds and 5 git commands to generate.