X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=trunk%2Flttv%2Flttv%2Fmodules%2Ftext%2FtextDump.c;h=ec0c563cb8c687923bf20ffe7c918280a8efd315;hb=9d128d8e2d4e5721b92d36af438e77d90e8a8805;hp=4fcd5b5c49abd779a51c962b19cddf55c705541a;hpb=d5662043c1570c860ee97af8d6cdd95af95a8c50;p=lttv.git diff --git a/trunk/lttv/lttv/modules/text/textDump.c b/trunk/lttv/lttv/modules/text/textDump.c index 4fcd5b5c..ec0c563c 100644 --- a/trunk/lttv/lttv/modules/text/textDump.c +++ b/trunk/lttv/lttv/modules/text/textDump.c @@ -40,6 +40,7 @@ #include static gboolean + a_noevent, a_no_field_names, a_state, a_cpu_stats, @@ -321,6 +322,9 @@ static int write_event_content(void *hook_data, void *call_data) LttvTraceState *ts = (LttvTraceState*)tfc->t_context; LttvProcessState *process = ts->running_process[cpu]; + if (a_noevent) + return FALSE; + e = ltt_tracefile_get_event(tfc->tf); result = lttv_iattribute_find_by_path(attributes, "filter/lttv_filter", @@ -368,6 +372,12 @@ static void init() "file name", LTTV_OPT_STRING, &a_file_name, NULL, NULL); + a_noevent = FALSE; + lttv_option_add("noevent", 'n', + "disable event printout", + "", + LTTV_OPT_NONE, &a_noevent, NULL, NULL); + a_no_field_names = FALSE; lttv_option_add("field_names", 's', "do not write the field names for each event", @@ -433,6 +443,8 @@ static void destroy() { g_info("Destroy textDump"); + lttv_option_remove("noevent"); + lttv_option_remove("output"); lttv_option_remove("field_names");