X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2FQUICKSTART;h=356262fc71a5fd9f90cfdbb30154bee3a4bc4e20;hb=9c86b517eb9a35369e6c00723677f7df9b60900a;hp=b5d31f7e30e64d105f1d20150a76c675f3babe52;hpb=208a5623da00e5ca4d2f9af4ddae15bf51152207;p=lttv.git diff --git a/ltt/branches/poly/QUICKSTART b/ltt/branches/poly/QUICKSTART index b5d31f7e..356262fc 100644 --- a/ltt/branches/poly/QUICKSTART +++ b/ltt/branches/poly/QUICKSTART @@ -38,6 +38,7 @@ supported architectures : Intel Pentium (UP/SMP) with TSC PowerPC 32 and 64 bits ARM +x86_64 C2 Microsystems (variant of MIPS) LTTV : @@ -204,7 +205,7 @@ bzip2 -cd patch-2.6.X-lttng-0.x.xx.tar.bz2 | tar xvof - su - cd /usr/src -wget http://kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.X.tar.bz2 +wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.X.tar.bz2 bzip2 -cd linux-2.6.X.tar.bz2 | tar xvof - cd linux-2.6.X cat /usr/src/lttng/patch-2.6.X-lttng-0.x.xx* | patch -p1 @@ -247,10 +248,10 @@ make modules_install -- on X86, X86_64 make install reboot -Select the Linux 2.6.16-lttng-0.x.xx kernel in your boot loader. +Select the Linux 2.6.17-lttng-0.x.xx kernel in your boot loader. -- on PowerPC -cp vmlinux /boot/vmlinux-2.6.X-lttng-0.x.xx +cp vmlinux.strip /boot/vmlinux-2.6.X-lttng-0.x.xx cp System.map /boot/System.map-2.6.X-lttng-0.x.xx cp .config /boot/config-2.6.X-lttng-0.x.xx depmod -ae -F /boot/System.map-2.6.X-lttng-0.x.xx 2.6.X-lttng-0.x.xx @@ -260,30 +261,32 @@ that comes first is the default kernel) ybin select the right entry at the yaboot prompt (see choices : tab, select : type the kernel name followed by enter) -Select the Linux 2.6.16-lttng-0.x.xx kernel in your boot loader. +Select the Linux 2.6.17-lttng-0.x.xx kernel in your boot loader. -- * Editing the system wide configuration -You must activate relayfs and specify a mount point. This is typically done in +You must activate debugfs 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 : +If you have never used DebugFS before, these operation would do this for you : -mkdir /mnt/relayfs +mkdir /mnt/debugfs cp /etc/fstab /etc/fstab.lttng.bkp -echo "relayfs /mnt/relayfs relayfs rw 0 0" >> /etc/fstab +echo "debugfs /mnt/debugfs debugfs rw 0 0" >> /etc/fstab -then, rebooting or issuing the following command will activate relayfs : +then, rebooting or issuing the following command will activate debugfs : -mount /mnt/relayfs +mount /mnt/debugfs 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 +modprobe ltt-core +modprobe ltt-relay If you want to have complete information about the kernel state (including all the process names), you need to load the ltt-statedump module. This is done by @@ -294,6 +297,8 @@ modprobe ltt-statedump You can automate at boot time loading the ltt-control module by : echo ltt-control >> /etc/modules +echo ltt-core >> /etc/modules +echo ltt-relay >> /etc/modules echo ltt-statedump >> /etc/modules @@ -354,7 +359,7 @@ root). Start tracing : -lttctl -n trace -d -l /mnt/relayfs/ltt -t /tmp/trace +lttctl -n trace -d -l /mnt/debugfs/ltt -t /tmp/trace Stop tracing and destroy trace channels : @@ -401,14 +406,14 @@ cp process.xml yourfacility.xml cd /tmp /usr/local/bin/genevent /usr/local/share/LinuxTraceToolkitViewer/facilities/yourfacility.xml cp ltt-facility-yourfacility.h ltt-facility-id-yourfacility.h \ - /usr/src/linux-2.6.16-lttng-0.x.xx8/include/linux/ltt + /usr/src/linux-2.6.17-lttng-0.x.xx8/include/linux/ltt cp ltt-facility-loader-yourfacility.c ltt-facility-loader-yourfacility.h \ - /usr/src/linux-2.6.16-lttng-0.x.xx/ltt + /usr/src/linux-2.6.17-lttng-0.x.xx/ltt * edit the kernel file you want to instrument - Add #include at the beginning of the file. - Add a call to the tracing functions. See their names and parameters in - /usr/src/linux-2.6.16-lttng-0.x.xx/include/linux/ltt/ltt-facility-yourfacility.h + /usr/src/linux-2.6.17-lttng-0.x.xx/include/linux/ltt/ltt-facility-yourfacility.h * Add new events to userspace programs with genevent See http://ltt.polymtl.ca/ > USERSPACE TRACING QUICKSTART