Add --live to lttng.1 man page
authorDavid Goulet <dgoulet@efficios.com>
Thu, 10 Oct 2013 18:41:46 +0000 (14:41 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 10 Oct 2013 18:42:44 +0000 (14:42 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
doc/man/lttng.1

index 84bc370c758e78e863c0710226ac0b1ff27c5dcb..42f25e4354350e6ffbe3a3885a730421bf33334a 100644 (file)
@@ -253,6 +253,26 @@ Traces will not be outputted
 Set the session in snapshot mode. Created in no-output mode and uses the
 URL, if one, as the default snapshot output.  Every channel will be set
 in overwrite mode and with mmap output (splice not supported).
+.TP
+.BR "\-\-live USEC"
+Set the session exclusively in live mode. The paremeter is the delay in micro
+seconds before the data is flushed and streamed. The live mode allows you to
+stream the trace and view it while it's being recorded by any tracer. For that,
+you need a lttng-relayd and this session requires a network URL (\-U or
+\-C/\-D).
+
+To read a live session, you can use babeltrace(1) or the live streaming
+protocol in doc/live-reading-protocol.txt. Here is an example:
+
+.nf
+$ lttng-relayd -o /tmp/lttng
+$ lttng create --live 200000 -U net://localhost
+$ lttng enable-event -a --userspace
+$ lttng start
+.fi
+
+After the start, you'll be able to read the events while they are being
+recorded in /tmp/lttng.
 
 .TP
 .BR "\-U, \-\-set-url=URL"
This page took 0.028406 seconds and 5 git commands to generate.