blob: f311e2c62a53c898f25c12bd09764f5b2be879b3 [file] [log] [blame]
Jens Axboe8062f522013-04-10 15:01:42 +02001#ifndef FIO_THREAD_OPTIONS_H
2#define FIO_THREAD_OPTIONS_H
3
4#include "arch/arch.h"
5#include "os/os.h"
6#include "stat.h"
7#include "gettime.h"
Jens Axboe888677a2013-04-10 22:19:46 +02008#include "lib/ieee754.h"
Jens Axboe3c978122013-04-17 19:27:46 +02009#include "td_error.h"
Jens Axboe8062f522013-04-10 15:01:42 +020010
11/*
12 * What type of allocation to use for io buffers
13 */
14enum fio_memtype {
15 MEM_MALLOC = 0, /* ordinary malloc */
16 MEM_SHM, /* use shared memory segments */
17 MEM_SHMHUGE, /* use shared memory segments with huge pages */
18 MEM_MMAP, /* use anonynomous mmap */
19 MEM_MMAPHUGE, /* memory mapped huge file */
20};
21
Jens Axboe8062f522013-04-10 15:01:42 +020022#define ERROR_STR_MAX 128
23
Jens Axboe8062f522013-04-10 15:01:42 +020024#define BSSPLIT_MAX 64
25
26struct bssplit {
27 uint32_t bs;
28 uint32_t perc;
29};
30
Jens Axboecb1402d2014-02-25 11:35:27 -080031#define OPT_MAGIC 0x4f50544e
32
Jens Axboe8062f522013-04-10 15:01:42 +020033struct thread_options {
Jens Axboecb1402d2014-02-25 11:35:27 -080034 int magic;
Jens Axboe8062f522013-04-10 15:01:42 +020035 char *description;
36 char *name;
37 char *directory;
38 char *filename;
39 char *filename_format;
40 char *opendir;
41 char *ioengine;
Jens Axboe83ea4222012-03-28 14:01:46 +020042 char *mmapfile;
Jens Axboe8062f522013-04-10 15:01:42 +020043 enum td_ddir td_ddir;
44 unsigned int rw_seq;
45 unsigned int kb_base;
46 unsigned int unit_base;
47 unsigned int ddir_seq_nr;
Sébastien Bouchex Bellomiéc46fda92014-03-11 08:54:27 -060048 long long ddir_seq_add;
Jens Axboe8062f522013-04-10 15:01:42 +020049 unsigned int iodepth;
50 unsigned int iodepth_low;
51 unsigned int iodepth_batch;
52 unsigned int iodepth_batch_complete;
53
54 unsigned long long size;
Jens Axboe77731b22014-04-28 12:08:47 -060055 unsigned long long io_limit;
Jens Axboe8062f522013-04-10 15:01:42 +020056 unsigned int size_percent;
57 unsigned int fill_device;
Jens Axboebedc9dc2014-03-17 12:51:09 -060058 unsigned int file_append;
Jens Axboe8062f522013-04-10 15:01:42 +020059 unsigned long long file_size_low;
60 unsigned long long file_size_high;
61 unsigned long long start_offset;
62
63 unsigned int bs[DDIR_RWDIR_CNT];
64 unsigned int ba[DDIR_RWDIR_CNT];
65 unsigned int min_bs[DDIR_RWDIR_CNT];
66 unsigned int max_bs[DDIR_RWDIR_CNT];
67 struct bssplit *bssplit[DDIR_RWDIR_CNT];
68 unsigned int bssplit_nr[DDIR_RWDIR_CNT];
69
70 int *ignore_error[ERROR_TYPE_CNT];
71 unsigned int ignore_error_nr[ERROR_TYPE_CNT];
72 unsigned int error_dump;
73
74 unsigned int nr_files;
75 unsigned int open_files;
76 enum file_lock_mode file_lock_mode;
77
78 unsigned int odirect;
Chris Masond01612f2013-11-15 15:52:58 -070079 unsigned int oatomic;
Jens Axboe8062f522013-04-10 15:01:42 +020080 unsigned int invalidate_cache;
81 unsigned int create_serialize;
82 unsigned int create_fsync;
83 unsigned int create_on_open;
84 unsigned int create_only;
85 unsigned int end_fsync;
86 unsigned int pre_read;
87 unsigned int sync_io;
88 unsigned int verify;
89 unsigned int do_verify;
90 unsigned int verifysort;
91 unsigned int verifysort_nr;
92 unsigned int verify_interval;
93 unsigned int verify_offset;
94 char verify_pattern[MAX_PATTERN_SIZE];
95 unsigned int verify_pattern_bytes;
96 unsigned int verify_fatal;
97 unsigned int verify_dump;
98 unsigned int verify_async;
99 unsigned long long verify_backlog;
100 unsigned int verify_batch;
101 unsigned int experimental_verify;
Jens Axboede54cfd2014-11-10 20:34:00 -0700102 unsigned int verify_state;
103 unsigned int verify_state_save;
Jens Axboe8062f522013-04-10 15:01:42 +0200104 unsigned int use_thread;
105 unsigned int unlink;
106 unsigned int do_disk_util;
107 unsigned int override_sync;
108 unsigned int rand_repeatable;
Christian Ehrhardt56e2a5f2014-02-20 09:10:17 -0800109 unsigned int allrand_repeatable;
Grant Grundler363cffa2014-01-28 15:11:23 -0700110 unsigned long long rand_seed;
Jens Axboe559073f2014-11-05 18:34:02 -0700111 unsigned int dep_use_os_rand;
Jens Axboe8062f522013-04-10 15:01:42 +0200112 unsigned int log_avg_msec;
Jens Axboeccefd5f2014-06-30 20:59:03 -0600113 unsigned int log_offset;
Jens Axboe38a812d2014-07-03 09:10:39 -0600114 unsigned int log_gz;
Jens Axboebac4af12014-07-03 13:42:28 -0600115 unsigned int log_gz_store;
Jens Axboe8062f522013-04-10 15:01:42 +0200116 unsigned int norandommap;
117 unsigned int softrandommap;
118 unsigned int bs_unaligned;
119 unsigned int fsync_on_close;
Jens Axboe6aca9b32013-07-25 12:45:26 -0600120 unsigned int bs_is_seq_rand;
Jens Axboe8062f522013-04-10 15:01:42 +0200121
Juan Casse62167762013-09-17 14:06:13 -0700122 unsigned int verify_only;
123
Jens Axboe8062f522013-04-10 15:01:42 +0200124 unsigned int random_distribution;
Jens Axboeb7f487c2013-04-10 19:50:32 +0200125
Jens Axboe888677a2013-04-10 22:19:46 +0200126 fio_fp64_t zipf_theta;
127 fio_fp64_t pareto_h;
Jens Axboe8062f522013-04-10 15:01:42 +0200128
129 unsigned int random_generator;
130
Jens Axboed9472272013-07-25 10:20:45 -0600131 unsigned int perc_rand[DDIR_RWDIR_CNT];
Jens Axboe211c9b82013-04-26 08:56:17 -0600132
Jens Axboe8062f522013-04-10 15:01:42 +0200133 unsigned int hugepage_size;
134 unsigned int rw_min_bs;
135 unsigned int thinktime;
136 unsigned int thinktime_spin;
137 unsigned int thinktime_blocks;
138 unsigned int fsync_blocks;
139 unsigned int fdatasync_blocks;
140 unsigned int barrier_blocks;
141 unsigned long long start_delay;
Christian Ehrhardt23ed19b2014-02-20 09:07:02 -0800142 unsigned long long start_delay_high;
Jens Axboe8062f522013-04-10 15:01:42 +0200143 unsigned long long timeout;
144 unsigned long long ramp_time;
145 unsigned int overwrite;
146 unsigned int bw_avg_time;
147 unsigned int iops_avg_time;
148 unsigned int loops;
149 unsigned long long zone_range;
150 unsigned long long zone_size;
151 unsigned long long zone_skip;
Jens Axboe81c6b6c2013-04-10 19:30:50 +0200152 unsigned long long lockmem;
Jens Axboe8062f522013-04-10 15:01:42 +0200153 enum fio_memtype mem_type;
154 unsigned int mem_align;
155
156 unsigned int max_latency;
157
158 unsigned int stonewall;
159 unsigned int new_group;
160 unsigned int numjobs;
161 os_cpu_mask_t cpumask;
162 unsigned int cpumask_set;
163 os_cpu_mask_t verify_cpumask;
164 unsigned int verify_cpumask_set;
Jens Axboec2acfba2014-02-27 15:52:02 -0800165 unsigned int cpus_allowed_policy;
Daniel Gollub43522842014-05-01 17:07:49 +0200166 char *numa_cpunodes;
Jens Axboe8062f522013-04-10 15:01:42 +0200167 unsigned int numa_cpumask_set;
168 unsigned short numa_mem_mode;
169 unsigned int numa_mem_prefer_node;
Daniel Gollub43522842014-05-01 17:07:49 +0200170 char *numa_memnodes;
Jens Axboe8062f522013-04-10 15:01:42 +0200171 unsigned int numa_memmask_set;
Jens Axboe8062f522013-04-10 15:01:42 +0200172 unsigned int iolog;
173 unsigned int rwmixcycle;
Jens Axboe5054e672013-11-08 10:57:08 -0700174 unsigned int rwmix[DDIR_RWDIR_CNT];
Jens Axboe8062f522013-04-10 15:01:42 +0200175 unsigned int nice;
Jens Axboe81c6b6c2013-04-10 19:30:50 +0200176 unsigned int ioprio;
177 unsigned int ioprio_class;
Jens Axboe8062f522013-04-10 15:01:42 +0200178 unsigned int file_service_type;
179 unsigned int group_reporting;
180 unsigned int fadvise_hint;
181 enum fio_fallocate_mode fallocate_mode;
182 unsigned int zero_buffers;
183 unsigned int refill_buffers;
184 unsigned int scramble_buffers;
Jens Axboece35b1e2014-01-14 15:35:58 -0700185 char buffer_pattern[MAX_PATTERN_SIZE];
186 unsigned int buffer_pattern_bytes;
Jens Axboe8062f522013-04-10 15:01:42 +0200187 unsigned int compress_percentage;
188 unsigned int compress_chunk;
Jens Axboee66dac22014-09-22 10:02:07 -0600189 unsigned int dedupe_percentage;
Jens Axboe8062f522013-04-10 15:01:42 +0200190 unsigned int time_based;
191 unsigned int disable_lat;
192 unsigned int disable_clat;
193 unsigned int disable_slat;
194 unsigned int disable_bw;
195 unsigned int unified_rw_rep;
196 unsigned int gtod_reduce;
197 unsigned int gtod_cpu;
198 unsigned int gtod_offload;
199 enum fio_cs clocksource;
200 unsigned int no_stall;
201 unsigned int trim_percentage;
202 unsigned int trim_batch;
203 unsigned int trim_zero;
204 unsigned long long trim_backlog;
205 unsigned int clat_percentiles;
206 unsigned int percentile_precision; /* digits after decimal for percentiles */
207 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
208
209 char *read_iolog_file;
210 char *write_iolog_file;
211 char *bw_log_file;
212 char *lat_log_file;
213 char *iops_log_file;
214 char *replay_redirect;
215
216 /*
217 * Pre-run and post-run shell
218 */
219 char *exec_prerun;
220 char *exec_postrun;
221
222 unsigned int rate[DDIR_RWDIR_CNT];
223 unsigned int ratemin[DDIR_RWDIR_CNT];
224 unsigned int ratecycle;
225 unsigned int rate_iops[DDIR_RWDIR_CNT];
226 unsigned int rate_iops_min[DDIR_RWDIR_CNT];
227
228 char *ioscheduler;
229
230 /*
Jens Axboe8062f522013-04-10 15:01:42 +0200231 * I/O Error handling
232 */
233 enum error_type continue_on_error;
234
235 /*
236 * Benchmark profile type
237 */
238 char *profile;
239
240 /*
241 * blkio cgroup support
242 */
243 char *cgroup;
244 unsigned int cgroup_weight;
245 unsigned int cgroup_nodelete;
246
247 unsigned int uid;
248 unsigned int gid;
249
250 int flow_id;
251 int flow;
252 int flow_watermark;
253 unsigned int flow_sleep;
254
255 unsigned long long offset_increment;
Jens Axboeddf24e42013-08-09 12:53:44 -0600256 unsigned long long number_ios;
Jens Axboe8062f522013-04-10 15:01:42 +0200257
258 unsigned int sync_file_range;
Jens Axboe3e260a42013-12-09 12:38:53 -0700259
260 unsigned long long latency_target;
261 unsigned long long latency_window;
262 fio_fp64_t latency_percentile;
Jens Axboe8062f522013-04-10 15:01:42 +0200263};
264
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100265#define FIO_TOP_STR_MAX 256
266
267struct thread_options_pack {
268 uint8_t description[FIO_TOP_STR_MAX];
269 uint8_t name[FIO_TOP_STR_MAX];
270 uint8_t directory[FIO_TOP_STR_MAX];
271 uint8_t filename[FIO_TOP_STR_MAX];
Jens Axboe22f80452013-04-09 20:29:16 +0200272 uint8_t filename_format[FIO_TOP_STR_MAX];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100273 uint8_t opendir[FIO_TOP_STR_MAX];
274 uint8_t ioengine[FIO_TOP_STR_MAX];
Jens Axboe83ea4222012-03-28 14:01:46 +0200275 uint8_t mmapfile[FIO_TOP_STR_MAX];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100276 uint32_t td_ddir;
277 uint32_t rw_seq;
278 uint32_t kb_base;
Jens Axboe22f80452013-04-09 20:29:16 +0200279 uint32_t unit_base;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100280 uint32_t ddir_seq_nr;
281 uint64_t ddir_seq_add;
282 uint32_t iodepth;
283 uint32_t iodepth_low;
284 uint32_t iodepth_batch;
285 uint32_t iodepth_batch_complete;
286
287 uint64_t size;
Jens Axboe77731b22014-04-28 12:08:47 -0600288 uint64_t io_limit;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100289 uint32_t size_percent;
290 uint32_t fill_device;
Jens Axboebedc9dc2014-03-17 12:51:09 -0600291 uint32_t file_append;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100292 uint64_t file_size_low;
293 uint64_t file_size_high;
294 uint64_t start_offset;
295
Jens Axboeb999b3c2012-09-24 09:39:49 +0200296 uint32_t bs[DDIR_RWDIR_CNT];
297 uint32_t ba[DDIR_RWDIR_CNT];
298 uint32_t min_bs[DDIR_RWDIR_CNT];
299 uint32_t max_bs[DDIR_RWDIR_CNT];
300 struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX];
301 uint32_t bssplit_nr[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100302
Jens Axboee65a9502012-09-24 09:24:04 +0200303 uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX];
304 uint32_t ignore_error_nr[ERROR_TYPE_CNT];
305 uint32_t error_dump;
306
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100307 uint32_t nr_files;
308 uint32_t open_files;
309 uint32_t file_lock_mode;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100310
311 uint32_t odirect;
Chris Masond01612f2013-11-15 15:52:58 -0700312 uint32_t oatomic;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100313 uint32_t invalidate_cache;
314 uint32_t create_serialize;
315 uint32_t create_fsync;
316 uint32_t create_on_open;
Jens Axboefb390e22012-05-07 09:54:41 +0200317 uint32_t create_only;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100318 uint32_t end_fsync;
319 uint32_t pre_read;
320 uint32_t sync_io;
321 uint32_t verify;
322 uint32_t do_verify;
323 uint32_t verifysort;
Jens Axboe836fcc02013-01-24 09:08:45 -0700324 uint32_t verifysort_nr;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100325 uint32_t verify_interval;
326 uint32_t verify_offset;
327 uint8_t verify_pattern[MAX_PATTERN_SIZE];
328 uint32_t verify_pattern_bytes;
329 uint32_t verify_fatal;
330 uint32_t verify_dump;
331 uint32_t verify_async;
332 uint64_t verify_backlog;
333 uint32_t verify_batch;
Jens Axboe836fcc02013-01-24 09:08:45 -0700334 uint32_t experimental_verify;
Jens Axboede54cfd2014-11-10 20:34:00 -0700335 uint32_t verify_state;
336 uint32_t verify_state_save;
337 uint32_t pad;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100338 uint32_t use_thread;
339 uint32_t unlink;
340 uint32_t do_disk_util;
341 uint32_t override_sync;
342 uint32_t rand_repeatable;
Christian Ehrhardt56e2a5f2014-02-20 09:10:17 -0800343 uint32_t allrand_repeatable;
Grant Grundler363cffa2014-01-28 15:11:23 -0700344 uint64_t rand_seed;
Jens Axboe559073f2014-11-05 18:34:02 -0700345 uint32_t dep_use_os_rand;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100346 uint32_t log_avg_msec;
Jens Axboeccefd5f2014-06-30 20:59:03 -0600347 uint32_t log_offset;
Jens Axboe38a812d2014-07-03 09:10:39 -0600348 uint32_t log_gz;
Jens Axboebac4af12014-07-03 13:42:28 -0600349 uint32_t log_gz_store;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100350 uint32_t norandommap;
351 uint32_t softrandommap;
352 uint32_t bs_unaligned;
353 uint32_t fsync_on_close;
Jens Axboe6aca9b32013-07-25 12:45:26 -0600354 uint32_t bs_is_seq_rand;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100355
Jens Axboe1e5324e2012-11-14 14:25:31 -0700356 uint32_t random_distribution;
357 fio_fp64_t zipf_theta;
358 fio_fp64_t pareto_h;
359
Jens Axboe49758e12012-12-03 14:37:23 +0100360 uint32_t random_generator;
361
Jens Axboed9472272013-07-25 10:20:45 -0600362 uint32_t perc_rand[DDIR_RWDIR_CNT];
Jens Axboe211c9b82013-04-26 08:56:17 -0600363
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100364 uint32_t hugepage_size;
365 uint32_t rw_min_bs;
366 uint32_t thinktime;
367 uint32_t thinktime_spin;
368 uint32_t thinktime_blocks;
369 uint32_t fsync_blocks;
370 uint32_t fdatasync_blocks;
371 uint32_t barrier_blocks;
372 uint64_t start_delay;
Christian Ehrhardt23ed19b2014-02-20 09:07:02 -0800373 uint64_t start_delay_high;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100374 uint64_t timeout;
375 uint64_t ramp_time;
376 uint32_t overwrite;
377 uint32_t bw_avg_time;
378 uint32_t iops_avg_time;
379 uint32_t loops;
380 uint64_t zone_range;
381 uint64_t zone_size;
382 uint64_t zone_skip;
Jens Axboeae278f92012-03-28 20:52:55 +0200383 uint64_t lockmem;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100384 uint32_t mem_type;
385 uint32_t mem_align;
386
Jens Axboe1e5324e2012-11-14 14:25:31 -0700387 uint32_t max_latency;
388
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100389 uint32_t stonewall;
390 uint32_t new_group;
391 uint32_t numjobs;
392 uint8_t cpumask[FIO_TOP_STR_MAX];
393 uint32_t cpumask_set;
394 uint8_t verify_cpumask[FIO_TOP_STR_MAX];
395 uint32_t verify_cpumask_set;
Jens Axboec2acfba2014-02-27 15:52:02 -0800396 uint32_t cpus_allowed_policy;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100397 uint32_t iolog;
398 uint32_t rwmixcycle;
Jens Axboe5054e672013-11-08 10:57:08 -0700399 uint32_t rwmix[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100400 uint32_t nice;
Jens Axboe28727df2012-03-29 08:33:15 +0200401 uint32_t ioprio;
402 uint32_t ioprio_class;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100403 uint32_t file_service_type;
404 uint32_t group_reporting;
405 uint32_t fadvise_hint;
406 uint32_t fallocate_mode;
407 uint32_t zero_buffers;
408 uint32_t refill_buffers;
409 uint32_t scramble_buffers;
Jens Axboece35b1e2014-01-14 15:35:58 -0700410 uint8_t buffer_pattern[MAX_PATTERN_SIZE];
411 uint32_t buffer_pattern_bytes;
Jens Axboee66dac22014-09-22 10:02:07 -0600412 uint32_t compress_percentage;
413 uint32_t compress_chunk;
414 uint32_t dedupe_percentage;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100415 uint32_t time_based;
416 uint32_t disable_lat;
417 uint32_t disable_clat;
418 uint32_t disable_slat;
419 uint32_t disable_bw;
Jens Axboe95820b62013-01-31 13:23:40 +0100420 uint32_t unified_rw_rep;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100421 uint32_t gtod_reduce;
422 uint32_t gtod_cpu;
423 uint32_t gtod_offload;
424 uint32_t clocksource;
425 uint32_t no_stall;
426 uint32_t trim_percentage;
427 uint32_t trim_batch;
428 uint32_t trim_zero;
429 uint64_t trim_backlog;
430 uint32_t clat_percentiles;
Jens Axboe9db01ef2013-02-07 15:45:39 +0100431 uint32_t percentile_precision;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100432 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
433
434 uint8_t read_iolog_file[FIO_TOP_STR_MAX];
435 uint8_t write_iolog_file[FIO_TOP_STR_MAX];
436 uint8_t bw_log_file[FIO_TOP_STR_MAX];
437 uint8_t lat_log_file[FIO_TOP_STR_MAX];
438 uint8_t iops_log_file[FIO_TOP_STR_MAX];
439 uint8_t replay_redirect[FIO_TOP_STR_MAX];
440
441 /*
442 * Pre-run and post-run shell
443 */
444 uint8_t exec_prerun[FIO_TOP_STR_MAX];
445 uint8_t exec_postrun[FIO_TOP_STR_MAX];
446
Jens Axboeb999b3c2012-09-24 09:39:49 +0200447 uint32_t rate[DDIR_RWDIR_CNT];
448 uint32_t ratemin[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100449 uint32_t ratecycle;
Jens Axboeb999b3c2012-09-24 09:39:49 +0200450 uint32_t rate_iops[DDIR_RWDIR_CNT];
451 uint32_t rate_iops_min[DDIR_RWDIR_CNT];
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100452
453 uint8_t ioscheduler[FIO_TOP_STR_MAX];
454
455 /*
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100456 * I/O Error handling
457 */
458 uint32_t continue_on_error;
459
460 /*
461 * Benchmark profile type
462 */
463 uint8_t profile[FIO_TOP_STR_MAX];
464
465 /*
466 * blkio cgroup support
467 */
468 uint8_t cgroup[FIO_TOP_STR_MAX];
469 uint32_t cgroup_weight;
470 uint32_t cgroup_nodelete;
471
472 uint32_t uid;
473 uint32_t gid;
474
475 int32_t flow_id;
476 int32_t flow;
477 int32_t flow_watermark;
478 uint32_t flow_sleep;
479
Jens Axboe6a4cf742012-03-16 14:02:54 +0100480 uint64_t offset_increment;
Jens Axboeddf24e42013-08-09 12:53:44 -0600481 uint64_t number_ios;
Jens Axboe6a4cf742012-03-16 14:02:54 +0100482
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100483 uint32_t sync_file_range;
Shu-Yu Fuf45d32b2014-10-21 07:57:55 -0600484 uint32_t pad2;
Jens Axboe3e260a42013-12-09 12:38:53 -0700485
486 uint64_t latency_target;
487 uint64_t latency_window;
488 fio_fp64_t latency_percentile;
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100489} __attribute__((packed));
490
491extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top);
492extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *);
Jens Axboe51167792012-03-08 21:34:18 +0100493extern int fio_test_cconv(struct thread_options *);
Jens Axboe588b7f02012-03-19 20:37:41 +0100494extern void options_default_fill(struct thread_options *o);
Jens Axboe2dc1cbb2012-03-08 14:52:25 +0100495
Jens Axboe8062f522013-04-10 15:01:42 +0200496#endif