makefile minor change
[lttv.git] / ltt / branches / poly / lttv / batchAnalysis.c
index 72a642c4d5c0803e134c9829dcfedae1f0600cb1..a8d1c824f98d2a5341eafdbb4f0d67e9d151c9f3 100644 (file)
@@ -55,7 +55,7 @@ static gboolean process_traceset(void *hook_data, void *call_data)
   end.tv_sec = G_MAXULONG;
   end.tv_nsec = G_MAXULONG;
 
-  lttv_process_trace(start, end, traceset, LTTV_TRACESET_CONTEXT(tc));
+  lttv_process_trace(start, end, traceset, LTTV_TRACESET_CONTEXT(tc),G_MAXULONG);
   lttv_traceset_context_remove_hooks(LTTV_TRACESET_CONTEXT(tc),
   before_traceset, after_traceset, NULL, before_trace, after_trace,
   NULL, before_tracefile, after_tracefile, NULL, before_event, after_event);
@@ -66,7 +66,7 @@ static gboolean process_traceset(void *hook_data, void *call_data)
 }
 
 
-void init(LttvModule *self, int argc, char **argv)
+G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
 {
   LttvAttributeValue value;
 
@@ -120,12 +120,10 @@ void init(LttvModule *self, int argc, char **argv)
 }
 
 
-void destroy()
+G_MODULE_EXPORT void destroy()
 {
   guint i, nb;
 
-  lttv_hooks_remove_data(main_hooks, process_traceset, NULL);
-
   lttv_option_remove("trace");
 
   lttv_hooks_destroy(before_traceset);
@@ -136,10 +134,13 @@ void destroy()
   lttv_hooks_destroy(after_tracefile);
   lttv_hooks_destroy(before_event);
   lttv_hooks_destroy(after_event);
+  lttv_hooks_remove_data(main_hooks, process_traceset, NULL);
 
   nb = lttv_traceset_number(traceset);
   for(i = 0 ; i < nb ; i++) {
     ltt_trace_close(lttv_traceset_get(traceset, i));
   }
+
+  lttv_traceset_destroy(traceset); 
 }
 
This page took 0.023623 seconds and 4 git commands to generate.