X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Ftext%2FtextDump.c;h=dd5f5ee07f2b36254614c819e1e6e8d3c69a7318;hb=556b540ae4beba8dd3dd0d628e149c6b93eb4c29;hp=ddee070b119e78bcfc40b29610152b483aa22988;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/modules/text/textDump.c b/lttv/modules/text/textDump.c index ddee070b..dd5f5ee0 100644 --- a/lttv/modules/text/textDump.c +++ b/lttv/modules/text/textDump.c @@ -40,6 +40,8 @@ #include #include +#include + static gboolean a_noevent, a_no_field_names, @@ -302,13 +304,14 @@ static gboolean write_trace_header(void *hook_data, void *call_data) return FALSE; } - static int write_event_content(void *hook_data, void *call_data) { gboolean result; LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); + LttvEvent *event = (struct bt_ctf_event *)call_data; +#ifdef BABEL_CLEANUP LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; LttvTracefileState *tfs = (LttvTracefileState *)call_data; @@ -340,17 +343,25 @@ static int write_event_content(void *hook_data, void *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; }