lttng-track(1): add usage examples
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 17 May 2021 20:19:09 +0000 (16:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 May 2021 15:23:39 +0000 (11:23 -0400)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I21a7906626a09b9964fc51dd083f1c2ea5b855c3

doc/man/lttng-track.1.txt

index 195e07973c5c07153f71866427a7007ba68afa76..2a04eeedca3ff78183daa59682e835ef2c47147b 100644 (file)
@@ -1,6 +1,6 @@
 lttng-track(1)
 ==============
-:revdate: 1 May 2021
+:revdate: 17 May 2021
 
 
 NAME
@@ -111,6 +111,8 @@ $ lttng track --kernel --pid=2345
 $ lttng start
 ----
 
+See the <<examples,EXAMPLES>> section below for usage examples.
+
 Remove values from an inclusion set with the man:lttng-untrack(1)
 command.
 
@@ -294,6 +296,40 @@ include::common-lttng-cmd-help-options.txt[]
 include::common-lttng-cmd-after-options.txt[]
 
 
+[[examples]]
+EXAMPLES
+--------
+.Add the PIDs 1728 and 3775 to the Linux kernel process ID inclusion set of the current tracing session.
+====
+See the option:--pid option.
+
+[role="term"]
+----
+$ lttng track --kernel --pid=1728,3775
+----
+====
+
+.Add the ID of a specific user to the user space virtual user ID inclusion set of a specific tracing session.
+====
+See the option:--vuid and option:--session options.
+
+[role="term"]
+----
+$ lttng track --userspace --session=my-session --vuid=http
+----
+====
+
+.Add all the possible group IDs to the Linux kernel group ID inclusion set of the current tracing session.
+====
+See the option:--all and option:--gid options.
+
+[role="term"]
+----
+$ lttng track --kernel --all --gid
+----
+====
+
+
 include::common-footer.txt[]
 
 
This page took 0.025919 seconds and 4 git commands to generate.