Split helper thread debug logging away from steadystate debug logging
authorVincent Fu <Vincent.Fu@sandisk.com>
Wed, 13 Jul 2016 18:50:13 +0000 (14:50 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:44:52 +0000 (09:44 -0600)
debug.h
helper_thread.c
init.c

diff --git a/debug.h b/debug.h
index fb95747..e3aa3f1 100644 (file)
--- a/debug.h
+++ b/debug.h
@@ -22,6 +22,7 @@ enum {
        FD_RATE,
        FD_COMPRESS,
        FD_STEADYSTATE,
+       FD_HELPERTHREAD,
        FD_DEBUG_MAX,
 };
 
index d716f2b..f88e781 100644 (file)
@@ -140,7 +140,7 @@ static void *helper_thread_main(void *data)
                 }
 
                msec_to_next_event = min(min(next_log, msec_to_next_event), next_ss);
-               dprint(FD_STEADYSTATE, "since_ss: %llu, next_ss: %u, next_log: %u, msec_to_next_event: %u\n", (unsigned long long)since_ss, next_ss, next_log, msec_to_next_event);
+               dprint(FD_HELPERTHREAD, "since_ss: %llu, next_ss: %u, next_log: %u, msec_to_next_event: %u\n", (unsigned long long)since_ss, next_ss, next_log, msec_to_next_event);
 
                if (!is_backend)
                        print_thread_status();
diff --git a/init.c b/init.c
index 1b8f082..7be31a1 100644 (file)
--- a/init.c
+++ b/init.c
@@ -2187,6 +2187,10 @@ struct debug_level debug_levels[] = {
          .help = "Steady state detection logging",
          .shift = FD_STEADYSTATE,
        },
+       { .name = "helperthread",
+         .help = "Helper thread logging",
+         .shift = FD_HELPERTHREAD,
+       },
        { .name = NULL, },
 };