2.Installation
2.1 Patched Kernel and Kernel module
-
Make sure you have a LTT-supported Linux kernel
source installed. If you don't know how to do this, we suggest going through
the Linux kernel compilation HOWTO available at www.linuxdoc.org.
Do not compile it yet however, although it doesn't matter if you did. It
is just a waste of time at this point.
-
At this point, both the Linux kernel and the Linux trace toolkit
should be uncompressed. If this not the case, change to the root account
and type
cd /usr/src
tar xvzf [location of LTT]/TracePackage.tgz
Change to the newly created TracePackage directory
cd TracePackage
Copy the patch to the directory containing the uncompressed source code
cp patch-ltt-kernelversion-yymmdd [location of kernel]/linux/
Apply the patch to the kernel
cd [location of kernel]/linux/
patch -p1 < patch-ltt-kernelversion-yymmdd
Configure and compile the patched kernel. This is documented in the documentation
accompanying the kernel and in the Linux kernel compilation HOWTO available
at www.linuxdoc.org. Towards the end of
the configuration, you will find a section called "Kernel Tracing". In this section
you will be prompted to select whether you want the tracer to be part of the kernel,
whether you want it as a module or whether you do not want any trace support in the
kernel.
Edit /etc/lilo.conf and add an entry for the newly compiled kernel. Typing
man lilo.conf should help you do this successfully.
2.2 Trace daemon
cd TraceDaemon
make
cd ..
2.3 Data decoder
-
Compile the data decoder
-
With the GTK+ library
cd TraceToolkit
make
cd ..
-
Without the GTK+ library (There will be no visual interface to the decoder)
cd TraceToolkit
make -f Makefile.nogtk
cd ..
That's it! By now, you should have a patched kernel ready to be used, as
well as the other software be able to fetch the results and view them.
Next section will now help you use all this!