static gboolean a_stats;
-static lttv_filter *a_lttv_filter;
+static LttvFilter *a_lttv_filter;
extern GString *a_filter_string;
lttv_state_add_event_hooks(&tscs->parent);
if(a_stats) lttv_stats_add_event_hooks(tscs);
- a_lttv_filter = lttv_filter_new(a_filter_string,(LttvTraceState*)tscs);
+ a_lttv_filter = lttv_filter_new();
+ lttv_filter_append_expression(a_lttv_filter,a_filter_string->str);
//lttv_traceset_context_add_hooks(tc,
//before_traceset, after_traceset, NULL, before_trace, after_trace,
LTTV_MODULE("batchAnalysis", "Batch processing of a trace", \
"Run through a trace calling all the registered hooks", \
- init, destroy, "state", "stats", "option","filter")
+ init, destroy, "state", "stats", "option","textFilter")