X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2FbatchAnalysis.c;h=a8d1c824f98d2a5341eafdbb4f0d67e9d151c9f3;hb=3b43ea17ab7fa33c167cd5f09beabebe27a4f3fe;hp=6f499ce1d394868fb2d0ae9d8d8f7e6987d1db60;hpb=c6bc9cb9f0b1432775ddc7cbbd2f2c2cfdb28474;p=lttv.git diff --git a/ltt/branches/poly/lttv/batchAnalysis.c b/ltt/branches/poly/lttv/batchAnalysis.c index 6f499ce1..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); @@ -124,8 +124,6 @@ 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,6 +134,7 @@ G_MODULE_EXPORT 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++) {