#include <stdio.h>
#include <inttypes.h>
+#include <babeltrace/ctf/events.h>
+
static gboolean
a_noevent,
a_no_field_names,
return FALSE;
}
-
static int write_event_content(void *hook_data, void *call_data)
{
gboolean result;
LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes());
+ struct bt_ctf_event *event = (struct bt_ctf_event *)call_data;
+#ifdef BABEL_CLEANUP
LttvTracefileContext *tfc = (LttvTracefileContext *)call_data;
LttvTracefileState *tfs = (LttvTracefileState *)call_data;
if(!lttv_filter_tree_parse(filter->head,e,tfc->tf,
tfc->t_context->t,tfc,NULL,NULL))
return FALSE;
-
+#endif
+#ifdef BABEL_CLEANUP
lttv_event_to_string(e, a_string, TRUE, !a_no_field_names, tfs);
+#endif
+ /* TODO 2012-03-12 Add state info */
+ lttv_event_to_string(event, a_string, !a_no_field_names);
+
+#ifdef BABEL_CLEANUP
if(a_state) {
g_string_append_printf(a_string, " %s ",
g_quark_to_string(process->state->s));
}
+#endif
g_string_append_printf(a_string,"\n");
fputs(a_string->str, a_file);
+
return FALSE;
}