projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parse: cleanup difference between profile and normal options
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 0d7fbeb9b734980e4883d5feff3dde2a6e5ba9e0..719b2f3b8342f03648ec1cbbabdfd1d57cb51462 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)
@@
-406,7
+416,7
@@
extern int parse_cmd_line(int, char **, int);
extern int fio_backend(void);
extern void reset_fio_state(void);
extern void clear_io_state(struct thread_data *);
extern int fio_backend(void);
extern void reset_fio_state(void);
extern void clear_io_state(struct thread_data *);
-extern int fio_options_parse(struct thread_data *, char **, int);
+extern int fio_options_parse(struct thread_data *, char **, int
, int
);
extern void fio_keywords_init(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_keywords_init(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 *);
@@
-479,10
+489,16
@@
extern void reset_all_stats(struct thread_data *);
* blktrace support
*/
#ifdef FIO_HAVE_BLKTRACE
* blktrace support
*/
#ifdef FIO_HAVE_BLKTRACE
-extern int is_blktrace(const char *);
-extern int load_blktrace(struct thread_data *, const char *);
+extern int is_blktrace(const char *
, int *
);
+extern int load_blktrace(struct thread_data *, const char *
, int
);
#endif
#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) \