X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fman%2Flttng-start.1.txt;h=d4f52cbacfbf4ffdca9f9a7af00edda78143be5b;hb=29545453559d2de44bf3a6ea731c1cc48a6dd97f;hp=541c4aedee71d8927377017e1cb396efb2061c84;hpb=7c1a4458be934fec31aa27a0eb52e4d0b8cb3803;p=lttng-tools.git diff --git a/doc/man/lttng-start.1.txt b/doc/man/lttng-start.1.txt index 541c4aede..d4f52cbac 100644 --- a/doc/man/lttng-start.1.txt +++ b/doc/man/lttng-start.1.txt @@ -1,10 +1,11 @@ lttng-start(1) ============== +:revdate: 17 May 2021 NAME ---- -lttng-start - Start LTTng tracers +lttng-start - Start an LTTng tracing session SYNOPSIS @@ -15,37 +16,66 @@ SYNOPSIS DESCRIPTION ----------- -The `lttng start` command starts the various LTTng tracers for a -given inactive tracing session. +The `lttng start` command starts a tracing session, that is, it +activates the LTTng tracers for: -Starting the LTTng tracers has the effect that all enabled event rules -within enabled channels can make their target event sources _emit_ trace -events. Whether they are recorded to the local file system, sent over -the network, or not recorded at all depends on the specific -configuration of the tracing session in which tracing is started. See -man:lttng-create(1) for different session modes. +With the 'SESSION' argument:: + The tracing session named 'SESSION'. -A tracing session with running tracers is said to be _active_. Active -tracing sessions can return to the inactive state using the -man:lttng-stop(1) command. +Without the 'SESSION' argument:: + The current tracing session (see man:lttng-concepts(7) to learn more + about the current tracing session). -If 'SESSION' is omitted, the LTTng tracers are started for the current -tracing session (see man:lttng-create(1) for more information -about the current tracing session). Otherwise, they are started for the -existing tracing session named 'SESSION'. `lttng list` -outputs all the existing tracing sessions (see man:lttng-list(1)). +See man:lttng-concepts(7) to learn more about tracing sessions. +The selected tracing session must be inactive (stopped). A tracing +session is inactive on creation (see man:lttng-create(1)). -include::common-cmd-options-head.txt[] +A `start-session` trigger action can also start a tracing session +(see man:lttng-add-trigger(1)). +See the <> section below for usage examples. -include::common-cmd-help-options.txt[] +Stop an active tracing session with the man:lttng-stop(1) command. -include::common-cmd-footer.txt[] +include::common-lttng-cmd-options-head.txt[] + + +include::common-lttng-cmd-help-options.txt[] + + +include::common-lttng-cmd-after-options.txt[] + + +[[examples]] +EXAMPLES +-------- +.Start the current tracing session. +==== +[role="term"] +---- +$ lttng start +---- +==== + +.Start a specific tracing session. +==== +[role="term"] +---- +$ lttng start my-session +---- +==== + + +include::common-footer.txt[] SEE ALSO -------- +man:lttng(1), +man:lttng-add-trigger(1), +man:lttng-create(1), +man:lttng-enable-event(1), man:lttng-stop(1), -man:lttng(1) +man:lttng-concepts(7)