[ltt-dev] Hi, everybody. i am a newbie here! who could tell mehow can i use LTTng ( i just need an example without Linux Trace Toolkit NextGeneration Manual)

unbutun unbutun at sohu.com
Mon May 24 18:10:07 EDT 2010


Hi, Srikanth

I do it as the following:

1. download the kernel 2.6.33.3 and patch patch-2.6.33.3-lttng-0.213.tar.gz ,  tar xzf them into /usr/src/kernel, move patch-2.6.33.3-lttng-0.213 to patches, 
    move patches into linux-2.6.33.3 

2. quilt push -a

3. enabled the kernel LTTng in make menuconfig, just enable this and every other is as default (kernel and LTTng)

4. build the kernel and install it

5. rpm -i  the following:
    libkcompat-devel-0.0-1.1.i386.rpm 
    liblttctl0-0.71-1.1.i386.rpm
    liblttctl-devel-0.71-1.1.i386.rpm 
    liblttv0-0.12.17-1.1.i386.rpm 
    liblttv-devel-0.12.17-1.1.i386.rpm 
    liburcu0-0.2.3-alpha.1.1.i386.rpm 
    liburcu-devel-0.2.3-alpha.1.1.i386.rpm 
    ltt-control-0.71-1.1.i386.rpm 
    ltt-control-debug-0.71-1.1.i386.rpm 
    lttv-0.12.17-1.1.i386.rpm 
    lttv-debug-0.12.17-1.1.i386.rpm

6. run your command:
    
# lttctl -C -w /tmp/trace1 trace1

# lttctl -D trace1
all successful

but 
# lttv -m textDump -t /tmp/trace1  > lttng-output.txt

failed, and said that there is no metadata in /tmp/trace1/metadata_0 



is there anything wrong with my steps or anything else do i need to install or config in my FC11 ?


Thanks, Advance

Any help would be much appreciated !

Regards,

Gavin


2010-05-25 



unbutun 



发件人: srikanth krishnakar 
发送时间: 2010-05-24  21:39:35 
收件人: unbutun 
抄送: ltt-dev 
主题: Re: [ltt-dev] Hi, everybody. i am a newbie here! who could tell mehow can i use LTTng ( i just need an example without Linux Trace Toolkit NextGeneration Manual) 
 
Gavin,

1. Make sure you are running the FC11 kernel 2.6.30 (any FC11 kernel) with LTTng support. That is you need to patch the kernel of FC11 with LTTng patches and should be loaded with all necessary LTTng kernel modules.

2. Once you make sure that CONFIG_LTT and other LTT options are enabled in kernel, then you need to run "ltt-armall" for markers.

3. Now you should be ready to start the trace process with the command :


# lttctl -C -w /tmp/trace1 trace14. To stop tracing you run:
# lttctl -D trace15. Dump the output to a text file 
# lttv -m textDump -t /tmp/trace1  > lttng-output.txt
For more information, you can follow the instructions  at : http://lttng.org/cgi-bin/gitweb.cgi?p=lttv.git;a=blob_plain;f=LTTngManual.html
-Srikanth



On Mon, May 24, 2010 at 5:44 PM, unbutun <unbutun at sohu.com> wrote:

Hi,

just as the title, i have install lttng on FC11. and don't know how to use it to trace the kernel, 

is there anyone who is very kind to tell me about that without care about my junior question ?


Thanks Advance

Regards,

Gavin

2010-05-24 



unbutun 

_______________________________________________
ltt-dev mailing list
ltt-dev at lists.casi.polymtl.ca
http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev





-- 
"The Good You Do, The Best You GET"

Regards
Srikanth Krishnakar
**********************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20100525/9164de64/attachment-0003.htm>


More information about the lttng-dev mailing list