Documentation : --help and manpage for live streaming
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 21 Oct 2013 04:00:34 +0000 (00:00 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Mon, 21 Oct 2013 04:00:34 +0000 (00:00 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
doc/lttngtop.1
src/lttngtop.c

index 0f4614eb267fa6a9cfe9546db5aa74d0a94a4ef1..f83af75dc871055f6672ba83395155b8e57b1bd7 100644 (file)
@@ -48,14 +48,35 @@ launched as root.
 
 .nf
 lttng create lttngtop
-lttng enable-event -k -a
-lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses -t perf:major-faults -t perf:branch-load-misses
-lttng start
+lttng enable-event -k lttng_statedump_start,lttng_statedump_end,lttng_statedump_process_state,lttng_statedump_file_descriptor,lttng_statedump_vm_map,lttng_statedump_network_interface,lttng_statedump_interrupt,sched_process_free,sched_switch -s lttngtop
+lttng enable-event -k --syscall -a -s lttngtop
+lttng add-context -k -t pid -t procname -t tid -t ppid -t perf:cache-misses -t perf:major-faults -t perf:branch-load-misses -s lttngtop
+lttng start lttngtop
 sleep 10
-lttng stop
-lttng destroy
+lttng stop lttngtop
+lttng destroy lttngtop
 .fi
 
+.SH "LIVE STREAMING"
+
+.PP
+In addition to offline traces, LTTngTop can read traces while they are being recorded.
+The official supported way of doing live streaming is using lttng-tools >=2.4 and
+following the documentation in live-reading-howto.txt.
+An other experimental way of doing live tracing is with mmap, but this requires some
+more work because is not officially supported and requires out-of-tree patches to
+lttng-tools and babeltrace.
+
+.PP
+To use the network live-reading, the user only needs to specify the relayd hostname
+or IP address with the option -r. For now, LTTngTop will only connect to the first
+live session established on the relay, but in a near future, the user will be able
+to choose which session to attach to.
+
+The default mode after attaching to a session is to start reading the trace from
+this point in time. In order to read the trace from the beginning, the user can specify
+the -b option.
+
 .SH "KEY BINDINGS"
 
 .TP 7
index 8cec6d52c1ffeb0765cc56eb93f914c374493d47..bfae663182c0cb89a9dd0d59da74a5627d66f09a 100644 (file)
@@ -548,6 +548,8 @@ void usage(FILE *fp)
        fprintf(fp, "  -f, --child              Follow threads associated with selected PIDs\n");
        fprintf(fp, "  -n, --hostname           Comma-separated list of hostnames to display (require hostname context in trace)\n");
        fprintf(fp, "  -k, --kprobes            Comma-separated list of kprobes to insert (same format as lttng enable-event)\n");
+       fprintf(fp, "  -r, --relay-hostname     Network live streaming : hostname of the lttng-relayd (default port)\n");
+       fprintf(fp, "  -b, --begin              Network live streaming : read the trace for the beginning of the recording\n");
 }
 
 /*
This page took 0.024181 seconds and 4 git commands to generate.