state.c: track softirq raises
[lttv.git] / ltt / branches / poly / lttv / lttv / tracecontext.c
index e6fb8fdfeaa46e27ae8f02c10ab8a13fa247bb9d..f5b78b5cbfdd8d640fe6b91576b68d415c840010 100644 (file)
@@ -686,7 +686,7 @@ void lttv_process_traceset_begin(LttvTracesetContext *self,
 /* Note : a _middle must be preceded from a _seek or another middle */
 guint lttv_process_traceset_middle(LttvTracesetContext *self,
                               LttTime end,
-                              guint nb_events,
+                              gulong nb_events,
                               const LttvTracesetContextPosition *end_position)
 {
   GTree *pqueue = self->pqueue;
@@ -862,9 +862,6 @@ void lttv_process_trace_seek_time(LttvTraceContext *self, LttTime start)
   g_debug("test tree after seek_time");
   g_tree_foreach(pqueue, test_tree, NULL);
 #endif //DEBUG
-
-
-
 }
 
 
@@ -1041,7 +1038,8 @@ void lttv_trace_hook_remove_all(GArray **th)
   for(i=0; i<(*th)->len; i++) {
     g_ptr_array_free(g_array_index(*th, LttvTraceHook, i).fields, TRUE);
   }
-  *th = g_array_remove_range(*th, 0, (*th)->len);
+  if((*th)->len)
+    *th = g_array_remove_range(*th, 0, (*th)->len);
 }
 
 LttvTracesetContextPosition *lttv_traceset_context_position_new(
This page took 0.022574 seconds and 4 git commands to generate.