[ltt-dev] Trouble acquiring/displaying traces

Thomas E. Besemer tbesemer at thomas-iv.com
Wed Jun 11 19:16:10 EDT 2008


Hi Mathieu and rest on list -

I have resolved the below problem: operator error.  A couple of weeks ago,
I was working with an older Kernel/LLTng patch set, and did capture some
traces.

When I moved to new Kernel/LLTng patch set, I used lltctl as noted below,
but had not removed original traces I had captured with old environment.

I removed entire directory today, and re-ran; works perfect!!!  Thanks
for the help on this.  Looks like a great tool, and I am looking forward to
using it.

Thanks,

tom

----- Original Message ----- 
From: "Thomas E. Besemer" <tbesemer at thomas-iv.com>
To: "Mathieu Desnoyers" <compudj at krystal.dyndns.org>
Cc: <ltt-dev at lists.casi.polymtl.ca>
Sent: Sunday, June 08, 2008 4:19 PM
Subject: Re: [ltt-dev] Trouble acquiring/displaying traces


> Hi Mathieu -
>
> I think the attached gziped tar file should have everything you are 
> looking
> for; it's
> got the directory where I directed everything to go via:
>
>   lttctl -n trace -d -l /mnt/debugfs/ltt -t /tmp/ltt
>
> The tar file is of 'ltt' in /tmp.
>
> Looks like facilities files are in this as well.
>
> Please let me know how I can help.  Thanks again for your swift responses;
> this looks like a great tool, so I am happy to do anything I can to 
> resolve
> either
> problems on my end, or development issues.
>
> It's a dual quad-core Xeon machine that I am running this one.
>
> Regards,
>
> tom
>
> ----- Original Message ----- 
> From: "Mathieu Desnoyers" <compudj at krystal.dyndns.org>
> To: "Thomas E. Besemer" <tbesemer at thomas-iv.com>
> Cc: <ltt-dev at lists.casi.polymtl.ca>
> Sent: Sunday, June 08, 2008 3:13 PM
> Subject: Re: [ltt-dev] Trouble acquiring/displaying traces
>
>
>> Can you give me the content of the control/ trace subdirectory ?
>>
>> Also an hexdump of the facilities_* files (only the 20 first lines).
>>
>> Thanks,
>>
>> Mathieu
>>
>> * Thomas E. Besemer (tbesemer at thomas-iv.com) wrote:
>>> Hi Mathieu (and all  on list) -
>>>
>>> Thanks for correcting my problems on patch install; it was
>>> operator error on my part.  I got patched, compiled, linked
>>> and booted, but seem to be having trouble getting traces
>>> (see end of email).
>>>
>>> Note that everything in LTT is compiled into the Kernel,
>>> no modules.
>>>
>>> Between starting and stoping trace, I ran some commands, and
>>> tar'd up a directory to show I/O, etc...
>>>
>>> Below is a sequence of what I am doing.
>>>
>>> All help appreciated.
>>>
>>> Thanks,
>>>
>>> tom
>>>
>>> --
>>> Installed Patches/tools, 2.6.25.4 Kernel:
>>>
>>> patch-2.6.25.4-lttng-0.10-pre55
>>> ltt-control-0.48-27022008
>>> lttv-0.10.0-pre13-27052008
>>>
>>> --
>>> Boot Messages:
>>>
>>> LTT : ltt-heartbeat init
>>> LTT : ltt-heartbeat init
>>> Requested number of bits 11
>>> Available number of bits 11
>>> Heartbeat timer will fire each 33 jiffies.
>>> Compact TSC init : truncate 8 lsb, cutoff 3 msb.
>>> LTT : ltt-relay init
>>> ltt-control init
>>> LTT : State dump init
>>> Data shifted from 24 bits
>>> 3 bits used for event IDs, 8 available for data.
>>>
>>>
>>> ---
>>> LTT Arm All Messages:
>>>
>>> [root at sn-sj26 tbesemer]# ltt-armall
>>> Loading probes
>>> FATAL: Could not load /lib/modules/2.6.25.4/modules.dep: No such file or
>>> directory
>>> Connecting all markers
>>> Connecting internal_kernel_sched_schedule
>>> Connecting fs_buffer_wait_end
>>> Connecting fs_buffer_wait_start
>>> Connecting fs_close
>>> Connecting fs_exec
>>> Connecting fs_ioctl
>>> Connecting fs_llseek
>>>
>>> [snip much - lot's of output here]
>>>
>>>
>>> ---
>>> Starting Trace:
>>>
>>> [root at sn-sj26 tbesemer]# lttctl -n trace -d -l /mnt/debugfs/ltt -t
>>> /tmp/ltt
>>> Linux Trace Toolkit Trace Control 0.48-27022008
>>>
>>> Controlling trace : trace
>>>
>>> Linux Trace Toolkit Trace Daemon 0.48-27022008
>>>
>>> Reading from debugfs directory : /mnt/debugfs/ltt/trace
>>> Writing to trace directory : /tmp/ltt
>>>
>>> [root at sn-sj26 tbesemer]#
>>>
>>>
>>> ---
>>> Stoping Trace:
>>>
>>> [root at sn-sj26 tbesemer]# lttctl -n trace -R
>>> Linux Trace Toolkit Trace Control 0.48-27022008
>>>
>>> Controlling trace : trace
>>>
>>> [root at sn-sj26 tbesemer]#
>>>
>>>
>>> ---
>>> What's in /tmp/ltt:
>>>
>>> [root at sn-sj26 tbesemer]# ls -rtl /tmp/ltt
>>> total 8232
>>> drwxr-xr-x 2 root root    4096 May 30 11:43 eventdefs
>>> drwxr-xr-x 2 root root    4096 May 30 11:43 control
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_7
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_6
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_5
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_4
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_3
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_2
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_1
>>> -rwxr-xr-x 1 root root 1048576 May 30 11:45 cpu_0
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_7
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_6
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_5
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_4
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_3
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_2
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_1
>>> -rwxr-xr-x 1 root root       0 Jun  8 10:35 compact_0
>>> [root at sn-sj26 tbesemer]#
>>>
>>>
>>>
>>> ---
>>> Doing Basic dump of Trace:
>>>
>>> [root at sn-sj26 tbesemer]# lttv -m textDump -t /tmp/ltt
>>> The input data file /tmp/ltt/compact_5 does not contain a trace
>>> The input data file /tmp/ltt/compact_6 does not contain a trace
>>>
>>> ** (process:10083): WARNING **: Unsupported trace version : 0.8
>>>
>>> ** (process:10083): WARNING **: parse_trace_header error
>>> The input data file /tmp/ltt/compact_4 does not contain a trace
>>>
>>> ** (process:10083): WARNING **: Unsupported trace version : 0.8
>>>
>>> ** (process:10083): WARNING **: parse_trace_header error
>>> The input data file /tmp/ltt/compact_3 does not contain a trace
>>> The input data file /tmp/ltt/compact_7 does not contain a trace
>>>
>>> ** (process:10083): WARNING **: Unsupported trace version : 0.8
>>>
>>> [snip lot's of similar output, finishing with this below]
>>>
>>>
>>> ** (process:10665): WARNING **: parse_trace_header error
>>> The input data file /tmp/ltt/compact_2 does not contain a trace
>>>
>>> ** ERROR **: Trace /tmp/ltt has no facility tracefile
>>> aborting...
>>> /workspace/tbesemer/local/bin/lttv: line 15: 10665 Aborted $0.real $*
>>> [root at sn-sj26 tbesemer]#
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> ltt-dev mailing list
>>> ltt-dev at lists.casi.polymtl.ca
>>> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>>>
>>
>> -- 
>> Mathieu Desnoyers
>> OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE
>> 9A68
>


--------------------------------------------------------------------------------


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





More information about the lttng-dev mailing list