X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=doc%2Fman%2Flttng-snapshot.1.txt;h=b81adbc9d99f4a2a515e83c4169a6478cf7a4b22;hb=a840460a657e2369ec3b520b9243e5f9166447b8;hp=94bf7c9f585c7e6b5aca7b8347d887ce40e59549;hpb=188419c4eee5d623605d6c7bd797c18ae8564647;p=lttng-tools.git diff --git a/doc/man/lttng-snapshot.1.txt b/doc/man/lttng-snapshot.1.txt index 94bf7c9f5..b81adbc9d 100644 --- a/doc/man/lttng-snapshot.1.txt +++ b/doc/man/lttng-snapshot.1.txt @@ -1,6 +1,6 @@ lttng-snapshot(1) ================= -:revdate: 3 May 2021 +:revdate: 17 May 2021 NAME @@ -69,6 +69,8 @@ to use the `snapshot` command. A `snapshot-session` trigger action can also take a tracing session snapshot (see man:lttng-add-trigger(1)). +See the <> section below for usage examples. + If you want, instead, to keep all the trace data, but divide it into archived chunks which are then, like snapshots, ready to be processed, see the tracing session rotation feature in man:lttng-concepts(7). Trace @@ -145,7 +147,7 @@ Set the maximum total size of all the snapshot trace files LTTng writes with the option:--max-size option. -include::common-cmd-options-head.txt[] +include::common-lttng-cmd-options-head.txt[] Recording target @@ -184,14 +186,73 @@ option:-n 'NAME', option:--name='NAME':: Assign the name 'NAME' to the snapshot output. -include::common-cmd-help-options.txt[] +include::common-lttng-cmd-help-options.txt[] + + +include::common-lttng-cmd-after-options.txt[] + + +[[examples]] +EXAMPLES +-------- +.Take a snapshot of the current tracing session, sending the trace files to its snapshot output. +==== +[role="term"] +---- +$ lttng snapshot record +---- +==== + +.Take a snapshot of a specific tracing session, giving it a custom name. +==== +See the option:--session and option:--name options. + +[role="term"] +---- +$ lttng snapshot record --session=my-session --name=SNAP +---- +==== + +.Take a snapshot of the current tracing session, sending the trace files to a custom location. +==== +See the ``Output directory'' section of man:lttng-relayd(8) to +understand where the relay daemon to connect to (`3.96.87.215`) writes +the received traces. + +[role="term"] +---- +$ lttng snapshot record net://3.96.87.215 +---- +==== + +.Replace the snapshot output of a specific tracing session with a local file system path. +==== +See the option:--session option. + +[role="term"] +---- +$ lttng snapshot del-output --session=monk 1 +$ lttng snapshot add-output --session=monk \ + file:///path/to/snapshots +---- +==== + +.Take a snapshot of the current tracing session, making sure its size is not over 4{nbsp}MiB. +==== +See the option:--max-size option. + +[role="term"] +---- +$ lttng snapshot record --max-size=4M +---- +==== -include::common-cmd-footer.txt[] +include::common-footer.txt[] SEE ALSO -------- man:lttng(1), -man:lttng-concepts(7), -man:lttng-create(1) +man:lttng-create(1), +man:lttng-concepts(7)