Remove warnings in the lttv/module/text directory v2
[lttv.git] / lttv / modules / text / batchAnalysis.c
index e150f4d18db9c473dc113c45e1f50dfd17529eda..7d55f44db93afca8cfa71ef6703160774b798a30 100644 (file)
@@ -68,7 +68,7 @@ static gboolean process_traceset(void *hook_data, void *call_data)
 
   LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
 
-  LttvTracesetStats *tscs;
+  LttvTracesetStats *tscs = NULL;
 
   LttvTracesetState *tss;
 
@@ -91,10 +91,9 @@ static gboolean process_traceset(void *hook_data, void *call_data)
 
   lttv_context_init(tc, traceset);
 
-  /* Disabled by Mathieu, does not build on x86_64 */
-  /* syncTraceset(tc); */
+  syncTraceset(tc);
 
-  lttv_state_add_event_hooks(tc);
+  lttv_state_add_event_hooks(tss);
   if(a_stats) lttv_stats_add_event_hooks(tscs);
 
   retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
@@ -277,5 +276,4 @@ static void destroy()
 
 LTTV_MODULE("batchAnalysis", "Batch processing of a trace", \
     "Run through a trace calling all the registered hooks", \
-    /* init, destroy, "state", "stats", "option","textFilter", "sync") */
-    init, destroy, "state", "stats", "option","textFilter")
+    init, destroy, "state", "stats", "option","textFilter", "sync")
This page took 0.023055 seconds and 4 git commands to generate.