Make td flags be shifts
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 0d5a0efb5882cbcef8fd11739667686ea6363a8c..819d4fcbbef15704baf091906db818e2b6f6b631 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -65,19 +65,19 @@ enum {
 };
 
 enum {
-       TD_F_VER_BACKLOG        = 1,
-       TD_F_TRIM_BACKLOG       = 2,
-       TD_F_READ_IOLOG         = 4,
-       TD_F_REFILL_BUFFERS     = 8,
-       TD_F_SCRAMBLE_BUFFERS   = 16,
-       TD_F_VER_NONE           = 32,
-       TD_F_PROFILE_OPS        = 64,
-       TD_F_COMPRESS           = 128,
-       TD_F_NOIO               = 256,
-       TD_F_COMPRESS_LOG       = 512,
-       TD_F_VSTATE_SAVED       = 1024,
-       TD_F_NEED_LOCK          = 2048,
-       TD_F_CHILD              = 4096,
+       TD_F_VER_BACKLOG        = 1U << 0,
+       TD_F_TRIM_BACKLOG       = 1U << 1,
+       TD_F_READ_IOLOG         = 1U << 2,
+       TD_F_REFILL_BUFFERS     = 1U << 3,
+       TD_F_SCRAMBLE_BUFFERS   = 1U << 4,
+       TD_F_VER_NONE           = 1U << 5,
+       TD_F_PROFILE_OPS        = 1U << 6,
+       TD_F_COMPRESS           = 1U << 7,
+       TD_F_NOIO               = 1U << 8,
+       TD_F_COMPRESS_LOG       = 1U << 9,
+       TD_F_VSTATE_SAVED       = 1U << 10,
+       TD_F_NEED_LOCK          = 1U << 11,
+       TD_F_CHILD              = 1U << 12,
 };
 
 enum {
@@ -464,6 +464,7 @@ extern void reset_fio_state(void);
 extern void clear_io_state(struct thread_data *);
 extern int fio_options_parse(struct thread_data *, char **, int, int);
 extern void fio_keywords_init(void);
+extern void fio_keywords_exit(void);
 extern int fio_cmd_option_parse(struct thread_data *, const char *, char *);
 extern int fio_cmd_ioengine_option_parse(struct thread_data *, const char *, char *);
 extern void fio_fill_default_options(struct thread_data *);
@@ -483,6 +484,7 @@ extern int fio_set_fd_nonblocking(int, const char *);
 extern uintptr_t page_mask;
 extern uintptr_t page_size;
 extern int initialize_fio(char *envp[]);
+extern void deinitialize_fio(void);
 
 #define FIO_GETOPT_JOB         0x89000000
 #define FIO_GETOPT_IOENGINE    0x98000000
@@ -684,6 +686,7 @@ enum {
 enum {
        FIO_RAND_GEN_TAUSWORTHE = 0,
        FIO_RAND_GEN_LFSR,
+       FIO_RAND_GEN_TAUSWORTHE64,
 };
 
 enum {