X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=trunk%2Flttv%2FQUICKSTART.html;h=6c6abb54506256b189d37384693955085d4c79f7;hb=47e2b1954d6c6af938e4b8285db2953002049e48;hp=98079c7accc37a1a67e39b68a7d161def55ecb8a;hpb=df7f63ab9e7699a88909ba141753bdaf90b95df6;p=lttv.git diff --git a/trunk/lttv/QUICKSTART.html b/trunk/lttv/QUICKSTART.html index 98079c7a..6c6abb54 100644 --- a/trunk/lttv/QUICKSTART.html +++ b/trunk/lttv/QUICKSTART.html @@ -1,14 +1,15 @@
--
Tools needed to follow the package download steps : @@ -129,7 +146,7 @@ href="http://ltt.polymtl.ca/svn/trunk/lttv/doc/developer/lttng-lttv-compatibilit versions compatibility. -
su - @@ -141,7 +158,7 @@ bzip2 -cd patch-2.6.X-lttng-0.x.xx.tar.bz2 | tar xvof --
su - @@ -157,7 +174,7 @@ mv linux-2.6.X linux-2.6.X-lttng-0.x.xx-
su - @@ -214,7 +231,8 @@ Select the Linux 2.6.X-lttng-0.x.xx kernel in your boot loader. ---
You must activate debugfs and specify a mount point. This is typically done in @@ -289,7 +307,9 @@ echo trap-trace >> /etc/modules #echo lockdep-trace >> /etc/modules -
(note : the ltt-control package contains lttd and lttctl. Although it has the same name as the ltt-control kernel module, they are *not* the same thing.) @@ -307,7 +327,7 @@ make make install -
Make sure you selected the kernel menuconfig option : @@ -323,8 +343,9 @@ channel : userspace event name : event-
su - @@ -339,16 +360,10 @@ make make install-
-See markers-userspace-0.5.tar.bz2 or more recent. -
@@ -445,42 +460,79 @@ lttctl -C -w /tmp/trace3 -o channel.all.overwrite=1 trace3 lttctl -D -w /tmp/trace3 trace3-************************************************************** -** Section 4 * Adding new instrumentations with the markers ** -************************************************************** +
+ +
+See Documentation/markers.txt +and Documentation/tracepoints.txt in your kernel tree. +
+Also see ltt/probes/ +for LTTng probe examples. + +
Get the latest markers-userspace-*.tar.bz2 and see the Makefile and examples. It allows inserting markers in executables and libraries, currently only on x86_32 and x86_64. +See markers-userspace-0.5.tar.bz2 or more recent. -*********************************************************** -** Section 5 * Creating Debian or RPM packages ** -*********************************************************** +
+Note that a new design document for a 3rd generation of tracepoint/marker-based +userspace tracing is available at LTTng User-space Tracing +Design". This new infrastructure is not yet implemented. -* Create custom LTTV Debian packages +
+The easy quick-and-dirty way to perform userspace tracing is currently to write +an string to /mnt/debugfs/ltt/write_event. See Userspace tracing in the +installation for sources section of this document. -Use : dpkg-buildpackage -rfakeroot +
-* Create custom LTTng packages +
+Use : dpkg-buildpackage -rfakeroot ++
+You should then have your LTTV .deb files created for your architecture. -Get the build tree with patches applies as explained in section 2. +
+For building LTTng Debian packages : +get the build tree with patches applies as explained in section 2. +
make menuconfig (or xconfig or config) (customize your configuration) make-kpkg kernel_image - ++
You will then see your freshly created .deb in /usr/src. Install it with +
dpkg -i /usr/src/(image-name).deb - ++
Then, follow the section "Editing the system wide configuration" in section 2.