projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: cleanup output types
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 685aab1988f7b6163b59ec4ca88bc8c94637f6e5..9e99da194f4f53850ec4299027f88e8bd8048e0d 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-167,6
+167,8
@@
struct zone_split_index {
uint64_t size_prev;
};
uint64_t size_prev;
};
+#define FIO_MAX_OPEN_ZBD_ZONES 128
+
/*
* This describes a single thread/process executing a fio job.
*/
/*
* This describes a single thread/process executing a fio job.
*/
@@
-399,6
+401,11
@@
struct thread_data {
* For IO replaying
*/
struct flist_head io_log_list;
* For IO replaying
*/
struct flist_head io_log_list;
+ FILE *io_log_rfile;
+ unsigned int io_log_current;
+ unsigned int io_log_checkmark;
+ unsigned int io_log_highmark;
+ struct timespec io_log_highmark_time;
/*
* For tracking/handling discards
/*
* For tracking/handling discards
@@
-517,6
+524,7
@@
extern int fio_clock_source_set;
extern int warnings_fatal;
extern int terse_version;
extern int is_backend;
extern int warnings_fatal;
extern int terse_version;
extern int is_backend;
+extern int is_local_backend;
extern int nr_clients;
extern int log_syslog;
extern int status_interval;
extern int nr_clients;
extern int log_syslog;
extern int status_interval;
@@
-529,6
+537,11
@@
extern char *aux_path;
extern struct thread_data *threads;
extern struct thread_data *threads;
+static inline bool is_running_backend(void)
+{
+ return is_backend || is_local_backend;
+}
+
extern bool eta_time_within_slack(unsigned int time);
static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u)
extern bool eta_time_within_slack(unsigned int time);
static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u)
@@
-761,16
+774,14
@@
static inline bool td_async_processing(struct thread_data *td)
* We currently only need to do locking if we have verifier threads
* accessing our internal structures too
*/
* We currently only need to do locking if we have verifier threads
* accessing our internal structures too
*/
-static inline void td_io_u_lock(struct thread_data *td)
+static inline void
__
td_io_u_lock(struct thread_data *td)
{
{
- if (td_async_processing(td))
- pthread_mutex_lock(&td->io_u_lock);
+ pthread_mutex_lock(&td->io_u_lock);
}
}
-static inline void td_io_u_unlock(struct thread_data *td)
+static inline void
__
td_io_u_unlock(struct thread_data *td)
{
{
- if (td_async_processing(td))
- pthread_mutex_unlock(&td->io_u_lock);
+ pthread_mutex_unlock(&td->io_u_lock);
}
static inline void td_io_u_free_notify(struct thread_data *td)
}
static inline void td_io_u_free_notify(struct thread_data *td)