Re: missing data in traces

Gregory Haskins <[email protected]> Wed, 19 Dec 2007 00:04:31 -0500
Newsgroups gmane.linux.kernel.tracing
Message-ID <[email protected]>
Gregory Haskins wrote:
> Hi All,
>    (I tried to describe this problem as part of my earlier mail, but my
> mailer got messed up.  Sorry if it s a repost).
> 
> So I am running with 2.6.24-rc4 with all the latest patches for the
> kernel, ltt-control, and lttv.  I load up the kernel, and do a:
> 
> modprobe ltt-control
> modprobe ltt-statedump
> 
> (I dont have any other ltt modules available, is that normal?)
> 
> Then I run lttv and capture a trace.  I get back 14 events related to
> /control/facilties / core_marker, and nothing else.
> 
> What am I doing wrong?

Ok, I figured out the next step.  I was missing the "armall" script
which enables the probes via /proc/ltt.  Now my traces are getting
plenty of data.

Unfortunately, rendering this populated trace data is causing a new
segfault in the viewer:

Core was generated by `/usr/local/bin/lttv.real -m guievents -m
guifilter -m guicontrolflow -m resourc'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000414686 in irq_entry (hook_data=<value optimized out>,
    call_data=<value optimized out>) at state.c:1981
1981      g_array_set_size(irqst->mode_stack, irqst->mode_stack->len + 1);
(gdb) bt
#0  0x0000000000414686 in irq_entry (hook_data=<value optimized out>,
    call_data=<value optimized out>) at state.c:1981
#1  0x000000000040ca6f in lttv_hooks_call_merge (h1=0xa84460,
    call_data1=0xa843a0, h2=0xab01d8, call_data2=0xa843a0) at hook.c:333
#2  0x0000000000418a93 in lttv_process_traceset_middle (self=0x9cb7e0, end=
      {tv_sec = 999, tv_nsec = 587766197}, nb_events=6000, end_position=0x0)
    at tracecontext.c:768
#3  0x00002b9228cb59c6 in execute_events_requests (tab=0x8b48b0)
    at callbacks.c:1446
#4  0x00002b9226e40fca in g_main_context_dispatch ()
   from /opt/gnome/lib64/libglib-2.0.so.0
#5  0x00002b9226e44055 in g_str_equal () from
/opt/gnome/lib64/libglib-2.0.so.0
#6  0x00002b9226e44365 in g_main_loop_run ()
   from /opt/gnome/lib64/libglib-2.0.so.0
#7  0x00002b9227685563 in gtk_main () from
/opt/gnome/lib64/libgtk-x11-2.0.so.0
#8  0x00002b9228cb2096 in window_creation_hook (
    hook_data=<value optimized out>, call_data=<value optimized out>)
    at init_module.c:129
#9  0x000000000040cb0a in lttv_hooks_call (h=0x531158, call_data=0x0)
    at hook.c:272
#10 0x000000000040b09d in main (argc=13, argv=0x7fff840bc168) at main.c:219

This one isnt as obvious to me as the last one, so I have no patch to
offer.  Any advice is appreciated!

-Greg