update features
[lttv.git] / trunk / lttv / QUICKSTART.html
CommitLineData
c924c2c6 1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
bc58079d 4 <title>Linux Trace Toolkit Next Generation User Documentation</title>
c924c2c6 5</head>
6 <body>
7
bc58079d 8<h1>Linux Trace Toolkit Next Generation User Documentation</h1>
c924c2c6 9
c924c2c6 10Author : Mathieu Desnoyers, September 2005<br>
24070967 11Last update : January 21st, 2009<br>
bc58079d 12(originally known as the LTTng QUICKSTART guide)
24070967 13
14<h2>Table of Contents</h2>
24070967 15
d58b406f 16<ul>
f9ff56f3 17<li><a href="#intro" name="TOCintro">Introduction</a></li>
d58b406f 18
24070967 19<li><a href="#section1" name="TOCsection1">Installing LTTng and LTTV from
6f88b01d 20sources</a></li>
38b04cd7 21<ul>
2d540155 22<li><a href="#prerequisites" name="TOCprerequisites">Prerequisistes</li>
23<li><a href="#getlttng" name="TOCgetlttng">Getting the LTTng packages</li>
24<li><a href="#getlttngsrc" name="TOCgetlttngsrc">Getting the LTTng kernel sources</li>
25<li><a href="#installlttng" name="TOCinstalllttng">Installing a LTTng kernel</li>
6f88b01d 26<li><a href="#editconfig" name="TOCeditconfig">Editing the system wide
27configuration</a>
28<li><a href="#getlttctl" name="TOCgetlttctl">Getting and installing the
2d540155 29ltt-control package</li>
30<li><a href="#userspacetracing" name="TOCuserspacetracing">Userspace Tracing</li>
6f88b01d 31<li><a href="#getlttv" name="TOCgetlttv">Getting and installing the LTTV package</ul>
d58b406f 32
24070967 33<li><a href="#section2" name="TOCsection2">Using LTTng and LTTV</a></li>
d58b406f 34<ul>
35<li><a href="#uselttvgui" name="TOCuselttvgui">Use graphical LTTV to control
36tracing and analyse traces</a></li>
37<li><a href="#uselttngtext" name="TOCuselttngtext">Use text mode LTTng to
f7828b7c 38control tracing</a></li>
d58b406f 39<li><a href="#uselttvtext" name="TOCuselttvtext">Use text mode LTTV</a></li>
40<li><a href="#hybrid" name="TOChybrid">Tracing in "Hybrid" mode</a></li>
41<li><a href="#flight" name="TOCflight">Tracing in flight recorder mode</a></li>
d58b406f 42</ul>
43
24070967 44<li><a href="#section3" name="TOCsection3">Adding kernel and user-space
47e2b195 45instrumentation</a>
46<ul>
47<li><a href="#kerneltp" name="TOCkerneltp">Adding kernel instrumentation</a></li>
48<li><a href="#usertp" name="TOCusertp">Adding userspace instrumentation</a></li>
49</ul>
d58b406f 50
633bc4a3 51<li><a href="#section4" name="TOCsection4">Creating Debian and RPM packages
98dde887 52from LTTV</a></li>
53<ul>
54<li><a href="#pkgdebian" name="TOCpkgdebian">Create custom LTTV Debian
55<li><a href="#pkglttng" name="TOCpkglttng">Create custom LTTng packages</a></li>
98dde887 56</ul>
c924c2c6 57
70a3fc43 58<li><a href="#section5" name="TOCsection5">Examples of LTTng use in the
59field</a></li>
60
f9ff56f3 61</ul>
62
63<hr />
64
b9e1fab1 65<h2><a href="#TOCintro" name="intro">Introduction</a></h2>
c924c2c6 66<p>
70a3fc43 67This document is made of five parts : the first one explains how
24070967 68to install LTTng and LTTV from sources, the second one describes the steps
633bc4a3 69to follow to trace a system and view it. The third part explains
c924c2c6 70briefly how to add a new trace point to the kernel and to user space
70a3fc43 71applications. The fourth part explains how to create Debian or RPM
72packages from the LTTng and LTTV sources. The fifth and last part describes use
73of LTTng in the field.
c924c2c6 74<p>
24070967 75These operations are made for installing the LTTng 0.86 tracer on a linux 2.6.X
c924c2c6 76kernel. You will also find instructions for installation of LTTV 0.12.x : the
77Linux Trace Toolkit Viewer.
24070967 78To see the list of compatibilities between LTTng, ltt-control, LTTV, please
79refer to :
c924c2c6 80<a
81href="http://ltt.polymtl.ca/svn/trunk/lttv/doc/developer/lttng-lttv-compatibility.html">LTTng+LTTV versions compatibility</a>
24070967 82The lttng patch is necessary to have the tracing hooks in the kernel.
c924c2c6 83
24070967 84<br>
85<br>
633bc4a3 86Supported architectures :
70a3fc43 87<br>
c924c2c6 88LTTng :<br>
70a3fc43 89<br>
c924c2c6 90<li> x86 32/64 bits
91<li> PowerPC 32 and 64 bits
92<li> ARM (with limited timestamping precision, e.g. 1HZ. Need
93architecture-specific support for better precision)
94<li> MIPS
95<br>
24070967 96<br>
c924c2c6 97LTTV :<br>
70a3fc43 98<br>
c924c2c6 99<li> Intel 32/64 bits
100<li> PowerPC 32 and 64 bits
101<li> Possibly others. Takes care of endianness and type size difference between
102the LTTng traces and the LTTV analysis tool.
103
f9ff56f3 104<hr />
105
c924c2c6 106
89aa576c 107<h2><a href="#TOCsection1" name="section1">Installation from sources</a></h2>
633bc4a3 108<p>
c924c2c6 109
6f88b01d 110<h3><a href="#TOCprerequisites" name="prerequisites">Prerequisites</a></h3>
633bc4a3 111<ul>
112<p>
c924c2c6 113Tools needed to follow the package download steps :
114
633bc4a3 115<li>wget
116<li>bzip2
117<li>gzip
118<li>tar
c924c2c6 119
633bc4a3 120<p>
c924c2c6 121You have to install the standard development libraries and programs necessary
122to compile a kernel :
123
84cf5903 124<PRE>
c924c2c6 125(from Documentation/Changes in the Linux kernel tree)
84cf5903 126Gnu C 2.95.3 # gcc --version
127Gnu make 3.79.1 # make --version
128binutils 2.12 # ld -v
129util-linux 2.10o # fdformat --version
130module-init-tools 0.9.10 # depmod -V
131</PRE>
c924c2c6 132
633bc4a3 133<p>
c924c2c6 134You might also want to have libncurses5 to have the text mode kernel
135configuration menu, but there are alternatives.
136
633bc4a3 137<p>
c924c2c6 138Prerequisites for LTTV 0.x.x installation are :
139
84cf5903 140<PRE>
141gcc 3.2 or better
142gtk 2.4 or better development libraries
c924c2c6 143 (Debian : libgtk2.0, libgtk2.0-dev)
144 (Fedora : gtk2, gtk2-devel)
145 note : For Fedora users : this might require at least core 3 from Fedora,
146 or you might have to compile your own GTK2 library.
84cf5903 147glib 2.4 or better development libraries
c924c2c6 148 (Debian : libglib2.0-0, libglib2.0-dev)
149 (Fedora : glib2, glib2-devel)
84cf5903 150libpopt development libraries
c924c2c6 151 (Debian : libpopt0, libpopt-dev)
152 (Fedora : popt)
84cf5903 153libpango development libraries
c924c2c6 154 (Debian : libpango1.0, libpango1.0-dev)
155 (Fedora : pango, pango-devel)
84cf5903 156libc6 development librairies
c924c2c6 157 (Debian : libc6, libc6-dev)
158 (Fedora : glibc, glibc)
84cf5903 159</PRE>
633bc4a3 160</ul>
c924c2c6 161
c8997124 162<li>Reminder</li>
c924c2c6 163
c8997124 164<p>
633bc4a3 165See the list of compatibilities between LTTng, ltt-control and LTTV at :
166<a
167href="http://ltt.polymtl.ca/svn/trunk/lttv/doc/developer/lttng-lttv-compatibility.html">LTTng+LTTV
168versions compatibility</a>.
c924c2c6 169
170
6f88b01d 171<h3><a href="#TOCgetlttng" name="getlttng">Getting the LTTng packages</a></h3>
c924c2c6 172
c8997124 173<PRE>
c924c2c6 174su -
175mkdir /usr/src/lttng
176cd /usr/src/lttng
177(see http://ltt.polymtl.ca/lttng for package listing)
178wget http://ltt.polymtl.ca/lttng/patch-2.6.X-lttng-0.x.xx.tar.bz2
179bzip2 -cd patch-2.6.X-lttng-0.x.xx.tar.bz2 | tar xvof -
c8997124 180</PRE>
c924c2c6 181
182
6f88b01d 183<h3><a href="#TOCgetlttngsrc" name="getlttngsrc">Getting LTTng kernel sources</a></h3>
c924c2c6 184
c8997124 185<PRE>
c924c2c6 186su -
187cd /usr/src
188wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.X.tar.bz2
189bzip2 -cd linux-2.6.X.tar.bz2 | tar xvof -
190cd linux-2.6.X
191- For LTTng 0.9.4- cat /usr/src/lttng/patch*-2.6.X-lttng-0.x.xx* | patch -p1
192- For LTTng 0.9.5+ apply the patches in the order specified in the series file,
193 or use quilt
194cd ..
195mv linux-2.6.X linux-2.6.X-lttng-0.x.xx
c8997124 196</PRE>
c924c2c6 197
198
6f88b01d 199<h3><a href="#TOCinstalllttng" name="installlttng">Installing a LTTng kernel</a></h3>
c924c2c6 200
c8997124 201<PRE>
c924c2c6 202su -
203cd /usr/src/linux-2.6.X-lttng-0.x.xx
204make menuconfig (or make xconfig or make config)
205 Select the < Help > button if you are not familiar with kernel
206 configuration.
207 Items preceded by [*] means they has to be built into the kernel.
208 Items preceded by [M] means they has to be built as modules.
209 Items preceded by [ ] means they should be removed.
210 go to the "General setup" section
211 Select the following options :
212 [*] Prompt for development and/or incomplete code/drivers
213 [*] Activate markers
214 [*] Activate userspace markers ABI (experimental, optional)
215 [*] Immediate value optimization (optional)
216 [*] Linux Trace Toolkit Next Generation (LTTng) --->
217 <M> or <*> Compile lttng tracing probes
218 <M> or <*> Linux Trace Toolkit High-speed Lockless Data Relay
219 <M> or <*> Linux Trace Toolkit Lock-Protected Data Relay
220 <M> or <*> Linux Trace Toolkit Serializer
221 <M> or <*> Linux Trace Toolkit Marker Control
222 <M> or <*> Linux Trace Toolkit Tracer
223 [*] Align Linux Trace Toolkit Traces
224 <M> or <*> Support logging events from userspace
225 [*] Support trace extraction from crash dump
226 <M> or <*> Linux Trace Toolkit Trace Controller
227 <M> or <*> Linux Trace Toolkit State Dump
228 Select <Exit>
229 Select <Exit>
230 Select <Yes>
231make
232make modules_install
233(if necessary, create a initrd with mkinitrd or your preferate alternative)
234(mkinitrd -o /boot/initrd.img-2.6.X-lttng-0.x.xx 2.6.X-lttng-0.x.xx)
235
236-- on X86, X86_64
237make install
238reboot
239Select the Linux 2.6.X-lttng-0.x.xx kernel in your boot loader.
240
241-- on PowerPC
242cp vmlinux.strip /boot/vmlinux-2.6.X-lttng-0.x.xx
243cp System.map /boot/System.map-2.6.X-lttng-0.x.xx
244cp .config /boot/config-2.6.X-lttng-0.x.xx
245depmod -ae -F /boot/System.map-2.6.X-lttng-0.x.xx 2.6.X-lttng-0.x.xx
246mkinitrd /boot/initrd.img-2.6.X-lttng-0.x.xx 2.6.X-lttng-0.x.xx
247(edit /etc/yaboot.conf to add a new entry pointing to your kernel : the entry
248that comes first is the default kernel)
249ybin
250select the right entry at the yaboot prompt (see choices : tab, select : type
251the kernel name followed by enter)
252Select the Linux 2.6.X-lttng-0.x.xx kernel in your boot loader.
253--
c8997124 254</PRE>
c924c2c6 255
6f88b01d 256<h3><a href="#TOCeditconfig" name="editconfig">Editing the system wide
257configuration</a></h3>
c924c2c6 258
c8997124 259<p>
c924c2c6 260You must activate debugfs and specify a mount point. This is typically done in
c8997124 261fstab such that it happens at boot time. If you have never used DebugFS before,
262these operation would do this for you :
c924c2c6 263
c8997124 264<PRE>
c924c2c6 265mkdir /mnt/debugfs
266cp /etc/fstab /etc/fstab.lttng.bkp
267echo "debugfs /mnt/debugfs debugfs rw 0 0" >> /etc/fstab
c8997124 268</PRE>
c924c2c6 269
c8997124 270<p>
c924c2c6 271then, rebooting or issuing the following command will activate debugfs :
c8997124 272<PRE>
c924c2c6 273mount /mnt/debugfs
c8997124 274</PRE>
c924c2c6 275
c8997124 276<p>
c924c2c6 277You need to load the LTT modules to be able to control tracing from user
278space. This is done by issuing the following commands. Note however
279these commands load all LTT modules. Depending on what options you chose to
280compile statically, you may not need to issue all these commands.
281
c8997124 282<PRE>
c924c2c6 283modprobe ltt-trace-control
284modprobe ltt-marker-control
285modprobe ltt-tracer
286modprobe ltt-serialize
287modprobe ltt-relay
288modprobe ipc-trace
289modprobe kernel-trace
290modprobe mm-trace
291modprobe net-trace
292modprobe fs-trace
293modprobe jbd2-trace
294modprobe ext4-trace
295modprobe syscall-trace
296modprobe trap-trace
297#if locking tracing is wanted, uncomment the following
298#modprobe lockdep-trace
c8997124 299</PRE>
c924c2c6 300
c8997124 301<p>
c924c2c6 302If you want to have complete information about the kernel state (including all
303the process names), you need to load the ltt-statedump module. This is done by
304issuing the command :
305
c8997124 306<PRE>
c924c2c6 307modprobe ltt-statedump
c8997124 308</PRE>
309<p>
c924c2c6 310You can automate at boot time loading the ltt-control module by :
311
c8997124 312<PRE>
c924c2c6 313cp /etc/modules /etc/modules.bkp
314echo ltt-trace-control >> /etc/modules
315echo ltt-marker-control >> /etc/modules
316echo ltt-tracer >> /etc/modules
317echo ltt-serialize >> /etc/modules
318echo ltt-relay >> /etc/modules
319echo ipc-trace >> /etc/modules
320echo kernel-trace >> /etc/modules
321echo mm-trace >> /etc/modules
322echo net-trace >> /etc/modules
323echo fs-trace >> /etc/modules
324echo jbd2-trace >> /etc/modules
325echo ext4-trace >> /etc/modules
326echo syscall-trace >> /etc/modules
327echo trap-trace >> /etc/modules
328#if locking tracing is wanted, uncomment the following
329#echo lockdep-trace >> /etc/modules
c8997124 330</PRE>
c924c2c6 331
6f88b01d 332
333<h3><a href="#TOCgetlttctl" name="getlttctl">Getting and installing the
334ltt-control package (on the traced machine)</a></h3>
c8997124 335<p>
c924c2c6 336(note : the ltt-control package contains lttd and lttctl. Although it has the
337same name as the ltt-control kernel module, they are *not* the same thing.)
c8997124 338
339<PRE>
c924c2c6 340su -
341cd /usr/src
342wget http://ltt.polymtl.ca/lttng/ltt-control-0.x-xxxx2006.tar.gz
343gzip -cd ltt-control-0.x-xxxx2008.tar.gz | tar xvof -
344cd ltt-control-0.x-xxxx2006
345(refer to README to see the development libraries that must be installed on you
346system)
347./configure
348make
349make install
c8997124 350</PRE>
c924c2c6 351
38b04cd7 352<h3><a href="#TOCuserspacetracing" name="userspacetracing">Userspace tracing</a></h3>
c924c2c6 353
c8997124 354<PRE>
c924c2c6 355Make sure you selected the kernel menuconfig option :
356 <M> or <*> Support logging events from userspace
357And that the ltt-userspace-event kernel module is loaded if selected as a
358module.
359
360Simple userspace tracing is available through
361echo "some text to record" > /mnt/debugfs/ltt/write_event
362
363It will appear in the trace under event :
364channel : userspace
365event name : event
c8997124 366</PRE>
c924c2c6 367
6f88b01d 368<h3><a href="#TOCgetlttv" name="getlttv">Getting and installing the LTTV package
369(on the visualisation machine, same
370or different from the visualisation machine)</a></h3>
c924c2c6 371
c8997124 372<PRE>
c924c2c6 373su -
374cd /usr/src
375wget http://ltt.polymtl.ca/packages/lttv-0.x.xx-xxxx2008.tar.gz
376gzip -cd lttv-0.x.xx-xxxx2008.tar.gz | tar xvof -
377cd lttv-0.x.xx-xxxx2008
378(refer to README to see the development libraries that must be installed on your
379system)
380./configure
381make
382make install
13d7a628 383</PRE>
c924c2c6 384
c8997124 385<hr />
c924c2c6 386
c924c2c6 387
89aa576c 388<h2><a href="#TOCsection2" name="section2">Using LTTng and LTTV</a></h2>
c924c2c6 389
d58b406f 390<li><b>IMPORTANT : Arm Linux Kernel Markers after each boot before tracing</b></li>
c8997124 391<PRE>
c924c2c6 392ltt-armall
c8997124 393</PRE>
c924c2c6 394
d58b406f 395<h3><a href="#TOCuselttvgui" name="uselttvgui">Use graphical LTTV to control
396tracing and analyse traces</a></h3>
c8997124 397<PRE>
c924c2c6 398lttv-gui (or /usr/local/bin/lttv-gui)
399 - Spot the "Tracing Control" icon : click on it
400 (it's a traffic light icon)
401 - enter the root password
402 - click "start"
403 - click "stop"
404 - Yes
405 * You should now see a trace
c8997124 406</PRE>
c924c2c6 407
d58b406f 408<h3><a href="#TOCuselttngtext" name="uselttngtext">Use text mode LTTng to control tracing</a></h3>
c8997124 409<PRE>
c924c2c6 410The tracing can be controlled from a terminal by using the lttctl command (as
411root).
412
413Start tracing :
414
415lttctl -C -w /tmp/trace1 trace1
416
417Stop tracing and destroy trace channels :
418
419lttctl -D trace1
420
421see lttctl --help for details.
df7f63ab 422</PRE>
c8997124 423<p>
c924c2c6 424(note : to see if the buffers has been filled, look at the dmesg output after
425lttctl -R or after stopping tracing from the GUI, it will show an event lost
426count. If it is the case, try using larger buffers. See lttctl --help to learn
427how. lttv now also shows event lost messages in the console when loading a trace
428with missing events or lost subbuffers.)
429
d58b406f 430<h3><a href="#TOCuselttvtext" name="uselttvtext">Use text mode LTTV</a></h3>
c8997124 431<p>
c924c2c6 432Feel free to look in /usr/local/lib/lttv/plugins to see all the text and
433graphical plugins available.
c8997124 434<p>
c924c2c6 435For example, a simple trace dump in text format is available with :
c8997124 436<PRE>
c924c2c6 437lttv -m textDump -t /tmp/trace
c8997124 438</PRE>
c8997124 439<p>
440See lttv -m textDump --help for detailed command line options of textDump.
c8997124 441<p>
c924c2c6 442It is, in the current state of the project, very useful to use "grep" on the
443text output to filter by specific event fields. You can later copy the timestamp
444of the events to the clipboard and paste them in the GUI by clicking on the
445bottom right label "Current time". Support for this type of filtering should
446be added to the filter module soon.
447
d58b406f 448<h3><a href="#TOChybrid" name="hybrid">Tracing in "Hybrid" mode</a></h3>
c8997124 449<p>
c924c2c6 450Starting from LTTng 0.5.105 and ltt-control 0.20, a new mode can be used :
451hybrid. It can be especially useful when studying big workloads on a long period
452of time.
c8997124 453<p>
c924c2c6 454When using this mode, the most important, low rate control information will be
455recorded during all the trace by lttd (i.e. process creation/exit). The high
456rate information (i.e. interrupt/traps/syscall entry/exit) will be kept in a
457flight recorder buffer (now named flight-channelname_X).
c8997124 458<p>
c924c2c6 459The following lttctl commands take an hybrid trace :
c8997124 460<p>
c924c2c6 461Create trace channel, start lttd on normal channels, start tracing:
c8997124 462<PRE>
c924c2c6 463lttctl -C -w /tmp/trace2 -o channel.kernel.overwrite=1 trace2
c8997124 464</PRE>
465<p>
c924c2c6 466Stop tracing, start lttd on flight recorder channels, destroy trace channels :
c8997124 467<PRE>
c924c2c6 468lttctl -D -w /tmp/trace2 trace2
c8997124 469</PRE>
470<p>
c924c2c6 471Each "overwrite" channel is flight recorder channel.
472
d58b406f 473
474<h3><a href="#TOCflight" name="flight">Tracing in flight recorder mode</a></h3>
c8997124 475<li>Flight recorder mode</li>
c8997124 476<p>
c924c2c6 477The flight recorder mode writes data into overwritten buffers for all channels,
478including control channels, except for the facilities tracefiles. It consists of
479setting all channels to "overwrite".
c8997124 480<p>
c924c2c6 481The following lttctl commands take a flight recorder trace :
c8997124 482<PRE>
c924c2c6 483lttctl -C -w /tmp/trace3 -o channel.all.overwrite=1 trace3
484...
485lttctl -D -w /tmp/trace3 trace3
c8997124 486</PRE>
c924c2c6 487
89aa576c 488<hr />
489
490
491<h2><a href="#TOCsection3" name="section3">Adding new instrumentations with the
492markers</a></h2>
493<p>
c924c2c6 494
47e2b195 495<h3><a href="#TOCkerneltp" name="kerneltp">Adding kernel
496instrumentation</a></h3>
497
89aa576c 498<p>
47e2b195 499See <a
500href="http://git.kernel.org/?p=linux/kernel/git/compudj/linux-2.6-lttng.git;a=blob;f=Documentation/markers.txt">Documentation/markers.txt</a>
501and <a
502href="http://git.kernel.org/?p=linux/kernel/git/compudj/linux-2.6-lttng.git;a=blob;f=Documentation/tracepoints.txt">Documentation/tracepoints.txt</a> in your kernel
c924c2c6 503tree.
47e2b195 504<p>
505Also see <a
506href="http://git.kernel.org/?p=linux/kernel/git/compudj/linux-2.6-lttng.git;a=tree;f=ltt/probes">ltt/probes/</a>
507for LTTng probe examples.
508
509<h3><a href="#TOCusertp" name="usertp">Adding userspace instrumentation</a></h3>
c924c2c6 510
305fd815 511Add new events to userspace programs with
512<a href="http://ltt.polymtl.ca/packages/">userspace markers packages</a>.
c924c2c6 513Get the latest markers-userspace-*.tar.bz2 and see the Makefile and examples. It
514allows inserting markers in executables and libraries, currently only on x86_32
515and x86_64.
e01a1ce1 516See <a
517href="http://ltt.polymtl.ca/packages/markers-userspace-0.5.tar.bz2">markers-userspace-0.5.tar.bz2</a> or more recent.
518
38b04cd7 519<p>
e01a1ce1 520Note that a new design document for a 3rd generation of tracepoint/marker-based
521userspace tracing is available at <a
522href="http://ltt.polymtl.ca/svn/trunk/lttv/doc/developer/ust.html">LTTng User-space Tracing
98dde887 523Design</a>. This new infrastructure is not yet implemented.
38b04cd7 524
525<p>
526The easy quick-and-dirty way to perform userspace tracing is currently to write
527an string to /mnt/debugfs/ltt/write_event. See <a
528href="#userspacetracing">Userspace tracing</a> in the
529installation for sources section of this document.
e01a1ce1 530
89aa576c 531<hr />
633bc4a3 532
89aa576c 533<h2><a href="#TOCsection4" name="section4">Creating Debian or RPM packages</a></h2>
534<p>
633bc4a3 535
98dde887 536<h3><a href="#TOCpkgdebian" name="pkgdebian">Create custom LTTV Debian packages</a></h3>
633bc4a3 537
89aa576c 538<PRE>
539Use : dpkg-buildpackage -rfakeroot
540</PRE>
541<p>
633bc4a3 542You should then have your LTTV .deb files created for your architecture.
543
98dde887 544<h3><a href="#TOCpkglttng" name="pkglttng">Create custom LTTng packages</a></h3>
89aa576c 545<p>
633bc4a3 546For building LTTng Debian packages :
89aa576c 547get the build tree with patches applies as explained in section 2.
633bc4a3 548
89aa576c 549<PRE>
633bc4a3 550make menuconfig (or xconfig or config) (customize your configuration)
551make-kpkg kernel_image
89aa576c 552</PRE>
553<p>
633bc4a3 554You will then see your freshly created .deb in /usr/src. Install it with
89aa576c 555<PRE>
633bc4a3 556dpkg -i /usr/src/(image-name).deb
89aa576c 557</PRE>
558<p>
633bc4a3 559Then, follow the section "Editing the system wide configuration" in section 2.
560
70a3fc43 561<hr />
633bc4a3 562
70a3fc43 563<h2><a href="#TOCsection5" name="section5">Examples of LTTng use in the field</a></h2>
564<p>
565A few examples of successful LTTng users :
633bc4a3 566
70a3fc43 567<ul>
568<li> Google are deploying LTTng on their servers. They want to use it to
569 monitor their production servers (with flight recorder mode tracing)
570 and to help them solve hard to reproduce problems. They have had
571 success with such tracing approach to fix "rare disk delay" issues and
572 VM-related issues presented in this article :
07e962a1 573<ul>
83cebd38 574 <li> <a href="http://ltt.polymtl.ca/papers/bligh-Reprint.pdf">Linux Kernel
575Debugging on Google-sized clusters at Ottawa Linux
576 Symposium 2007</a>
07e962a1 577</ul>
70a3fc43 578<li> IBM Research have had problems with Commercial Scale-out applications,
579 which are being an increasing trend to split large server workloads.
580 They used LTTng successfully to solve a distributed filesystem-related
581 issue. It's presented in the same paper above.
582
583<li> Autodesk, in the development of their next-generation of Linux
584 audio/video edition applications, used LTTng extensively to solve
585 soft real-time issues they had. Also presented in the same paper.
586
587<li> Wind River included LTTng in their Linux distribution so their
588 clients, already familiar to Wind River own tracing solution in
589 VxWorks, car have the same kind of feature they have relied on for a
590 long time.
591
592<li> Montavista have integrated LTTng in their distribution for the same
593 reasons. It's used by Sony amongst others.
594
595<li> SuSE are currently integrating LTTng in their next SLES distribution,
596 because their clients asking for solutions which supports a kernel
597 closer to real-time need such tools to debug their problems.
598
599<li> A project between Ericsson, the Canadian Defense, NSERC and various
600 universities is just starting. It aims at monitoring and debugging
601 multi-core systems and provide automated and help user system behavior
602 analysis.
603
604<li> Siemens have been using LTTng internally for quite some time now.
605</ul>
c924c2c6 606 </body>
607</html>
This page took 0.049572 seconds and 4 git commands to generate.