This document is made of four 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.
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
Linux Trace Toolkit Viewer.
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.
Supported architectures :
LTTng :
Tools needed to follow the package download steps :
You have to install the standard development libraries and programs necessary to compile a kernel :
(from Documentation/Changes in the Linux kernel tree) Gnu C 2.95.3 # gcc --version Gnu make 3.79.1 # make --version binutils 2.12 # ld -v util-linux 2.10o # fdformat --version module-init-tools 0.9.10 # depmod -V
You might also want to have libncurses5 to have the text mode kernel configuration menu, but there are alternatives.
Prerequisites for LTTV 0.x.x installation are :
gcc 3.2 or better gtk 2.4 or better development libraries (Debian : libgtk2.0, libgtk2.0-dev) (Fedora : gtk2, gtk2-devel) note : For Fedora users : this might require at least core 3 from Fedora, or you might have to compile your own GTK2 library. glib 2.4 or better development libraries (Debian : libglib2.0-0, libglib2.0-dev) (Fedora : glib2, glib2-devel) libpopt development libraries (Debian : libpopt0, libpopt-dev) (Fedora : popt) libpango development libraries (Debian : libpango1.0, libpango1.0-dev) (Fedora : pango, pango-devel) libc6 development librairies (Debian : libc6, libc6-dev) (Fedora : glibc, glibc)