X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Flttv%2Fmain.c;h=eca23438b09cd6dc21eda2503598a777c65e705d;hb=1a9cecaec39a36e03c516a04bc37ab8495745f21;hp=4e306c6d4ef97d288952540e54a3cdf83fadfc83;hpb=00100e0e5d6f3d7a4fb15e8698179f8e79c8c1ac;p=lttv.git diff --git a/ltt/branches/poly/lttv/lttv/main.c b/ltt/branches/poly/lttv/lttv/main.c index 4e306c6d..eca23438 100644 --- a/ltt/branches/poly/lttv/lttv/main.c +++ b/ltt/branches/poly/lttv/lttv/main.c @@ -67,6 +67,8 @@ static void lttv_verbose(void *hook_data); 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); @@ -183,6 +185,11 @@ int main(int argc, char **argv) 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", @@ -265,6 +272,12 @@ void lttv_debug(void *hook_data) 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);