projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for registrering external options
[fio.git]
/
fio.h
diff --git
a/fio.h
b/fio.h
index e4ed76fbde2bf0304f477349a67db1ad488db298..bdc1708123e89f73f704fecdd34301f76f1ca37e 100644
(file)
--- a/
fio.h
+++ b/
fio.h
@@
-28,6
+28,8
@@
#include "io_ddir.h"
#include "ioengine.h"
#include "iolog.h"
#include "io_ddir.h"
#include "ioengine.h"
#include "iolog.h"
+#include "profiles.h"
+#include "helpers.h"
#ifdef FIO_HAVE_GUASI
#include <guasi.h>
#ifdef FIO_HAVE_GUASI
#include <guasi.h>
@@
-225,6
+227,7
@@
struct thread_options {
unsigned int file_service_type;
unsigned int group_reporting;
unsigned int fadvise_hint;
unsigned int file_service_type;
unsigned int group_reporting;
unsigned int fadvise_hint;
+ unsigned int fallocate;
unsigned int zero_buffers;
unsigned int refill_buffers;
unsigned int time_based;
unsigned int zero_buffers;
unsigned int refill_buffers;
unsigned int time_based;
@@
-264,6
+267,20
@@
struct thread_options {
* I/O Error handling
*/
unsigned int continue_on_error;
* I/O Error handling
*/
unsigned int continue_on_error;
+
+ /*
+ * Benchmark profile type
+ */
+ unsigned int profile;
+
+ /*
+ * blkio cgroup support
+ */
+ char *cgroup;
+ unsigned int cgroup_weight;
+
+ unsigned int uid;
+ unsigned int gid;
};
#define FIO_VERROR_SIZE 128
};
#define FIO_VERROR_SIZE 128
@@
-343,7
+360,7
@@
struct thread_data {
/*
* Rate state
*/
/*
* Rate state
*/
- unsigned long rate_
u
sec_cycle[2];
+ unsigned long rate_
n
sec_cycle[2];
long rate_pending_usleep[2];
unsigned long rate_bytes[2];
unsigned long rate_blocks[2];
long rate_pending_usleep[2];
unsigned long rate_bytes[2];
unsigned long rate_blocks[2];