Add --debug for enabling internal dumps on various actions
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index b7b25b21f37c8b81dc6e152d15955a74297f7980..2daeb2a63067ab4d85df59c9228cf4ae3ec2584e 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -184,7 +184,6 @@ enum {
        VERIFY_SHA256,                  /* sha256 sum data blocks */
        VERIFY_SHA512,                  /* sha512 sum data blocks */
        VERIFY_META,                    /* block_num, timestamp etc. */
-       VERIFY_PATTERN,                 /* verify a specific pattern */
        VERIFY_NULL,                    /* pretend to verify */
 };
 
@@ -393,6 +392,7 @@ struct thread_options {
        unsigned int iodepth_batch;
 
        unsigned long long size;
+       unsigned int fill_device;
        unsigned long long file_size_low;
        unsigned long long file_size_high;
        unsigned long long start_offset;
@@ -972,4 +972,19 @@ static inline void clear_error(struct thread_data *td)
        td->verror[0] = '\0';
 }
 
+enum {
+       FD_PROCESS      = 1 << 0,
+       FD_FILE         = 1 << 1,
+       FD_IO           = 1 << 2,
+       FD_MEM          = 1 << 3,
+};
+
+extern unsigned long fio_debug;
+#define dprint(type, str, args...)             \
+       do {                                    \
+               if (((type) & fio_debug) == 0)  \
+                       break;                  \
+               printf(str, ##args);            \
+       } while (0)
+
 #endif