update noevent
[lttv.git] / trunk / lttv / lttv / modules / text / textDump.c
index 4fcd5b5c49abd779a51c962b19cddf55c705541a..ec0c563cb8c687923bf20ffe7c918280a8efd315 100644 (file)
@@ -40,6 +40,7 @@
 #include <stdio.h>
 
 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");
This page took 0.023532 seconds and 4 git commands to generate.