projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sg: fix short reads
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 819d4fcbbef15704baf091906db818e2b6f6b631..a00e8f23000c6450b5e636868602556c0057c35d 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-78,6
+78,7
@@
enum {
TD_F_VSTATE_SAVED = 1U << 10,
TD_F_NEED_LOCK = 1U << 11,
TD_F_CHILD = 1U << 12,
TD_F_VSTATE_SAVED = 1U << 10,
TD_F_NEED_LOCK = 1U << 11,
TD_F_CHILD = 1U << 12,
+ TD_F_NO_PROGRESS = 1U << 13,
};
enum {
};
enum {
@@
-237,9
+238,10
@@
struct thread_data {
* Rate state
*/
uint64_t rate_bps[DDIR_RWDIR_CNT];
* Rate state
*/
uint64_t rate_bps[DDIR_RWDIR_CNT];
-
long rate_pending_usleep
[DDIR_RWDIR_CNT];
+
unsigned long rate_next_io_time
[DDIR_RWDIR_CNT];
unsigned long rate_bytes[DDIR_RWDIR_CNT];
unsigned long rate_blocks[DDIR_RWDIR_CNT];
unsigned long rate_bytes[DDIR_RWDIR_CNT];
unsigned long rate_blocks[DDIR_RWDIR_CNT];
+ unsigned long rate_io_issue_bytes[DDIR_RWDIR_CNT];
struct timeval lastrate[DDIR_RWDIR_CNT];
/*
struct timeval lastrate[DDIR_RWDIR_CNT];
/*
@@
-432,6
+434,7
@@
extern char *trigger_file;
extern char *trigger_cmd;
extern char *trigger_remote_cmd;
extern long long trigger_timeout;
extern char *trigger_cmd;
extern char *trigger_remote_cmd;
extern long long trigger_timeout;
+extern char *aux_path;
extern struct thread_data *threads;
extern struct thread_data *threads;
@@
-516,6
+519,7
@@
enum {
TD_FINISHING,
TD_EXITED,
TD_REAPED,
TD_FINISHING,
TD_EXITED,
TD_REAPED,
+ TD_LAST,
};
extern void td_set_runstate(struct thread_data *, int);
};
extern void td_set_runstate(struct thread_data *, int);
@@
-664,7
+668,8
@@
extern const char *fio_get_arch_string(int);
extern const char *fio_get_os_string(int);
#ifdef FIO_INTERNAL
extern const char *fio_get_os_string(int);
#ifdef FIO_INTERNAL
-#define ARRAY_SIZE(x) (sizeof((x)) / (sizeof((x)[0])))
+#define ARRAY_SIZE(x) (sizeof((x)) / (sizeof((x)[0])))
+#define FIELD_SIZE(s, f) (sizeof(((typeof(s))0)->f))
#endif
enum {
#endif
enum {