projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fio: allow general repeatability
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index d0fe83a5ca6e8a62e2eb74b082e35063cdbd1039..cda4668601e88d6945c9f43e33cf85bbbaafc234 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-248,6
+248,16
@@
struct thread_data {
unsigned int tv_cache_mask;
unsigned int ramp_time_over;
unsigned int tv_cache_mask;
unsigned int ramp_time_over;
+ /*
+ * Time since last latency_window was started
+ */
+ struct timeval latency_ts;
+ unsigned int latency_qd;
+ unsigned int latency_qd_high;
+ unsigned int latency_qd_low;
+ unsigned int latency_failed;
+ uint64_t latency_ios;
+
/*
* read/write mixed workload state
*/
/*
* read/write mixed workload state
*/
@@
-333,10
+343,10
@@
enum {
#define __td_verror(td, err, msg, func) \
do { \
#define __td_verror(td, err, msg, func) \
do { \
- int
e = (err);
\
+ int
____e = (err);
\
if ((td)->error) \
break; \
if ((td)->error) \
break; \
- (td)->error =
e;
\
+ (td)->error =
____e;
\
if (!(td)->first_error) \
snprintf(td->verror, sizeof(td->verror), "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \
} while (0)
if (!(td)->first_error) \
snprintf(td->verror, sizeof(td->verror), "file:%s:%d, func=%s, error=%s", __FILE__, __LINE__, (func), (msg)); \
} while (0)
@@
-483,6
+493,12
@@
extern int is_blktrace(const char *, int *);
extern int load_blktrace(struct thread_data *, const char *, int);
#endif
extern int load_blktrace(struct thread_data *, const char *, int);
#endif
+/*
+ * Latency target helpers
+ */
+extern void lat_target_check(struct thread_data *);
+extern void lat_target_init(struct thread_data *);
+
#define for_each_td(td, i) \
for ((i) = 0, (td) = &threads[0]; (i) < (int) thread_number; (i)++, (td)++)
#define for_each_file(td, f, i) \
#define for_each_td(td, i) \
for ((i) = 0, (td) = &threads[0]; (i) < (int) thread_number; (i)++, (td)++)
#define for_each_file(td, f, i) \