options: kill 'use_os_rand'
[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
316 unsigned long long offset_increment;
ddf24e42 317 unsigned long long number_ios;
8062f527
JA
318
319 unsigned int sync_file_range;
3e260a46
JA
320
321 unsigned long long latency_target;
322 unsigned long long latency_window;
323 fio_fp64_t latency_percentile;
66347cfa 324
e883cb35
JF
325 unsigned int sig_figs;
326
66347cfa 327 unsigned block_error_hist;
0c63576e
JA
328
329 unsigned int replay_align;
330 unsigned int replay_scale;
6dd7fa77 331 unsigned int replay_time_scale;
d7235efb 332 unsigned int replay_skip;
3a5db920
JA
333
334 unsigned int per_job_logs;
2378826d
JA
335
336 unsigned int allow_create;
e81ecca3 337 unsigned int allow_mounted_write;
bfbdd35b
BVA
338
339 /* Parameters that affect zonemode=zbd */
340 unsigned int read_beyond_wp;
59b07544 341 int max_open_zones;
a7c2b6fc
BVA
342 fio_fp64_t zrt;
343 fio_fp64_t zrf;
8062f527
JA
344};
345
2dc1cbb5
JA
346#define FIO_TOP_STR_MAX 256
347
348struct thread_options_pack {
a8523a6a 349 uint64_t set_options[NR_OPTS_SZ];
2dc1cbb5
JA
350 uint8_t description[FIO_TOP_STR_MAX];
351 uint8_t name[FIO_TOP_STR_MAX];
9cc8cb91 352 uint8_t wait_for[FIO_TOP_STR_MAX];
2dc1cbb5
JA
353 uint8_t directory[FIO_TOP_STR_MAX];
354 uint8_t filename[FIO_TOP_STR_MAX];
22f80458 355 uint8_t filename_format[FIO_TOP_STR_MAX];
2dc1cbb5
JA
356 uint8_t opendir[FIO_TOP_STR_MAX];
357 uint8_t ioengine[FIO_TOP_STR_MAX];
83ea422a 358 uint8_t mmapfile[FIO_TOP_STR_MAX];
2dc1cbb5
JA
359 uint32_t td_ddir;
360 uint32_t rw_seq;
361 uint32_t kb_base;
22f80458 362 uint32_t unit_base;
2dc1cbb5
JA
363 uint32_t ddir_seq_nr;
364 uint64_t ddir_seq_add;
365 uint32_t iodepth;
366 uint32_t iodepth_low;
367 uint32_t iodepth_batch;
82407585
RP
368 uint32_t iodepth_batch_complete_min;
369 uint32_t iodepth_batch_complete_max;
997b5680 370 uint32_t serialize_overlap;
b599759b 371 uint32_t lat_percentiles;
2dc1cbb5
JA
372
373 uint64_t size;
5be9bf09 374 uint64_t io_size;
2dc1cbb5
JA
375 uint32_t size_percent;
376 uint32_t fill_device;
bedc9dc2 377 uint32_t file_append;
922a5be8 378 uint32_t unique_filename;
2dc1cbb5
JA
379 uint64_t file_size_low;
380 uint64_t file_size_high;
381 uint64_t start_offset;
83c8b093 382 uint64_t start_offset_align;
2dc1cbb5 383
5fff9543
JF
384 uint64_t bs[DDIR_RWDIR_CNT];
385 uint64_t ba[DDIR_RWDIR_CNT];
386 uint64_t min_bs[DDIR_RWDIR_CNT];
387 uint64_t max_bs[DDIR_RWDIR_CNT];
b999b3c7
JA
388 struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX];
389 uint32_t bssplit_nr[DDIR_RWDIR_CNT];
2dc1cbb5 390
e65a950a
JA
391 uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX];
392 uint32_t ignore_error_nr[ERROR_TYPE_CNT];
393 uint32_t error_dump;
394
2dc1cbb5
JA
395 uint32_t nr_files;
396 uint32_t open_files;
397 uint32_t file_lock_mode;
2dc1cbb5
JA
398
399 uint32_t odirect;
d01612f3 400 uint32_t oatomic;
2dc1cbb5
JA
401 uint32_t invalidate_cache;
402 uint32_t create_serialize;
403 uint32_t create_fsync;
404 uint32_t create_on_open;
fb390e24 405 uint32_t create_only;
2dc1cbb5
JA
406 uint32_t end_fsync;
407 uint32_t pre_read;
408 uint32_t sync_io;
ae8e559e 409 uint32_t write_hint;
2dc1cbb5
JA
410 uint32_t verify;
411 uint32_t do_verify;
2dc1cbb5
JA
412 uint32_t verify_interval;
413 uint32_t verify_offset;
414 uint8_t verify_pattern[MAX_PATTERN_SIZE];
415 uint32_t verify_pattern_bytes;
416 uint32_t verify_fatal;
417 uint32_t verify_dump;
418 uint32_t verify_async;
419 uint64_t verify_backlog;
420 uint32_t verify_batch;
836fcc0f 421 uint32_t experimental_verify;
ca09be4b
JA
422 uint32_t verify_state;
423 uint32_t verify_state_save;
2dc1cbb5
JA
424 uint32_t use_thread;
425 uint32_t unlink;
39c1c323 426 uint32_t unlink_each_loop;
2dc1cbb5
JA
427 uint32_t do_disk_util;
428 uint32_t override_sync;
429 uint32_t rand_repeatable;
56e2a5fc 430 uint32_t allrand_repeatable;
ee6ce26c 431 uint32_t pad;
363cffa7 432 uint64_t rand_seed;
2dc1cbb5 433 uint32_t log_avg_msec;
1e613c9c
KC
434 uint32_t log_hist_msec;
435 uint32_t log_hist_coarseness;
e6989e10 436 uint32_t log_max;
ae588852 437 uint32_t log_offset;
aee2ab67 438 uint32_t log_gz;
b26317c9 439 uint32_t log_gz_store;
3aea75b1 440 uint32_t log_unix_epoch;
2dc1cbb5
JA
441 uint32_t norandommap;
442 uint32_t softrandommap;
443 uint32_t bs_unaligned;
444 uint32_t fsync_on_close;
6aca9b3d 445 uint32_t bs_is_seq_rand;
2dc1cbb5 446
1e5324e7 447 uint32_t random_distribution;
f9cafb12 448 uint32_t exitall_error;
af7d9f1f
JA
449
450 uint32_t sync_file_range;
e0a04ac1
JA
451
452 struct zone_split zone_split[DDIR_RWDIR_CNT][ZONESPLIT_MAX];
453 uint32_t zone_split_nr[DDIR_RWDIR_CNT];
f88cd222 454
1e5324e7
JA
455 fio_fp64_t zipf_theta;
456 fio_fp64_t pareto_h;
f88cd222 457 fio_fp64_t gauss_dev;
1e5324e7 458
49758e11
JA
459 uint32_t random_generator;
460
d9472271 461 uint32_t perc_rand[DDIR_RWDIR_CNT];
211c9b89 462
2dc1cbb5 463 uint32_t hugepage_size;
5fff9543
JF
464 uint64_t rw_min_bs;
465 uint32_t pad2;
2dc1cbb5
JA
466 uint32_t thinktime;
467 uint32_t thinktime_spin;
468 uint32_t thinktime_blocks;
469 uint32_t fsync_blocks;
470 uint32_t fdatasync_blocks;
471 uint32_t barrier_blocks;
472 uint64_t start_delay;
23ed19b0 473 uint64_t start_delay_high;
2dc1cbb5
JA
474 uint64_t timeout;
475 uint64_t ramp_time;
72863286
JA
476 uint64_t ss_dur;
477 uint64_t ss_ramp_time;
2c5d94bc 478 uint32_t ss_state;
72863286 479 fio_fp64_t ss_limit;
2dc1cbb5
JA
480 uint32_t overwrite;
481 uint32_t bw_avg_time;
482 uint32_t iops_avg_time;
483 uint32_t loops;
484 uint64_t zone_range;
485 uint64_t zone_size;
486 uint64_t zone_skip;
ae278f9a 487 uint64_t lockmem;
2dc1cbb5
JA
488 uint32_t mem_type;
489 uint32_t mem_align;
490
491 uint32_t stonewall;
492 uint32_t new_group;
493 uint32_t numjobs;
57535f41
JA
494 /*
495 * We currently can't convert these, so don't enable them
496 */
497#if 0
2dc1cbb5 498 uint8_t cpumask[FIO_TOP_STR_MAX];
2dc1cbb5 499 uint8_t verify_cpumask[FIO_TOP_STR_MAX];
c08f9fe2 500 uint8_t log_gz_cpumask[FIO_TOP_STR_MAX];
57535f41 501#endif
6599ce5a 502 uint32_t gpu_dev_id;
89978a6b 503 uint32_t start_offset_percent;
c2acfbac 504 uint32_t cpus_allowed_policy;
2dc1cbb5
JA
505 uint32_t iolog;
506 uint32_t rwmixcycle;
5054e67c 507 uint32_t rwmix[DDIR_RWDIR_CNT];
2dc1cbb5 508 uint32_t nice;
28727df7
JA
509 uint32_t ioprio;
510 uint32_t ioprio_class;
2dc1cbb5
JA
511 uint32_t file_service_type;
512 uint32_t group_reporting;
8243be59 513 uint32_t stats;
2dc1cbb5
JA
514 uint32_t fadvise_hint;
515 uint32_t fallocate_mode;
516 uint32_t zero_buffers;
517 uint32_t refill_buffers;
518 uint32_t scramble_buffers;
ce35b1ec
JA
519 uint8_t buffer_pattern[MAX_PATTERN_SIZE];
520 uint32_t buffer_pattern_bytes;
5c94b008
JA
521 uint32_t compress_percentage;
522 uint32_t compress_chunk;
523 uint32_t dedupe_percentage;
2dc1cbb5
JA
524 uint32_t time_based;
525 uint32_t disable_lat;
526 uint32_t disable_clat;
527 uint32_t disable_slat;
528 uint32_t disable_bw;
95820b6e 529 uint32_t unified_rw_rep;
2dc1cbb5
JA
530 uint32_t gtod_reduce;
531 uint32_t gtod_cpu;
2dc1cbb5
JA
532 uint32_t clocksource;
533 uint32_t no_stall;
534 uint32_t trim_percentage;
535 uint32_t trim_batch;
536 uint32_t trim_zero;
537 uint64_t trim_backlog;
538 uint32_t clat_percentiles;
9db01ef9 539 uint32_t percentile_precision;
2dc1cbb5
JA
540 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
541
542 uint8_t read_iolog_file[FIO_TOP_STR_MAX];
543 uint8_t write_iolog_file[FIO_TOP_STR_MAX];
b9921d1a 544 uint8_t merge_blktrace_file[FIO_TOP_STR_MAX];
87a48ada 545 fio_fp64_t merge_blktrace_scalars[FIO_IO_U_LIST_MAX_LEN];
55bfd8c8 546 fio_fp64_t merge_blktrace_iters[FIO_IO_U_LIST_MAX_LEN];
dded427c
OS
547
548 uint32_t write_bw_log;
549 uint32_t write_lat_log;
550 uint32_t write_iops_log;
551 uint32_t write_hist_log;
552
2dc1cbb5
JA
553 uint8_t bw_log_file[FIO_TOP_STR_MAX];
554 uint8_t lat_log_file[FIO_TOP_STR_MAX];
555 uint8_t iops_log_file[FIO_TOP_STR_MAX];
68cebb4b 556 uint8_t hist_log_file[FIO_TOP_STR_MAX];
2dc1cbb5
JA
557 uint8_t replay_redirect[FIO_TOP_STR_MAX];
558
559 /*
560 * Pre-run and post-run shell
561 */
562 uint8_t exec_prerun[FIO_TOP_STR_MAX];
563 uint8_t exec_postrun[FIO_TOP_STR_MAX];
564
90eff1c9
SW
565 uint64_t rate[DDIR_RWDIR_CNT];
566 uint64_t ratemin[DDIR_RWDIR_CNT];
2dc1cbb5 567 uint32_t ratecycle;
a9da8ab2 568 uint32_t io_submit_mode;
b999b3c7
JA
569 uint32_t rate_iops[DDIR_RWDIR_CNT];
570 uint32_t rate_iops_min[DDIR_RWDIR_CNT];
6de65959 571 uint32_t rate_process;
1a9bf814 572 uint32_t rate_ign_think;
ee6ce26c 573 uint32_t pad3;
2dc1cbb5
JA
574
575 uint8_t ioscheduler[FIO_TOP_STR_MAX];
576
2dc1cbb5
JA
577 /*
578 * I/O Error handling
579 */
580 uint32_t continue_on_error;
581
582 /*
583 * Benchmark profile type
584 */
585 uint8_t profile[FIO_TOP_STR_MAX];
586
587 /*
588 * blkio cgroup support
589 */
590 uint8_t cgroup[FIO_TOP_STR_MAX];
591 uint32_t cgroup_weight;
592 uint32_t cgroup_nodelete;
593
594 uint32_t uid;
595 uint32_t gid;
596
597 int32_t flow_id;
598 int32_t flow;
599 int32_t flow_watermark;
600 uint32_t flow_sleep;
601
6a4cf74f 602 uint64_t offset_increment;
ddf24e42 603 uint64_t number_ios;
6a4cf74f 604
3e260a46
JA
605 uint64_t latency_target;
606 uint64_t latency_window;
af7d9f1f 607 uint64_t max_latency;
3e260a46 608 fio_fp64_t latency_percentile;
66347cfa 609
e883cb35
JF
610 uint32_t sig_figs;
611
66347cfa 612 uint32_t block_error_hist;
0c63576e
JA
613
614 uint32_t replay_align;
615 uint32_t replay_scale;
6dd7fa77 616 uint32_t replay_time_scale;
d7235efb 617 uint32_t replay_skip;
3a5db920
JA
618
619 uint32_t per_job_logs;
2378826d
JA
620
621 uint32_t allow_create;
e81ecca3 622 uint32_t allow_mounted_write;
7b865a2f
BVA
623
624 uint32_t zone_mode;
2dc1cbb5
JA
625} __attribute__((packed));
626
627extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top);
628extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *);
51167799 629extern int fio_test_cconv(struct thread_options *);
588b7f09 630extern void options_default_fill(struct thread_options *o);
2dc1cbb5 631
8062f527 632#endif