X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=fio.h;h=119dc09e74b47728c85095a5445dbbcaecbd944f;hb=d09913c248f04ab33a7e7bbfb2227e9db8b9f4a2;hp=1723067eb325adb33112b9239ae29869067c19ca;hpb=9ac8a797da61a59c9fa1b59f8574246555403d19;p=fio.git diff --git a/fio.h b/fio.h index 1723067e..119dc09e 100644 --- a/fio.h +++ b/fio.h @@ -29,6 +29,7 @@ #include "ioengine.h" #include "iolog.h" #include "profiles.h" +#include "helpers.h" #ifdef FIO_HAVE_GUASI #include @@ -270,6 +271,15 @@ struct thread_options { * 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 @@ -349,7 +359,7 @@ struct thread_data { /* * Rate state */ - unsigned long rate_usec_cycle[2]; + unsigned long rate_nsec_cycle[2]; long rate_pending_usleep[2]; unsigned long rate_bytes[2]; unsigned long rate_blocks[2];