Re: missing data in traces
Gregory Haskins <[email protected]> Thu, 20 Dec 2007 10:45:31 -0500
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <[email protected]> |
Jan Altenberg wrote:
>
> Just to make sure, your facing the same issue: Could you try, what
> happens with attached patch?
>
> ---
> lttv/lttv/state.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: lttv-0.10.0-pre5-05122007/lttv/lttv/state.c
> ===================================================================
> --- lttv-0.10.0-pre5-05122007.orig/lttv/lttv/state.c
> +++ lttv-0.10.0-pre5-05122007/lttv/lttv/state.c
> @@ -1829,9 +1829,9 @@ create_name_tables(LttvTraceState *tcs)
> }
> */
>
> - name_tables->nb_irqs = 256;
> - name_tables->irq_names = g_new(GQuark, 256);
> - for(i = 0 ; i < 256 ; i++) {
> + name_tables->nb_irqs = 5000;
> + name_tables->irq_names = g_new(GQuark, 5000);
> + for(i = 0 ; i < 5000 ; i++) {
> g_string_printf(fe_name, "irq %d", i);
> name_tables->irq_names[i] = g_quark_from_string(fe_name->str);
> }
>
I didnt try your patch, but only because I had already implemented my
own based on the info you gave me. I can confirm that it fixed my
crash. Thanks!
-Greg