static void lttv_debug(void *hook_data);
+static void lttv_event_debug(void *hook_data);
+
static void lttv_fatal(void *hook_data);
static void lttv_help(void *hook_data);
lttv_option_add("debug",'d', "print debugging messages", "none",
LTTV_OPT_NONE, NULL, lttv_debug, NULL);
+ /* use -edebug, -e conflicts with filter. Problem with option parsing when we
+ * reparse the options with different number of arguments. */
+ lttv_option_add("edebug",'e', "print event debugging", "none",
+ LTTV_OPT_NONE, NULL, lttv_event_debug, NULL);
+
a_fatal = FALSE;
lttv_option_add("fatal",'f', "make critical messages fatal",
"none",
g_info("Logging set to include DEBUG level messages");
}
+void lttv_event_debug(void *hook_data)
+{
+ ltt_event_debug(1);
+ g_info("Output event detailed debug");
+}
+
void lttv_fatal(void *hook_data)
{
g_log_set_always_fatal(G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL);