projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generate unique pathname for each fio --client log file
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index 0da0bc5d97442544d2b2269b32c7b8ae64c79ba3..df4fbb16da9d4ab7dec15870c3e6826d50c329dc 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-311,6
+311,7
@@
struct thread_data {
struct timeval start; /* start of this loop */
struct timeval epoch; /* time job was started */
struct timeval start; /* start of this loop */
struct timeval epoch; /* time job was started */
+ unsigned long long unix_epoch; /* Time job was started, unix epoch based. */
struct timeval last_issue;
long time_offset;
struct timeval tv_cache;
struct timeval last_issue;
long time_offset;
struct timeval tv_cache;
@@
-563,7
+564,8
@@
enum {
static inline enum fio_ioengine_flags td_ioengine_flags(struct thread_data *td)
{
static inline enum fio_ioengine_flags td_ioengine_flags(struct thread_data *td)
{
- return (td->flags >> TD_ENG_FLAG_SHIFT) & TD_ENG_FLAG_MASK;
+ return (enum fio_ioengine_flags)
+ ((td->flags >> TD_ENG_FLAG_SHIFT) & TD_ENG_FLAG_MASK);
}
static inline void td_set_ioengine_flags(struct thread_data *td)
}
static inline void td_set_ioengine_flags(struct thread_data *td)
@@
-571,9
+573,10
@@
static inline void td_set_ioengine_flags(struct thread_data *td)
td->flags |= (td->io_ops->flags << TD_ENG_FLAG_SHIFT);
}
td->flags |= (td->io_ops->flags << TD_ENG_FLAG_SHIFT);
}
-static inline bool td_ioengine_flagged(struct thread_data *td, unsigned int val)
+static inline bool td_ioengine_flagged(struct thread_data *td,
+ enum fio_ioengine_flags flags)
{
{
- return ((td->flags >> TD_ENG_FLAG_SHIFT) &
val
) != 0;
+ return ((td->flags >> TD_ENG_FLAG_SHIFT) &
flags
) != 0;
}
extern void td_set_runstate(struct thread_data *, int);
}
extern void td_set_runstate(struct thread_data *, int);