2.2. Installing LTT kernel tracer

The goal of this guide is not to describe the Linux Trace Toolkit project in details, as it is a seperate project for now. It just gives pointers to the basic steps you must take in order to generate a trace suitable for conversion.

First, go to the ltt.polymtl.ca website, in the "Patches for the Official LTT" section. Use the latest version of patches available. The file name convention used goes like this : aaaaaa-x.x--bbbbb-y.y.patch. That means a patch made for aaaaa, release x.x, that adds bbbbb, release y.y to it. Notice the presence of the -- sign that separates the "from" field from the name of the patch applied. This way, it's impossible to be mixed up on the specific sequence of patch application. I suggest that you use the "relayfs", "ltt" and then "md" patches. The "md" patch adds events useful to LTTV that are not in the official LTT.

Once you have the patches you need, get the matching Linux kernel version, apply the patches on it, configure it, install it, reboot with the new kernel. You then have an instrumented kernel ready for tracing. If you have problems during this phase, please refer to www.opersys.com/ltt. If you need instructions about how to recompile a kernel, see Kernel-HOWTO.