[ltt-dev] Hi, everybody. i am a newbie here! who couldtellmehow can i use LTTng ( i just need an example without Linux TraceToolkitNextGeneration Manual)

srikanth krishnakar skrishnakar at gmail.com
Wed May 26 08:57:09 EDT 2010


Copy your /tmp/trace1 to /root/trace1

then from LTTV-GUI add the trace directory /root/trace1

Now you  should be able to see the data.

-Srikant

2010/5/26 unbutun <unbutun at sohu.com>

>  Hi, srikanth
>
> I know my fault is the version of Lttng lttctl lttv
>
> Now, it's work, and have output of *lttv -m textDump -t /tmp/trace1*
> **
> *in my enviorment,   there is only  ltt-control- 0.68-19062009.tar.gz
> linux-2.6.29.tar.gz lttv-0.12.12-05032009.tar.gz
> patch-2.6.29-lttng-0.1222.tar.gz*
> *without ltt-usertrace-0.6.tar.gz*
> **
> *But,  use lttv-gui,  show there unknow_process in process tag, and show
> MODULE_UNKNOW in mode_types*
> **
> * what's wrong of that ? *
> **
> *is there any option which needed to choose in menuconfig ?*
> **
> *or  anyother  i need to do ?*
> **
> *
> Thanks, Advance
>
> And thank you for your kind
>
> Regards,
>
> Gavin
> *
> **
>
>
> 2010-05-26
> ------------------------------
>   Happy everyday !
> ------------------------------
> *发件人:* srikanth krishnakar
> *发送时间:* 2010-05-25  20:33:36
> *收件人:* unbutun
> *抄送:* ltt-dev
> *主题:* Re: Re: Re: [ltt-dev] Hi, everybody. i am a newbie here! who
> couldtellmehow can i use LTTng ( i just need an example without Linux
> TraceToolkitNextGeneration Manual)
>  Gavin,
>
> Please make sure you have run the following command's in sequence :
>
> Before proceeding, run the following script:
>
> --------------------------------------------------------------
> #!/bin/bash
> mkdir /mnt/debugfs
> echo "debugfs  /mnt/debugfs debugfs  defaults   0  0" >> /etc/fstab
> echo "debugfs Mounted"
> echo ltt-filter >> /etc/modules
> echo ltt-statedump  >> /etc/modules
> echo ltt-kprobes  >> /etc/modules
> echo ltt-marker-control >> /etc/modules
> echo ltt-serialize >> /etc/modules
> echo ltt-trace-control >> /etc/modules
> echo ltt-userspace-event >> /etc/modules
>
> #probes
> echo block-trace >> /etc/modules
> echo fs-trace >> /etc/modules
> echo ipc-trace >> /etc/modules
> echo kernel-trace >> /etc/modules
> echo lockdep-trace >> /etc/modules
> echo mm-trace >> /etc/modules
> echo net-extended-trace >> /etc/modules
> echo net-trace >> /etc/modules
> echo pm-trace >> /etc/modules
> echo rcu-trace >> /etc/modules
> echo syscall-trace >> /etc/modules
> echo trap-trace >> /etc/modules
> --------------------------------------------------------------
>
> *Now Reboot the target, and proceed with the below steps !! You should be
> now able to get the trace output. *
>
> 1.* ltt-armall*
>
> (The above is required to connect all the marker's, else you'll end up with
> Zero sized trace file, as you have shown here)
>
> 2. *lttctl -C -w /tmp/trace1 trace1*
>
> (Now carry on with you normal process on the system, till then your trace
> data will be collected, then after some time run the below command to assure
> that all events are logged into the trace files)
>
> 3.* **lttctl -D trace1*
>
> 4.* **lttv -m textDump -t /tmp/trace1 > lttng-output.txt
>
> *If you are following the same steps, then show me the output of command
> -> "*ltt-armall*" .
>
> -Srikanth*
> *
>
> 2010/5/25 unbutun <unbutun at sohu.com>
>
>>  No, Srikanth, i do everything in the
>> Linux Trace ToolkitNextGeneration Manual
>>
>> and
>>  # lttctl -C -w /tmp/trace1 trace1
>>
>>
>> # lttctl -D trace1
>> all successful
>>
>> but there is nothing in /tmp/trace1/ files (these files' size is 0 )
>>
>> # lttv -m textDump -t /tmp/trace1
>>
>> got the error:
>>
>> The input data file /tmp/trace1/irq_state_0 does not contain a trace
>> The input data file /tmp/trace1/module_state_0 does not contain a trace
>> The input data file /tmp/trace1/syscall_state_0 does not contain a trace
>> The input data file /tmp/trace1/softirq_state_0 does not contain a trace
>> The input data file /tmp/trace1/metadata_0 does not contain a trace
>> The input data file /tmp/trace1/swap_state_0 does not contain a trace
>>
>> (process: 2272): WARNING: Trace /tmp/trace1/ has no metadata tracefile
>> (process: 2272): CRITICAL: cannot open trace /tmp/trace1
>>
>> /usr/bin/lttv: line 15: 2270 Segmentation fault $0.real $*
>>
>> Do you know what's wrong of that?
>>
>>
>> Thanks, Advance
>>
>> And thank you for your kind
>>
>> Regards,
>>
>> Gavin
>> 2010-05-25
>> ------------------------------
>>   Happy everyday !
>> ------------------------------
>> *发件人:* srikanth krishnakar
>> *发送时间:* 2010-05-25  14:56:25
>> *收件人:* unbutun
>> *抄送:*
>> *主题:* Re: Re: [ltt-dev] Hi, everybody. i am a newbie here! who could
>> tellmehow can i use LTTng ( i just need an example without Linux Trace
>> ToolkitNextGeneration Manual)
>>
>>
>>  On Tue, May 25, 2010 at 3:40 AM, unbutun <unbutun at sohu.com> wrote:
>>
>>>  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
>>>
>>
>>
>> I think you have missed the following command here, before starting the
>> trace;
>>
>> *# ltt-armall*
>>
>> Then you follow with the below commands !!!
>>
>>>
>>>   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 trace1
>>>
>>> 4. To stop tracing you run:
>>>
>>>
>>>
>>> # lttctl -D trace1
>>>
>>> 5. 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
>>> **********************
>>>
>>
>>
>>
>> --
>> "The Good You Do, The Best You GET"
>>
>> Regards
>> Srikanth Krishnakar
>> **********************
>>
>
>
>
> --
> "The Good You Do, The Best You GET"
>
> Regards
> Srikanth Krishnakar
> **********************
>



-- 
"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/20100526/aad47209/attachment-0003.htm>


More information about the lttng-dev mailing list