X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=doc%2Fman%2Flttng-stop.1.txt;h=0ad1f0e3c32b29c1809fb8fd5061c2400a6f58c5;hb=refs%2Fheads%2Fsow-2021-0002-rev1;hp=5c21c6ce404e467f3e4b2192635e67e49aa41261;hpb=484b2a0cbefcf0c7072622a5a411ea5ed849da28;p=lttng-tools.git diff --git a/doc/man/lttng-stop.1.txt b/doc/man/lttng-stop.1.txt index 5c21c6ce4..0ad1f0e3c 100644 --- a/doc/man/lttng-stop.1.txt +++ b/doc/man/lttng-stop.1.txt @@ -1,11 +1,11 @@ lttng-stop(1) ============= -:revdate: 21 April 2021 +:revdate: 14 June 2021 NAME ---- -lttng-stop - Stop an LTTng tracing session +lttng-stop - Stop an LTTng recording session SYNOPSIS @@ -16,58 +16,90 @@ SYNOPSIS DESCRIPTION ----------- -The `lttng stop` command stops a tracing session, that is, it +The `lttng stop` command stops a recording session, that is, it deactivates the LTTng tracers for: With the 'SESSION' argument:: - The tracing session named 'SESSION'. + The recording session named 'SESSION'. Without the 'SESSION' argument:: - The current tracing session (see man:lttng-create(1) and - man:lttng-set-session(1) to learn more about the current tracing - session). + The current recording session (see man:lttng-concepts(7) to learn more + about the current recording session). -The selected tracing session must be active (started; see -man:lttng-start(1)). A tracing session is inactive on creation (see -man:lttng-create(1)). +See man:lttng-concepts(7) to learn more about recording sessions. -An active tracing session is an implicit recording event rule condition -(see man:lttng-enable-event(1)). In other words, a recording event rule -cannot match an event when its tracing session is inactive. +The selected recording session must be active (started; see +man:lttng-start(1)). A recording session is inactive on creation (see +man:lttng-create(1)). -A `stop-session` trigger action can also stop a tracing session (see +A `stop-session` trigger action can also stop a recording session (see man:lttng-add-trigger(1)). -Start an inactive tracing session with the man:lttng-start(1) command. +Start an inactive recording session with the man:lttng-start(1) command. By default, the `stop` command ensures that the trace data of the -selected tracing session is valid before it exits. Make the command exit -immediately with the option:--no-wait option. In this case, however, the -traces(s) might not be valid when the command exits, and there's no way -to know when it/they becomes valid. +selected recording session is valid before it exits. Make the command +exit immediately with the option:--no-wait option. In this case, +however, the traces(s) might not be valid when the command exits, and +there's no way to know when it/they becomes valid. If LTTng archived the current trace chunk (see man:lttng-rotate(1) and -man:lttng-enable-rotation(1)) of the selected tracing session at least +man:lttng-enable-rotation(1)) of the selected recording session at least once during its lifetime, the `stop` command renames the current trace chunk subdirectory and prints the renamed path. Although it's safe to -read the content of this renamed subdirectory while the tracing session -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. +read the content of this renamed subdirectory while the recording +session remains inactive, it's :not: a trace chunk archive: you need to +destroy the recording session with man:lttng-destroy(1) or perform a +rotation with man:lttng-rotate(1) to archive it. + +See the ``<>'' section below for usage examples. -include::common-cmd-options-head.txt[] +include::common-lttng-cmd-options-head.txt[] option:-n, option:--no-wait:: - Do :not: ensure that the trace data of the selected tracing session - is valid before exiting. + Do :not: ensure that the trace data of the selected recording + session is valid before exiting. + + +include::common-lttng-cmd-help-options.txt[] -include::common-cmd-help-options.txt[] +include::common-lttng-cmd-after-options.txt[] + + +[[examples]] +EXAMPLES +-------- +.Stop the current recording session. +==== +[role="term"] +---- +$ lttng stop +---- +==== + +.Stop a specific recording session. +==== +[role="term"] +---- +$ lttng stop my-session +---- +==== + +.Stop the current recording session without waiting for completion. +==== +See the option:--no-wait option. + +[role="term"] +---- +$ lttng stop --no-wait +---- +==== -include::common-cmd-footer.txt[] +include::common-footer.txt[] SEE ALSO @@ -77,4 +109,5 @@ man:lttng-add-trigger(1), man:lttng-create(1), man:lttng-enable-event(1), man:lttng-rotate(1), -man:lttng-start(1) +man:lttng-start(1), +man:lttng-concepts(7)