X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=doc%2Fman%2Flttng-stop.1.txt;fp=doc%2Fman%2Flttng-stop.1.txt;h=5c21c6ce404e467f3e4b2192635e67e49aa41261;hp=55afcd3483345ffbc27c9f85b75812305f1e8929;hb=484b2a0cbefcf0c7072622a5a411ea5ed849da28;hpb=574d2e89b608d9f8d42956ec9651fc6bd62a6d8f diff --git a/doc/man/lttng-stop.1.txt b/doc/man/lttng-stop.1.txt index 55afcd348..5c21c6ce4 100644 --- a/doc/man/lttng-stop.1.txt +++ b/doc/man/lttng-stop.1.txt @@ -1,11 +1,11 @@ lttng-stop(1) ============= -:revdate: 18 January 2018 +:revdate: 21 April 2021 NAME ---- -lttng-stop - Stop LTTng tracers +lttng-stop - Stop an LTTng tracing session SYNOPSIS @@ -16,45 +16,52 @@ SYNOPSIS DESCRIPTION ----------- -The `lttng stop` command stops the various LTTng tracers for a given -active tracing session. - -Stopping the LTTng tracers has the effect that all enabled event rules -within enabled channels cannot make event sources _emit_ trace events -anymore. - -A tracing session with no running tracers is said to be _inactive_. -Inactive tracing sessions can be set active using the -man:lttng-start(1) command. - -If 'SESSION' is omitted, the LTTng tracers are stopped for the current -tracing session (see man:lttng-create(1) for more information -about the current tracing session). Otherwise, they are stopped for the -existing tracing session named 'SESSION'. `lttng list` -outputs all the existing tracing sessions (see man:lttng-list(1)). - -By default, the `lttng stop` command ensures that the tracing session's -trace data is valid before returning to the prompt. With the -option:--no-wait option, the command finishes immediately, hence a local -trace might not be valid when the command is done. In this case, there -is no way to know when the trace becomes valid. - -If at least one rotation occurred during the chosen tracing session's -lifetime (see man:lttng-rotate(1) and man:lttng-enable-rotation(1)), the -`lttng stop` command renames the current trace chunk subdirectory and -prints the renamed path. Although it is safe to read the content of this -renamed subdirectory while the tracing session remains inactive (until -the next man:lttng-start(1)), it is :not: a trace chunk archive: you -need to destroy the tracing session with man:lttng-destroy(1) or make -a rotation with man:lttng-rotate(1) to archive it. +The `lttng stop` command stops a tracing session, that is, it +deactivates the LTTng tracers for: + +With the 'SESSION' argument:: + The tracing 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 selected tracing session must be active (started; see +man:lttng-start(1)). A tracing session is inactive on creation (see +man:lttng-create(1)). + +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. + +A `stop-session` trigger action can also stop a tracing session (see +man:lttng-add-trigger(1)). + +Start an inactive tracing 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. + +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 +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. include::common-cmd-options-head.txt[] option:-n, option:--no-wait:: - Do not ensure that the chosen tracing session's trace data is valid - before returning to the prompt. + Do :not: ensure that the trace data of the selected tracing session + is valid before exiting. include::common-cmd-help-options.txt[] @@ -65,5 +72,9 @@ include::common-cmd-footer.txt[] SEE ALSO -------- -man:lttng-start(1), -man:lttng(1) +man:lttng(1), +man:lttng-add-trigger(1), +man:lttng-create(1), +man:lttng-enable-event(1), +man:lttng-rotate(1), +man:lttng-start(1)