X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fman%2Flttng-start.1.txt;h=b595b2f5ce2f804f605f99ebd350fe910d6ab1a4;hb=HEAD;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..f3ee0e785 100644 --- a/doc/man/lttng-start.1.txt +++ b/doc/man/lttng-start.1.txt @@ -1,51 +1,106 @@ lttng-start(1) ============== +:revdate: 14 June 2021 NAME ---- -lttng-start - Start LTTng tracers +lttng-start - Start an LTTng recording session SYNOPSIS -------- [verse] -*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *start* ['SESSION'] +*lttng* ['linkgenoptions:(GENERAL OPTIONS)'] *start* [option::--all | option::--glob 'SESSION' | 'SESSION' ] DESCRIPTION ----------- -The `lttng start` command starts the various LTTng tracers for a -given inactive tracing session. +The `lttng start` command starts a recording 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 recording 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 recording session (see man:lttng-concepts(7) to learn + more about the current recording 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 recording sessions. +The selected recording session must be inactive (stopped). A recording +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 recording session +(see man:lttng-add-trigger(1)). +See the ``<>'' section below for usage examples. -include::common-cmd-help-options.txt[] +Stop an active recording 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[] + +option:-a, option:--all:: + Start all sessions. + +option:-g, option:--glob:: + Interpret SESSION as a globbing pattern. + +include::common-lttng-cmd-after-options.txt[] + + +[[examples]] +EXAMPLES +-------- +.Start the current recording session. +==== +[role="term"] +---- +$ lttng start +---- +==== + +.Start a specific recording session. +==== +[role="term"] +---- +$ lttng start my-session +---- +==== + +.Start all sessions. +==== +See the option::--all option. + +[role="term"] +---- +$ lttng start --all +---- +==== + +.Start all sessions with the suffix foo. +==== +See the option::--glob option. + +[role="term"] +---- +$ lttng start --glob '*foo' +---- +==== + + +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)