projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve IEC binary and SI decimal prefix handling
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 5726befcb9abc1f4423246862a73cdc5affd89d7..62ff7abba5f1a25d7c52ecb5aa1e3a877464161a 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-110,6
+110,13
@@
enum {
RATE_PROCESS_POISSON = 1,
};
RATE_PROCESS_POISSON = 1,
};
+enum {
+ F_ADV_NONE = 0,
+ F_ADV_TYPE,
+ F_ADV_RANDOM,
+ F_ADV_SEQUENTIAL,
+};
+
/*
* Per-thread/process specific data. Only used for the network client
* for now.
/*
* Per-thread/process specific data. Only used for the network client
* for now.
@@
-528,6
+535,13
@@
extern uintptr_t page_size;
extern int initialize_fio(char *envp[]);
extern void deinitialize_fio(void);
extern int initialize_fio(char *envp[]);
extern void deinitialize_fio(void);
+#define N2S_NONE 0
+#define N2S_BITPERSEC 1 /* match unit_base for bit rates */
+#define N2S_PERSEC 2
+#define N2S_BIT 3
+#define N2S_BYTE 4
+#define N2S_BYTEPERSEC 8 /* match unit_base for byte rates */
+
#define FIO_GETOPT_JOB 0x89000000
#define FIO_GETOPT_IOENGINE 0x98000000
#define FIO_NR_OPTIONS (FIO_MAX_OPTS + 128)
#define FIO_GETOPT_JOB 0x89000000
#define FIO_GETOPT_IOENGINE 0x98000000
#define FIO_NR_OPTIONS (FIO_MAX_OPTS + 128)