From b0b692950b0b6ea98a40fddea2a1ab9d125c1a8c Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 17 May 2021 14:12:16 -0400 Subject: [PATCH] lttng-enable-rotation(1): add usage examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau Change-Id: I56eafd9e52cd37f48849ddfb82d007c9fb3f3767 --- doc/man/lttng-enable-rotation.1.txt | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/doc/man/lttng-enable-rotation.1.txt b/doc/man/lttng-enable-rotation.1.txt index e9571ca5b..2071848e1 100644 --- a/doc/man/lttng-enable-rotation.1.txt +++ b/doc/man/lttng-enable-rotation.1.txt @@ -1,6 +1,6 @@ lttng-enable-rotation(1) ======================== -:revdate: 3 May 2021 +:revdate: 17 May 2021 NAME @@ -60,6 +60,8 @@ You may combine the option:--timer and option:--size options. See the man:lttng-concepts(7) to learn how LTTng names a trace chunk archive directory. +See the <> section below for usage examples. + Unset a tracing session rotation schedule with the man:lttng-disable-rotation(1) command. @@ -114,6 +116,30 @@ include::common-lttng-cmd-help-options.txt[] include::common-lttng-cmd-after-options.txt[] +[[examples]] +EXAMPLES +-------- +.Set the size-based rotation schedule of the current tracing session. +==== +See the option:--size option. + +[role="term"] +---- +$ lttng disable-rotation --size=256M +---- +==== + +.Set the periodic rotation schedule of a specific tracing session. +==== +See the option:--timer and option:--session options. + +[role="term"] +---- +$ lttng disable-rotation --session=my-session --timer=5m +---- +==== + + include::common-footer.txt[] -- 2.34.1