Temporary fix for large IRQ tables
[lttv.git] / lttv / lttv / state.c
index 2dde6de62a0ff2f5ddf85b417753ac7b90a071e7..27adae2c1abdd1a22322621c79bcee799411e286 100644 (file)
@@ -2057,10 +2057,12 @@ create_name_tables(LttvTraceState *tcs)
       name_tables->irq_names[i] = g_quark_from_string(ltt_enum_string_get(t, i));
     }
     */
+    /* FIXME: LttvIRQState *irq_states should become a g_array */
+    /* temp fix: increase from 256 to 512 default size */
 
-    name_tables->nb_irqs = 256;
-    name_tables->irq_names = g_new(GQuark, 256);
-    for(i = 0 ; i < 256 ; i++) {
+    name_tables->nb_irqs = 512;
+    name_tables->irq_names = g_new(GQuark, 512);
+    for(i = 0 ; i < 512 ; i++) {
       g_string_printf(fe_name, "irq %d", i);
       name_tables->irq_names[i] = g_quark_from_string(fe_name->str);
     }
@@ -2935,13 +2937,12 @@ static gboolean dump_softirq(void *hook_data, void *call_data)
   return FALSE;
 }
 
-static gboolean sched_try_wakeup(void *hook_data, void *call_data) {
-
+static gboolean sched_try_wakeup(void *hook_data, void *call_data)
+{
   LttvTracefileState *s = (LttvTracefileState *)call_data;
-  LttvProcessState *process;
-  
   LttEvent *e = ltt_tracefile_get_event(s->parent.tf);
   LttvTraceHook *th = (LttvTraceHook *)hook_data;
+  LttvProcessState *process;
   gint woken_pid;
   guint woken_cpu;
 
@@ -2958,7 +2959,6 @@ static gboolean sched_try_wakeup(void *hook_data, void *call_data) {
   g_debug("Wakeup: process %d on CPU %u\n", woken_pid, woken_cpu);
 
   return FALSE;
-
 }
 
 static gboolean schedchange(void *hook_data, void *call_data)
This page took 0.023001 seconds and 4 git commands to generate.