X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=trunk%2Flttv%2FQUICKSTART.html;h=220ce05182b680f454b34a7ee1a065c024456457;hb=70a3fc4389cc32739b499158ad42096e1fc19847;hp=daef794ced08652e46c3190369d27599ab89c510;hpb=6f88b01deacc64482fff0251775cb5c4f329c1a0;p=lttv.git diff --git a/trunk/lttv/QUICKSTART.html b/trunk/lttv/QUICKSTART.html index daef794c..220ce051 100644 --- a/trunk/lttv/QUICKSTART.html +++ b/trunk/lttv/QUICKSTART.html @@ -12,27 +12,51 @@ Last update : January 21st, 2009
(originally known as the LTTng QUICKSTART guide)

Table of Contents

- -
  • Installing a LTTng kernel +
  • Prerequisistes
  • +
  • Getting the LTTng packages
  • +
  • Getting the LTTng kernel sources
  • +
  • Installing a LTTng kernel
  • Editing the system wide configuration
  • Getting and installing the -ltt-control package -
  • Userspace Tracing +ltt-control package
  • +
  • Userspace Tracing
  • Getting and installing the LTTV package +
  • Using LTTng and LTTV
  • + +
  • Adding kernel and user-space -tracepoints
  • +instrumentation + +
  • Creating Debian and RPM packages -from LTTV +from LTTV
  • + + +
  • Examples of LTTng use in the +field
  • @@ -40,12 +64,13 @@ from LTTV

    Introduction

    -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 @@ -59,8 +84,9 @@ The lttng patch is necessary to have the tracing hooks in the kernel.

    Supported architectures : -br> +
    LTTng :
    +

  • x86 32/64 bits
  • PowerPC 32 and 64 bits
  • ARM (with limited timestamping precision, e.g. 1HZ. Need @@ -69,6 +95,7 @@ architecture-specific support for better precision)

    LTTV :
    +
  • Intel 32/64 bits
  • PowerPC 32 and 64 bits
  • Possibly others. Takes care of endianness and type size difference between @@ -360,12 +387,13 @@ make install

    Using LTTng and LTTV

    -
  • IMPORTANT : Arm Linux Kernel Markers after each boot
  • +
  • IMPORTANT : Arm Linux Kernel Markers after each boot before tracing
  •  ltt-armall
     
    -
  • Use graphical LTTV to control tracing and analyse traces
  • +

    Use graphical LTTV to control +tracing and analyse traces

     lttv-gui (or /usr/local/bin/lttv-gui)
       - Spot the "Tracing Control" icon : click on it
    @@ -377,7 +405,7 @@ lttv-gui (or /usr/local/bin/lttv-gui)
           * You should now see a trace
     
    -
  • Use text mode LTTng to control tracing
  • +

    Use text mode LTTng to control tracing

     The tracing can be controlled from a terminal by using the lttctl command (as
     root).
    @@ -399,7 +427,7 @@ 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.)
     
    -
  • Use text mode LTTV
  • +

    Use text mode LTTV

    Feel free to look in /usr/local/lib/lttv/plugins to see all the text and graphical plugins available. @@ -417,7 +445,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. -

  • Hybrid mode
  • +

    Tracing in "Hybrid" mode

    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 +470,8 @@ lttctl -D -w /tmp/trace2 trace2

    Each "overwrite" channel is flight recorder channel. + +

    Tracing in flight recorder mode

  • Flight recorder mode
  • The flight recorder mode writes data into overwritten buffers for all channels, @@ -462,14 +492,24 @@ lttctl -D -w /tmp/trace3 trace3 markers

    +

    Adding kernel +instrumentation

    +

    -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
  • +

    Adding userspace instrumentation

    -

    +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 +520,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 +533,7 @@ installation for sources section of this document.

    Creating Debian or RPM packages

    -

  • Create custom LTTV Debian packages
  • +

    Create custom LTTV Debian packages

     Use : dpkg-buildpackage -rfakeroot
    @@ -501,7 +541,7 @@ Use : dpkg-buildpackage -rfakeroot
     

    You should then have your LTTV .deb files created for your architecture. -

  • Create custom LTTng packages
  • +

    Create custom LTTng packages

    For building LTTng Debian packages : get the build tree with patches applies as explained in section 2. @@ -518,7 +558,50 @@ dpkg -i /usr/src/(image-name).deb

    Then, follow the section "Editing the system wide configuration" in section 2. +


    +

    Examples of LTTng use in the field

    +

    +A few examples of successful LTTng users : +