X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttv%2Fmodules%2Ftext%2FtextDump.c;h=1305eff8c8aa21ad6caa8fe89d2a16b585fe6b8e;hb=d04fa8383cb80eb3c8397edc0134e301f8f7a882;hp=a09c8b79ecb51f8392ed631135bf949b9452225c;hpb=451aaf275d421d71097d479eb0ae64fe908d8b6f;p=lttv.git diff --git a/lttv/modules/text/textDump.c b/lttv/modules/text/textDump.c index a09c8b79..1305eff8 100644 --- a/lttv/modules/text/textDump.c +++ b/lttv/modules/text/textDump.c @@ -35,11 +35,8 @@ #include #include #endif -// #include +#include #include -#include -#include -#include #include #include @@ -62,7 +59,7 @@ static LttvHooks *before_trace, *event_hook; - +#ifdef BABEL_CLEANUP static void print_path_tree(FILE *fp, GString *indent, LttvAttribute *tree) { @@ -200,6 +197,7 @@ print_tree(FILE *fp, GString *indent, LttvAttribute *tree) } } } +#endif #ifdef BABEL_CLEANUP static void print_stats(FILE *fp, LttvTracesetStats *tscs) @@ -276,8 +274,9 @@ static gboolean write_traceset_header(void *hook_data, void *call_data) static gboolean write_traceset_footer(void *hook_data, void *call_data) { +#ifdef BABEL_CLEAUP LttvTraceset *traceset = (LttvTraceset *)call_data; - +#endif g_info("TextDump traceset footer"); fprintf(a_file,"End trace set\n\n"); @@ -309,10 +308,11 @@ static gboolean write_trace_header(void *hook_data, void *call_data) static int write_event_content(void *hook_data, void *call_data) { +#ifdef BABEL_CLEANUP gboolean result; LttvIAttribute *attributes = LTTV_IATTRIBUTE(lttv_global_attributes()); - +#endif LttvEvent *event = (LttvEvent *)call_data; #ifdef BABEL_CLEANUP LttvTracefileContext *tfc = (LttvTracefileContext *)call_data; @@ -352,7 +352,7 @@ static int write_event_content(void *hook_data, void *call_data) #endif /* TODO 2012-03-12 Add state info */ - lttv_event_to_string(event, a_string, !a_no_field_names); + lttv_event_to_string(event, a_string, !a_no_field_names, TRUE); #ifdef BABEL_CLEANUP if(a_state) {