g_info("BatchAnalysis initialize context");
lttv_context_init(tc, traceset);
+
+ sync_traceset(tc);
+
lttv_state_add_event_hooks(tc);
if(a_stats) lttv_stats_add_event_hooks(tscs);
LTTV_POINTER, &value_filter);
g_assert(retval);
+ /* Repeat the search for the first element, the second search might have
+ * moved the first element (by creating the second element)
+ */
+ retval= lttv_iattribute_find_by_path(attributes, "filter/expression",
+ LTTV_POINTER, &value_expression);
+ g_assert(retval);
+
*(value_filter.v_pointer) = lttv_filter_new();
//g_debug("Filter string: %s",((GString*)*(value_expression.v_pointer))->str);
LTTV_MODULE("batchAnalysis", "Batch processing of a trace", \
"Run through a trace calling all the registered hooks", \
- init, destroy, "state", "stats", "option","textFilter")
+ init, destroy, "state", "stats", "option","textFilter", "sync")