X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2FbatchAnalysis.c;h=a8d1c824f98d2a5341eafdbb4f0d67e9d151c9f3;hb=c46519c856ab26d16378a3984814cda3b86af160;hp=72a642c4d5c0803e134c9829dcfedae1f0600cb1;hpb=ffd54a901f0062e31ffb35a316de9d8b17104abb;p=lttv.git diff --git a/ltt/branches/poly/lttv/batchAnalysis.c b/ltt/branches/poly/lttv/batchAnalysis.c index 72a642c4..a8d1c824 100644 --- a/ltt/branches/poly/lttv/batchAnalysis.c +++ b/ltt/branches/poly/lttv/batchAnalysis.c @@ -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); }