summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Fu <Vincent.Fu@sandisk.com>2016-07-13 14:50:13 -0400
committerJens Axboe <axboe@fb.com>2016-08-15 09:44:52 -0600
commite569ca6bfecb44f42f8e52cf2c294728c4bf3a1b (patch)
treee1b2bd274e80b020489742a42cc7b58dc6c8c09b
parent412c7d91f9bac0b5e857a0daa4233d0ff5e01154 (diff)
downloadfio-e569ca6bfecb44f42f8e52cf2c294728c4bf3a1b.tar.gz
fio-e569ca6bfecb44f42f8e52cf2c294728c4bf3a1b.tar.bz2
Split helper thread debug logging away from steadystate debug logging
-rw-r--r--debug.h1
-rw-r--r--helper_thread.c2
-rw-r--r--init.c4
3 files changed, 6 insertions, 1 deletions
diff --git a/debug.h b/debug.h
index fb957474..e3aa3f18 100644
--- a/debug.h
+++ b/debug.h
@@ -22,6 +22,7 @@ enum {
FD_RATE,
FD_COMPRESS,
FD_STEADYSTATE,
+ FD_HELPERTHREAD,
FD_DEBUG_MAX,
};
diff --git a/helper_thread.c b/helper_thread.c
index d716f2b2..f88e781a 100644
--- a/helper_thread.c
+++ b/helper_thread.c
@@ -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 1b8f0827..7be31a14 100644
--- 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, },
};