X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=trunk%2Flttv%2FQUICKSTART.html;h=31c6bbae40e2c320d64f7633e12eb931e08b2ce6;hb=0e12ccd4b1063e26bc14dbde81920ae41dd868a3;hp=719b462015fdca4eeb7c9bf49018a49f7ef76d56;hpb=2d540155a90f950cbda2d6f5f773e0c2206887b7;p=lttv.git diff --git a/trunk/lttv/QUICKSTART.html b/trunk/lttv/QUICKSTART.html index 719b4620..31c6bbae 100644 --- a/trunk/lttv/QUICKSTART.html +++ b/trunk/lttv/QUICKSTART.html @@ -1,20 +1,24 @@
--This document is made of four parts : the first one explains how +This document is made of five parts : the first one explains how to install LTTng and LTTV from sources, the second one describes the steps to follow to trace a system and view it. The third part explains briefly how to add a new trace point to the kernel and to user space -applications. The fourth and last part explains how to create Debian or RPM -packages from the LTTng and LTTV sources. +applications. The fourth part explains how to create Debian or RPM +packages from the LTTng and LTTV sources. The fifth and last part describes use +of LTTng in the field.
These operations are made for installing the LTTng 0.86 tracer on a linux 2.6.X
kernel. You will also find instructions for installation of LTTV 0.12.x : the
@@ -54,21 +82,33 @@ To see the list of compatibilities between LTTng, ltt-control, LTTV, please
refer to :
LTTng+LTTV versions compatibility
-The lttng patch is necessary to have the tracing hooks in the kernel.
+
+The ongoing work had the Linux Kernel Markers integrated in the mainline Linux
+kernel since Linux 2.6.24 and the Tracepoints since 2.6.28. In its current
+state, the lttng patchset is necessary to have the trace clocksource, the
+instrumentation and the LTTng high-speed data extraction mechanism added to the
+kernel.
-Supported architectures :
-br>
+
ltt-armall-
lttv-gui (or /usr/local/bin/lttv-gui) - Spot the "Tracing Control" icon : click on it @@ -377,7 +418,7 @@ lttv-gui (or /usr/local/bin/lttv-gui) * You should now see a trace-
The tracing can be controlled from a terminal by using the lttctl command (as root). @@ -394,12 +435,12 @@ see lttctl --help for details.
(note : to see if the buffers has been filled, look at the dmesg output after -lttctl -R or after stopping tracing from the GUI, it will show an event lost +lttctl -D or after stopping tracing from the GUI, it will show an event lost count. If it is the case, try using larger buffers. See lttctl --help to learn how. lttv now also shows event lost messages in the console when loading a trace with missing events or lost subbuffers.) -
Feel free to look in /usr/local/lib/lttv/plugins to see all the text and graphical plugins available. @@ -417,7 +458,7 @@ of the events to the clipboard and paste them in the GUI by clicking on the bottom right label "Current time". Support for this type of filtering should be added to the filter module soon. -
Starting from LTTng 0.5.105 and ltt-control 0.20, a new mode can be used : hybrid. It can be especially useful when studying big workloads on a long period @@ -442,6 +483,8 @@ lttctl -D -w /tmp/trace2 trace2
Each "overwrite" channel is flight recorder channel. + +
The flight recorder mode writes data into overwritten buffers for all channels, @@ -462,14 +505,24 @@ lttctl -D -w /tmp/trace3 trace3 markers
+
-See Documentation/markers.txt and Documentation/tracepoints.txt in your kernel +See Documentation/markers.txt +and Documentation/tracepoints.txt in your kernel tree. +
+Also see ltt/probes/ +for LTTng probe examples. -
+Add new events to userspace programs with +userspace markers packages. Get the latest markers-userspace-*.tar.bz2 and see the Makefile and examples. It allows inserting markers in executables and libraries, currently only on x86_32 and x86_64. @@ -480,7 +533,7 @@ href="http://ltt.polymtl.ca/packages/markers-userspace-0.5.tar.bz2">markers-user Note that a new design document for a 3rd generation of tracepoint/marker-based userspace tracing is available at LTTng User-space Tracing -Design". This new infrastructure is not yet implemented. +Design. This new infrastructure is not yet implemented.
The easy quick-and-dirty way to perform userspace tracing is currently to write @@ -493,7 +546,7 @@ installation for sources section of this document.
-
Use : dpkg-buildpackage -rfakeroot @@ -501,7 +554,7 @@ Use : dpkg-buildpackage -rfakerootYou should then have your LTTV .deb files created for your architecture. -
For building LTTng Debian packages : get the build tree with patches applies as explained in section 2. @@ -518,7 +571,50 @@ dpkg -i /usr/src/(image-name).deb
Then, follow the section "Editing the system wide configuration" in section 2. +
+A few examples of successful LTTng users : + +