Merge branch 'testing' of https://github.com/vincentkfu/fio
[fio.git] / thread_options.h
CommitLineData
8062f527
JA
1#ifndef FIO_THREAD_OPTIONS_H
2#define FIO_THREAD_OPTIONS_H
3
4#include "arch/arch.h"
5#include "os/os.h"
a8523a6a 6#include "options.h"
8062f527
JA
7#include "stat.h"
8#include "gettime.h"
888677a4 9#include "lib/ieee754.h"
61b9861d 10#include "lib/pattern.h"
3c978125 11#include "td_error.h"
8062f527 12
7b865a2f
BVA
13enum fio_zone_mode {
14 ZONE_MODE_NOT_SPECIFIED = 0,
15 ZONE_MODE_NONE = 1,
16 ZONE_MODE_STRIDED = 2, /* perform I/O in one zone at a time */
17 /* perform I/O across multiple zones simultaneously */
18 ZONE_MODE_ZBD = 3,
19};
20
8062f527
JA
21/*
22 * What type of allocation to use for io buffers
23 */
24enum fio_memtype {
25 MEM_MALLOC = 0, /* ordinary malloc */
26 MEM_SHM, /* use shared memory segments */
27 MEM_SHMHUGE, /* use shared memory segments with huge pages */
28 MEM_MMAP, /* use anonynomous mmap */
29 MEM_MMAPHUGE, /* memory mapped huge file */
217b0f1d 30 MEM_MMAPSHARED, /* use mmap with shared flag */
03553853 31 MEM_CUDA_MALLOC,/* use GPU memory */
8062f527
JA
32};
33
8062f527
JA
34#define ERROR_STR_MAX 128
35
8062f527 36#define BSSPLIT_MAX 64
3154f1ed 37#define ZONESPLIT_MAX 256
8062f527
JA
38
39struct bssplit {
5fff9543 40 uint64_t bs;
8062f527
JA
41 uint32_t perc;
42};
43
e0a04ac1
JA
44struct zone_split {
45 uint8_t access_perc;
46 uint8_t size_perc;
59466396
JA
47 uint8_t pad[6];
48 uint64_t size;
e0a04ac1
JA
49};
50
a8523a6a
JA
51#define NR_OPTS_SZ (FIO_MAX_OPTS / (8 * sizeof(uint64_t)))
52
cb1402d6
JA
53#define OPT_MAGIC 0x4f50544e
54
8062f527 55struct thread_options {
cb1402d6 56 int magic;
a8523a6a 57 uint64_t set_options[NR_OPTS_SZ];
8062f527
JA
58 char *description;
59 char *name;
9cc8cb91 60 char *wait_for;
8062f527
JA
61 char *directory;
62 char *filename;
63 char *filename_format;
64 char *opendir;
65 char *ioengine;
6730b40f 66 char *ioengine_so_path;
83ea422a 67 char *mmapfile;
8062f527
JA
68 enum td_ddir td_ddir;
69 unsigned int rw_seq;
70 unsigned int kb_base;
71 unsigned int unit_base;
72 unsigned int ddir_seq_nr;
c46fda90 73 long long ddir_seq_add;
8062f527
JA
74 unsigned int iodepth;
75 unsigned int iodepth_low;
76 unsigned int iodepth_batch;
82407585
RP
77 unsigned int iodepth_batch_complete_min;
78 unsigned int iodepth_batch_complete_max;
997b5680 79 unsigned int serialize_overlap;
8062f527 80
922a5be8
JA
81 unsigned int unique_filename;
82
8062f527 83 unsigned long long size;
5be9bf09 84 unsigned long long io_size;
8062f527
JA
85 unsigned int size_percent;
86 unsigned int fill_device;
bedc9dc2 87 unsigned int file_append;
8062f527
JA
88 unsigned long long file_size_low;
89 unsigned long long file_size_high;
90 unsigned long long start_offset;
83c8b093 91 unsigned long long start_offset_align;
8062f527 92
5fff9543
JF
93 unsigned long long bs[DDIR_RWDIR_CNT];
94 unsigned long long ba[DDIR_RWDIR_CNT];
95 unsigned long long min_bs[DDIR_RWDIR_CNT];
96 unsigned long long max_bs[DDIR_RWDIR_CNT];
8062f527
JA
97 struct bssplit *bssplit[DDIR_RWDIR_CNT];
98 unsigned int bssplit_nr[DDIR_RWDIR_CNT];
99
100 int *ignore_error[ERROR_TYPE_CNT];
101 unsigned int ignore_error_nr[ERROR_TYPE_CNT];
102 unsigned int error_dump;
103
104 unsigned int nr_files;
105 unsigned int open_files;
106 enum file_lock_mode file_lock_mode;
107
108 unsigned int odirect;
d01612f3 109 unsigned int oatomic;
8062f527
JA
110 unsigned int invalidate_cache;
111 unsigned int create_serialize;
112 unsigned int create_fsync;
113 unsigned int create_on_open;
114 unsigned int create_only;
115 unsigned int end_fsync;
116 unsigned int pre_read;
117 unsigned int sync_io;
ae8e559e 118 unsigned int write_hint;
8062f527
JA
119 unsigned int verify;
120 unsigned int do_verify;
8062f527
JA
121 unsigned int verify_interval;
122 unsigned int verify_offset;
123 char verify_pattern[MAX_PATTERN_SIZE];
124 unsigned int verify_pattern_bytes;
61b9861d
RP
125 struct pattern_fmt verify_fmt[8];
126 unsigned int verify_fmt_sz;
8062f527
JA
127 unsigned int verify_fatal;
128 unsigned int verify_dump;
129 unsigned int verify_async;
130 unsigned long long verify_backlog;
131 unsigned int verify_batch;
132 unsigned int experimental_verify;
ca09be4b
JA
133 unsigned int verify_state;
134 unsigned int verify_state_save;
8062f527
JA
135 unsigned int use_thread;
136 unsigned int unlink;
39c1c323 137 unsigned int unlink_each_loop;
8062f527
JA
138 unsigned int do_disk_util;
139 unsigned int override_sync;
140 unsigned int rand_repeatable;
56e2a5fc 141 unsigned int allrand_repeatable;
363cffa7 142 unsigned long long rand_seed;
8062f527 143 unsigned int log_avg_msec;
1e613c9c
KC
144 unsigned int log_hist_msec;
145 unsigned int log_hist_coarseness;
e6989e10 146 unsigned int log_max;
ae588852 147 unsigned int log_offset;
aee2ab67 148 unsigned int log_gz;
b26317c9 149 unsigned int log_gz_store;
3aea75b1 150 unsigned int log_unix_epoch;
8062f527
JA
151 unsigned int norandommap;
152 unsigned int softrandommap;
153 unsigned int bs_unaligned;
154 unsigned int fsync_on_close;
6aca9b3d 155 unsigned int bs_is_seq_rand;
8062f527 156
62167762
JC
157 unsigned int verify_only;
158
8062f527 159 unsigned int random_distribution;
f9cafb12 160 unsigned int exitall_error;
b7f487cf 161
e0a04ac1
JA
162 struct zone_split *zone_split[DDIR_RWDIR_CNT];
163 unsigned int zone_split_nr[DDIR_RWDIR_CNT];
164
888677a4
JA
165 fio_fp64_t zipf_theta;
166 fio_fp64_t pareto_h;
f88cd222 167 fio_fp64_t gauss_dev;
8062f527
JA
168
169 unsigned int random_generator;
170
d9472271 171 unsigned int perc_rand[DDIR_RWDIR_CNT];
211c9b89 172
8062f527 173 unsigned int hugepage_size;
5fff9543 174 unsigned long long rw_min_bs;
8062f527
JA
175 unsigned int thinktime;
176 unsigned int thinktime_spin;
177 unsigned int thinktime_blocks;
178 unsigned int fsync_blocks;
179 unsigned int fdatasync_blocks;
180 unsigned int barrier_blocks;
181 unsigned long long start_delay;
49050b56 182 unsigned long long start_delay_orig;
23ed19b0 183 unsigned long long start_delay_high;
8062f527
JA
184 unsigned long long timeout;
185 unsigned long long ramp_time;
2c5d94bc 186 unsigned int ss_state;
16e56d25
VF
187 fio_fp64_t ss_limit;
188 unsigned long long ss_dur;
189 unsigned long long ss_ramp_time;
8062f527
JA
190 unsigned int overwrite;
191 unsigned int bw_avg_time;
192 unsigned int iops_avg_time;
193 unsigned int loops;
194 unsigned long long zone_range;
195 unsigned long long zone_size;
196 unsigned long long zone_skip;
7b865a2f 197 enum fio_zone_mode zone_mode;
81c6b6cd 198 unsigned long long lockmem;
8062f527
JA
199 enum fio_memtype mem_type;
200 unsigned int mem_align;
201
af7d9f1f 202 unsigned long long max_latency;
8062f527
JA
203
204 unsigned int stonewall;
205 unsigned int new_group;
206 unsigned int numjobs;
207 os_cpu_mask_t cpumask;
8062f527 208 os_cpu_mask_t verify_cpumask;
c08f9fe2 209 os_cpu_mask_t log_gz_cpumask;
c2acfbac 210 unsigned int cpus_allowed_policy;
43522848 211 char *numa_cpunodes;
8062f527
JA
212 unsigned short numa_mem_mode;
213 unsigned int numa_mem_prefer_node;
43522848 214 char *numa_memnodes;
03553853 215 unsigned int gpu_dev_id;
89978a6b 216 unsigned int start_offset_percent;
03553853 217
8062f527
JA
218 unsigned int iolog;
219 unsigned int rwmixcycle;
5054e67c 220 unsigned int rwmix[DDIR_RWDIR_CNT];
8062f527 221 unsigned int nice;
81c6b6cd
JA
222 unsigned int ioprio;
223 unsigned int ioprio_class;
8062f527
JA
224 unsigned int file_service_type;
225 unsigned int group_reporting;
8243be59 226 unsigned int stats;
8062f527
JA
227 unsigned int fadvise_hint;
228 enum fio_fallocate_mode fallocate_mode;
229 unsigned int zero_buffers;
230 unsigned int refill_buffers;
231 unsigned int scramble_buffers;
ce35b1ec
JA
232 char buffer_pattern[MAX_PATTERN_SIZE];
233 unsigned int buffer_pattern_bytes;
8062f527
JA
234 unsigned int compress_percentage;
235 unsigned int compress_chunk;
5c94b008 236 unsigned int dedupe_percentage;
8062f527
JA
237 unsigned int time_based;
238 unsigned int disable_lat;
239 unsigned int disable_clat;
240 unsigned int disable_slat;
241 unsigned int disable_bw;
242 unsigned int unified_rw_rep;
243 unsigned int gtod_reduce;
244 unsigned int gtod_cpu;
8062f527
JA
245 enum fio_cs clocksource;
246 unsigned int no_stall;
247 unsigned int trim_percentage;
248 unsigned int trim_batch;
249 unsigned int trim_zero;
250 unsigned long long trim_backlog;
251 unsigned int clat_percentiles;
b599759b 252 unsigned int lat_percentiles;
8062f527
JA
253 unsigned int percentile_precision; /* digits after decimal for percentiles */
254 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
255
256 char *read_iolog_file;
98e7161c 257 bool read_iolog_chunked;
8062f527 258 char *write_iolog_file;
b9921d1a 259 char *merge_blktrace_file;
87a48ada 260 fio_fp64_t merge_blktrace_scalars[FIO_IO_U_LIST_MAX_LEN];
55bfd8c8 261 fio_fp64_t merge_blktrace_iters[FIO_IO_U_LIST_MAX_LEN];
dded427c
OS
262
263 unsigned int write_bw_log;
264 unsigned int write_lat_log;
265 unsigned int write_iops_log;
266 unsigned int write_hist_log;
267
8062f527
JA
268 char *bw_log_file;
269 char *lat_log_file;
270 char *iops_log_file;
1e613c9c 271 char *hist_log_file;
8062f527
JA
272 char *replay_redirect;
273
274 /*
275 * Pre-run and post-run shell
276 */
277 char *exec_prerun;
278 char *exec_postrun;
279
90eff1c9
SW
280 uint64_t rate[DDIR_RWDIR_CNT];
281 uint64_t ratemin[DDIR_RWDIR_CNT];
8062f527 282 unsigned int ratecycle;
a9da8ab2 283 unsigned int io_submit_mode;
8062f527
JA
284 unsigned int rate_iops[DDIR_RWDIR_CNT];
285 unsigned int rate_iops_min[DDIR_RWDIR_CNT];
6de65959 286 unsigned int rate_process;
1a9bf814 287 unsigned int rate_ign_think;
8062f527
JA
288
289 char *ioscheduler;
290
8062f527
JA
291 /*
292 * I/O Error handling
293 */
294 enum error_type continue_on_error;
295
296 /*
297 * Benchmark profile type
298 */
299 char *profile;
300
301 /*
302 * blkio cgroup support
303 */
304 char *cgroup;
305 unsigned int cgroup_weight;
306 unsigned int cgroup_nodelete;
307
308 unsigned int uid;
309 unsigned int gid;
310
311 int flow_id;
312 int flow;
313 int flow_watermark;
314 unsigned int flow_sleep;
315
0b288ba1 316 unsigned int offset_increment_percent;
8062f527 317 unsigned long long offset_increment;
ddf24e42 318 unsigned long long number_ios;
8062f527
JA
319
320 unsigned int sync_file_range;
3e260a46
JA
321
322 unsigned long long latency_target;
323 unsigned long long latency_window;
324 fio_fp64_t latency_percentile;
66347cfa 325
e883cb35
JF
326 unsigned int sig_figs;
327
66347cfa 328 unsigned block_error_hist;
0c63576e
JA
329
330 unsigned int replay_align;
331 unsigned int replay_scale;
6dd7fa77 332 unsigned int replay_time_scale;
d7235efb 333 unsigned int replay_skip;
3a5db920
JA
334
335 unsigned int per_job_logs;
2378826d
JA
336
337 unsigned int allow_create;
e81ecca3 338 unsigned int allow_mounted_write;
bfbdd35b
BVA
339
340 /* Parameters that affect zonemode=zbd */
341 unsigned int read_beyond_wp;
59b07544 342 int max_open_zones;
a7c2b6fc
BVA
343 fio_fp64_t zrt;
344 fio_fp64_t zrf;
8062f527
JA
345};
346
2dc1cbb5
JA
347#define FIO_TOP_STR_MAX 256
348
349struct thread_options_pack {
a8523a6a 350 uint64_t set_options[NR_OPTS_SZ];
2dc1cbb5
JA
351 uint8_t description[FIO_TOP_STR_MAX];
352 uint8_t name[FIO_TOP_STR_MAX];
9cc8cb91 353 uint8_t wait_for[FIO_TOP_STR_MAX];
2dc1cbb5
JA
354 uint8_t directory[FIO_TOP_STR_MAX];
355 uint8_t filename[FIO_TOP_STR_MAX];
22f80458 356 uint8_t filename_format[FIO_TOP_STR_MAX];
2dc1cbb5
JA
357 uint8_t opendir[FIO_TOP_STR_MAX];
358 uint8_t ioengine[FIO_TOP_STR_MAX];
83ea422a 359 uint8_t mmapfile[FIO_TOP_STR_MAX];
2dc1cbb5
JA
360 uint32_t td_ddir;
361 uint32_t rw_seq;
362 uint32_t kb_base;
22f80458 363 uint32_t unit_base;
2dc1cbb5
JA
364 uint32_t ddir_seq_nr;
365 uint64_t ddir_seq_add;
366 uint32_t iodepth;
367 uint32_t iodepth_low;
368 uint32_t iodepth_batch;
82407585
RP
369 uint32_t iodepth_batch_complete_min;
370 uint32_t iodepth_batch_complete_max;
997b5680 371 uint32_t serialize_overlap;
b599759b 372 uint32_t lat_percentiles;
2dc1cbb5
JA
373
374 uint64_t size;
5be9bf09 375 uint64_t io_size;
2dc1cbb5
JA
376 uint32_t size_percent;
377 uint32_t fill_device;
bedc9dc2 378 uint32_t file_append;
922a5be8 379 uint32_t unique_filename;
2dc1cbb5
JA
380 uint64_t file_size_low;
381 uint64_t file_size_high;
382 uint64_t start_offset;
83c8b093 383 uint64_t start_offset_align;
2dc1cbb5 384
5fff9543
JF
385 uint64_t bs[DDIR_RWDIR_CNT];
386 uint64_t ba[DDIR_RWDIR_CNT];
387 uint64_t min_bs[DDIR_RWDIR_CNT];
388 uint64_t max_bs[DDIR_RWDIR_CNT];
b999b3c7
JA
389 struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX];
390 uint32_t bssplit_nr[DDIR_RWDIR_CNT];
2dc1cbb5 391
e65a950a
JA
392 uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX];
393 uint32_t ignore_error_nr[ERROR_TYPE_CNT];
394 uint32_t error_dump;
395
2dc1cbb5
JA
396 uint32_t nr_files;
397 uint32_t open_files;
398 uint32_t file_lock_mode;
2dc1cbb5
JA
399
400 uint32_t odirect;
d01612f3 401 uint32_t oatomic;
2dc1cbb5
JA
402 uint32_t invalidate_cache;
403 uint32_t create_serialize;
404 uint32_t create_fsync;
405 uint32_t create_on_open;
fb390e24 406 uint32_t create_only;
2dc1cbb5
JA
407 uint32_t end_fsync;
408 uint32_t pre_read;
409 uint32_t sync_io;
ae8e559e 410 uint32_t write_hint;
2dc1cbb5
JA
411 uint32_t verify;
412 uint32_t do_verify;
2dc1cbb5
JA
413 uint32_t verify_interval;
414 uint32_t verify_offset;
415 uint8_t verify_pattern[MAX_PATTERN_SIZE];
416 uint32_t verify_pattern_bytes;
417 uint32_t verify_fatal;
418 uint32_t verify_dump;
419 uint32_t verify_async;
420 uint64_t verify_backlog;
421 uint32_t verify_batch;
836fcc0f 422 uint32_t experimental_verify;
ca09be4b
JA
423 uint32_t verify_state;
424 uint32_t verify_state_save;
2dc1cbb5
JA
425 uint32_t use_thread;
426 uint32_t unlink;
39c1c323 427 uint32_t unlink_each_loop;
2dc1cbb5
JA
428 uint32_t do_disk_util;
429 uint32_t override_sync;
430 uint32_t rand_repeatable;
56e2a5fc 431 uint32_t allrand_repeatable;
ee6ce26c 432 uint32_t pad;
363cffa7 433 uint64_t rand_seed;
2dc1cbb5 434 uint32_t log_avg_msec;
1e613c9c
KC
435 uint32_t log_hist_msec;
436 uint32_t log_hist_coarseness;
e6989e10 437 uint32_t log_max;
ae588852 438 uint32_t log_offset;
aee2ab67 439 uint32_t log_gz;
b26317c9 440 uint32_t log_gz_store;
3aea75b1 441 uint32_t log_unix_epoch;
2dc1cbb5
JA
442 uint32_t norandommap;
443 uint32_t softrandommap;
444 uint32_t bs_unaligned;
445 uint32_t fsync_on_close;
6aca9b3d 446 uint32_t bs_is_seq_rand;
2dc1cbb5 447
1e5324e7 448 uint32_t random_distribution;
f9cafb12 449 uint32_t exitall_error;
af7d9f1f
JA
450
451 uint32_t sync_file_range;
e0a04ac1
JA
452
453 struct zone_split zone_split[DDIR_RWDIR_CNT][ZONESPLIT_MAX];
454 uint32_t zone_split_nr[DDIR_RWDIR_CNT];
f88cd222 455
1e5324e7
JA
456 fio_fp64_t zipf_theta;
457 fio_fp64_t pareto_h;
f88cd222 458 fio_fp64_t gauss_dev;
1e5324e7 459
49758e11
JA
460 uint32_t random_generator;
461
d9472271 462 uint32_t perc_rand[DDIR_RWDIR_CNT];
211c9b89 463
2dc1cbb5 464 uint32_t hugepage_size;
5fff9543
JF
465 uint64_t rw_min_bs;
466 uint32_t pad2;
2dc1cbb5
JA
467 uint32_t thinktime;
468 uint32_t thinktime_spin;
469 uint32_t thinktime_blocks;
470 uint32_t fsync_blocks;
471 uint32_t fdatasync_blocks;
472 uint32_t barrier_blocks;
473 uint64_t start_delay;
23ed19b0 474 uint64_t start_delay_high;
2dc1cbb5
JA
475 uint64_t timeout;
476 uint64_t ramp_time;
72863286
JA
477 uint64_t ss_dur;
478 uint64_t ss_ramp_time;
2c5d94bc 479 uint32_t ss_state;
72863286 480 fio_fp64_t ss_limit;
2dc1cbb5
JA
481 uint32_t overwrite;
482 uint32_t bw_avg_time;
483 uint32_t iops_avg_time;
484 uint32_t loops;
485 uint64_t zone_range;
486 uint64_t zone_size;
487 uint64_t zone_skip;
ae278f9a 488 uint64_t lockmem;
2dc1cbb5
JA
489 uint32_t mem_type;
490 uint32_t mem_align;
491
492 uint32_t stonewall;
493 uint32_t new_group;
494 uint32_t numjobs;
57535f41
JA
495 /*
496 * We currently can't convert these, so don't enable them
497 */
498#if 0
2dc1cbb5 499 uint8_t cpumask[FIO_TOP_STR_MAX];
2dc1cbb5 500 uint8_t verify_cpumask[FIO_TOP_STR_MAX];
c08f9fe2 501 uint8_t log_gz_cpumask[FIO_TOP_STR_MAX];
57535f41 502#endif
6599ce5a 503 uint32_t gpu_dev_id;
89978a6b 504 uint32_t start_offset_percent;
c2acfbac 505 uint32_t cpus_allowed_policy;
2dc1cbb5
JA
506 uint32_t iolog;
507 uint32_t rwmixcycle;
5054e67c 508 uint32_t rwmix[DDIR_RWDIR_CNT];
2dc1cbb5 509 uint32_t nice;
28727df7
JA
510 uint32_t ioprio;
511 uint32_t ioprio_class;
2dc1cbb5
JA
512 uint32_t file_service_type;
513 uint32_t group_reporting;
8243be59 514 uint32_t stats;
2dc1cbb5
JA
515 uint32_t fadvise_hint;
516 uint32_t fallocate_mode;
517 uint32_t zero_buffers;
518 uint32_t refill_buffers;
519 uint32_t scramble_buffers;
ce35b1ec
JA
520 uint8_t buffer_pattern[MAX_PATTERN_SIZE];
521 uint32_t buffer_pattern_bytes;
5c94b008
JA
522 uint32_t compress_percentage;
523 uint32_t compress_chunk;
524 uint32_t dedupe_percentage;
2dc1cbb5
JA
525 uint32_t time_based;
526 uint32_t disable_lat;
527 uint32_t disable_clat;
528 uint32_t disable_slat;
529 uint32_t disable_bw;
95820b6e 530 uint32_t unified_rw_rep;
2dc1cbb5
JA
531 uint32_t gtod_reduce;
532 uint32_t gtod_cpu;
2dc1cbb5
JA
533 uint32_t clocksource;
534 uint32_t no_stall;
535 uint32_t trim_percentage;
536 uint32_t trim_batch;
537 uint32_t trim_zero;
538 uint64_t trim_backlog;
539 uint32_t clat_percentiles;
9db01ef9 540 uint32_t percentile_precision;
2dc1cbb5
JA
541 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
542
543 uint8_t read_iolog_file[FIO_TOP_STR_MAX];
544 uint8_t write_iolog_file[FIO_TOP_STR_MAX];
b9921d1a 545 uint8_t merge_blktrace_file[FIO_TOP_STR_MAX];
87a48ada 546 fio_fp64_t merge_blktrace_scalars[FIO_IO_U_LIST_MAX_LEN];
55bfd8c8 547 fio_fp64_t merge_blktrace_iters[FIO_IO_U_LIST_MAX_LEN];
dded427c
OS
548
549 uint32_t write_bw_log;
550 uint32_t write_lat_log;
551 uint32_t write_iops_log;
552 uint32_t write_hist_log;
553
2dc1cbb5
JA
554 uint8_t bw_log_file[FIO_TOP_STR_MAX];
555 uint8_t lat_log_file[FIO_TOP_STR_MAX];
556 uint8_t iops_log_file[FIO_TOP_STR_MAX];
68cebb4b 557 uint8_t hist_log_file[FIO_TOP_STR_MAX];
2dc1cbb5
JA
558 uint8_t replay_redirect[FIO_TOP_STR_MAX];
559
560 /*
561 * Pre-run and post-run shell
562 */
563 uint8_t exec_prerun[FIO_TOP_STR_MAX];
564 uint8_t exec_postrun[FIO_TOP_STR_MAX];
565
90eff1c9
SW
566 uint64_t rate[DDIR_RWDIR_CNT];
567 uint64_t ratemin[DDIR_RWDIR_CNT];
2dc1cbb5 568 uint32_t ratecycle;
a9da8ab2 569 uint32_t io_submit_mode;
b999b3c7
JA
570 uint32_t rate_iops[DDIR_RWDIR_CNT];
571 uint32_t rate_iops_min[DDIR_RWDIR_CNT];
6de65959 572 uint32_t rate_process;
1a9bf814 573 uint32_t rate_ign_think;
ee6ce26c 574 uint32_t pad3;
2dc1cbb5
JA
575
576 uint8_t ioscheduler[FIO_TOP_STR_MAX];
577
2dc1cbb5
JA
578 /*
579 * I/O Error handling
580 */
581 uint32_t continue_on_error;
582
583 /*
584 * Benchmark profile type
585 */
586 uint8_t profile[FIO_TOP_STR_MAX];
587
588 /*
589 * blkio cgroup support
590 */
591 uint8_t cgroup[FIO_TOP_STR_MAX];
592 uint32_t cgroup_weight;
593 uint32_t cgroup_nodelete;
594
595 uint32_t uid;
596 uint32_t gid;
597
598 int32_t flow_id;
599 int32_t flow;
600 int32_t flow_watermark;
601 uint32_t flow_sleep;
602
0b288ba1
VF
603 uint32_t offset_increment_percent;
604 uint32_t pad4;
6a4cf74f 605 uint64_t offset_increment;
ddf24e42 606 uint64_t number_ios;
6a4cf74f 607
3e260a46
JA
608 uint64_t latency_target;
609 uint64_t latency_window;
af7d9f1f 610 uint64_t max_latency;
3e260a46 611 fio_fp64_t latency_percentile;
66347cfa 612
e883cb35
JF
613 uint32_t sig_figs;
614
66347cfa 615 uint32_t block_error_hist;
0c63576e
JA
616
617 uint32_t replay_align;
618 uint32_t replay_scale;
6dd7fa77 619 uint32_t replay_time_scale;
d7235efb 620 uint32_t replay_skip;
3a5db920
JA
621
622 uint32_t per_job_logs;
2378826d
JA
623
624 uint32_t allow_create;
e81ecca3 625 uint32_t allow_mounted_write;
7b865a2f
BVA
626
627 uint32_t zone_mode;
2dc1cbb5
JA
628} __attribute__((packed));
629
630extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top);
631extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *);
51167799 632extern int fio_test_cconv(struct thread_options *);
588b7f09 633extern void options_default_fill(struct thread_options *o);
2dc1cbb5 634
8062f527 635#endif