mkdir /usr/src/lttng
cd /usr/src/lttng
(see http://ltt.polymtl.ca/lttng for package listing)
-wget http://ltt.polymtl.ca/lttng/lttng-modules-0.2.tar.bz2
+wget http://ltt.polymtl.ca/lttng/lttng-modules-0.3.tar.bz2
wget http://ltt.polymtl.ca/lttng/patch-2.6.12-rc4-mm2-lttng-0.4.bz2
-bzip2 -cd lttng-modules-0.2.tar.bz2 | tar xvof -
+bzip2 -cd lttng-modules-0.3.tar.bz2 | tar xvof -
* Getting LTTng kernel sources
Select the following options :
[*] Linux Trace Toolkit Instrumentation Support
[M] or [*] Linux Trace Toolkit Tracer
+ It makes no difference for the rest of the procedure whether the Tracer
+ is compiled built-in or as a module.
do NOT activate (not ready yet) :
[ ] Align Linux Trace Toolkit Traces
[ ] Activate Linux Trace Toolkit Heartbeat Timer
Select <Exit>
Select <Yes>
make
-make install
make modules_install
+make install
You must activate relayfs and specify a mount point. This is typically done in
fstab such that it happens at boot time.
If you have never used RelayFS before, these operation would do this for you :
+
mkdir /mnt/relayfs
-echo "relayfs /mnt/relayfs relayfs rw 0 0" \
- >> /etc/fstab
+cp /etc/fstab /etc/fstab.lttng.bkp
+echo "relayfs /mnt/relayfs relayfs rw 0 0" >> /etc/fstab
reboot
* Install the ltt-modules
su -
-cd /usr/src/lttng/lttng-modules-0.2
+cd /usr/src/lttng/lttng-modules-0.3
KERNELDIR=/usr/src/linux-2.6.12-rc4-mm2-lttng-0.4 make
KERNELDIR=/usr/src/linux-2.6.12-rc4-mm2-lttng-0.4 make modules_install
You need to load the ltt-control module to be able to control tracing from user
space. This is done by issuing the command :
+
modprobe ltt-control
You can automate at boot time loading the ltt-control module by :
+
echo ltt-control >> /etc/modules