init: use __log_buf() if we know buf != NULL
[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;
54a21917 143 unsigned int dep_use_os_rand;
8062f527 144 unsigned int log_avg_msec;
1e613c9c
KC
145 unsigned int log_hist_msec;
146 unsigned int log_hist_coarseness;
e6989e10 147 unsigned int log_max;
ae588852 148 unsigned int log_offset;
aee2ab67 149 unsigned int log_gz;
b26317c9 150 unsigned int log_gz_store;
3aea75b1 151 unsigned int log_unix_epoch;
8062f527
JA
152 unsigned int norandommap;
153 unsigned int softrandommap;
154 unsigned int bs_unaligned;
155 unsigned int fsync_on_close;
6aca9b3d 156 unsigned int bs_is_seq_rand;
8062f527 157
62167762
JC
158 unsigned int verify_only;
159
8062f527 160 unsigned int random_distribution;
f9cafb12 161 unsigned int exitall_error;
b7f487cf 162
e0a04ac1
JA
163 struct zone_split *zone_split[DDIR_RWDIR_CNT];
164 unsigned int zone_split_nr[DDIR_RWDIR_CNT];
165
888677a4
JA
166 fio_fp64_t zipf_theta;
167 fio_fp64_t pareto_h;
f88cd222 168 fio_fp64_t gauss_dev;
8062f527
JA
169
170 unsigned int random_generator;
171
d9472271 172 unsigned int perc_rand[DDIR_RWDIR_CNT];
211c9b89 173
8062f527 174 unsigned int hugepage_size;
5fff9543
JF
175 unsigned long long rw_min_bs;
176 unsigned int pad2;
8062f527
JA
177 unsigned int thinktime;
178 unsigned int thinktime_spin;
179 unsigned int thinktime_blocks;
180 unsigned int fsync_blocks;
181 unsigned int fdatasync_blocks;
182 unsigned int barrier_blocks;
183 unsigned long long start_delay;
49050b56 184 unsigned long long start_delay_orig;
23ed19b0 185 unsigned long long start_delay_high;
8062f527
JA
186 unsigned long long timeout;
187 unsigned long long ramp_time;
2c5d94bc 188 unsigned int ss_state;
16e56d25
VF
189 fio_fp64_t ss_limit;
190 unsigned long long ss_dur;
191 unsigned long long ss_ramp_time;
8062f527
JA
192 unsigned int overwrite;
193 unsigned int bw_avg_time;
194 unsigned int iops_avg_time;
195 unsigned int loops;
196 unsigned long long zone_range;
197 unsigned long long zone_size;
198 unsigned long long zone_skip;
7b865a2f 199 enum fio_zone_mode zone_mode;
81c6b6cd 200 unsigned long long lockmem;
8062f527
JA
201 enum fio_memtype mem_type;
202 unsigned int mem_align;
203
af7d9f1f 204 unsigned long long max_latency;
8062f527
JA
205
206 unsigned int stonewall;
207 unsigned int new_group;
208 unsigned int numjobs;
209 os_cpu_mask_t cpumask;
8062f527 210 os_cpu_mask_t verify_cpumask;
c08f9fe2 211 os_cpu_mask_t log_gz_cpumask;
c2acfbac 212 unsigned int cpus_allowed_policy;
43522848 213 char *numa_cpunodes;
8062f527
JA
214 unsigned short numa_mem_mode;
215 unsigned int numa_mem_prefer_node;
43522848 216 char *numa_memnodes;
03553853 217 unsigned int gpu_dev_id;
89978a6b 218 unsigned int start_offset_percent;
03553853 219
8062f527
JA
220 unsigned int iolog;
221 unsigned int rwmixcycle;
5054e67c 222 unsigned int rwmix[DDIR_RWDIR_CNT];
8062f527 223 unsigned int nice;
81c6b6cd
JA
224 unsigned int ioprio;
225 unsigned int ioprio_class;
8062f527
JA
226 unsigned int file_service_type;
227 unsigned int group_reporting;
8243be59 228 unsigned int stats;
8062f527
JA
229 unsigned int fadvise_hint;
230 enum fio_fallocate_mode fallocate_mode;
231 unsigned int zero_buffers;
232 unsigned int refill_buffers;
233 unsigned int scramble_buffers;
ce35b1ec
JA
234 char buffer_pattern[MAX_PATTERN_SIZE];
235 unsigned int buffer_pattern_bytes;
8062f527
JA
236 unsigned int compress_percentage;
237 unsigned int compress_chunk;
5c94b008 238 unsigned int dedupe_percentage;
8062f527
JA
239 unsigned int time_based;
240 unsigned int disable_lat;
241 unsigned int disable_clat;
242 unsigned int disable_slat;
243 unsigned int disable_bw;
244 unsigned int unified_rw_rep;
245 unsigned int gtod_reduce;
246 unsigned int gtod_cpu;
8062f527
JA
247 enum fio_cs clocksource;
248 unsigned int no_stall;
249 unsigned int trim_percentage;
250 unsigned int trim_batch;
251 unsigned int trim_zero;
252 unsigned long long trim_backlog;
253 unsigned int clat_percentiles;
b599759b 254 unsigned int lat_percentiles;
8062f527
JA
255 unsigned int percentile_precision; /* digits after decimal for percentiles */
256 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
257
258 char *read_iolog_file;
98e7161c 259 bool read_iolog_chunked;
8062f527 260 char *write_iolog_file;
dded427c
OS
261
262 unsigned int write_bw_log;
263 unsigned int write_lat_log;
264 unsigned int write_iops_log;
265 unsigned int write_hist_log;
266
8062f527
JA
267 char *bw_log_file;
268 char *lat_log_file;
269 char *iops_log_file;
1e613c9c 270 char *hist_log_file;
8062f527
JA
271 char *replay_redirect;
272
273 /*
274 * Pre-run and post-run shell
275 */
276 char *exec_prerun;
277 char *exec_postrun;
278
90eff1c9
SW
279 uint64_t rate[DDIR_RWDIR_CNT];
280 uint64_t ratemin[DDIR_RWDIR_CNT];
8062f527 281 unsigned int ratecycle;
a9da8ab2 282 unsigned int io_submit_mode;
8062f527
JA
283 unsigned int rate_iops[DDIR_RWDIR_CNT];
284 unsigned int rate_iops_min[DDIR_RWDIR_CNT];
6de65959 285 unsigned int rate_process;
1a9bf814 286 unsigned int rate_ign_think;
8062f527
JA
287
288 char *ioscheduler;
289
8062f527
JA
290 /*
291 * I/O Error handling
292 */
293 enum error_type continue_on_error;
294
295 /*
296 * Benchmark profile type
297 */
298 char *profile;
299
300 /*
301 * blkio cgroup support
302 */
303 char *cgroup;
304 unsigned int cgroup_weight;
305 unsigned int cgroup_nodelete;
306
307 unsigned int uid;
308 unsigned int gid;
309
310 int flow_id;
311 int flow;
312 int flow_watermark;
313 unsigned int flow_sleep;
314
315 unsigned long long offset_increment;
ddf24e42 316 unsigned long long number_ios;
8062f527
JA
317
318 unsigned int sync_file_range;
3e260a46
JA
319
320 unsigned long long latency_target;
321 unsigned long long latency_window;
322 fio_fp64_t latency_percentile;
66347cfa 323
e883cb35
JF
324 unsigned int sig_figs;
325
66347cfa 326 unsigned block_error_hist;
0c63576e
JA
327
328 unsigned int replay_align;
329 unsigned int replay_scale;
6dd7fa77 330 unsigned int replay_time_scale;
d7235efb 331 unsigned int replay_skip;
3a5db920
JA
332
333 unsigned int per_job_logs;
2378826d
JA
334
335 unsigned int allow_create;
e81ecca3 336 unsigned int allow_mounted_write;
bfbdd35b
BVA
337
338 /* Parameters that affect zonemode=zbd */
339 unsigned int read_beyond_wp;
59b07544 340 int max_open_zones;
a7c2b6fc
BVA
341 fio_fp64_t zrt;
342 fio_fp64_t zrf;
8062f527
JA
343};
344
2dc1cbb5
JA
345#define FIO_TOP_STR_MAX 256
346
347struct thread_options_pack {
a8523a6a 348 uint64_t set_options[NR_OPTS_SZ];
2dc1cbb5
JA
349 uint8_t description[FIO_TOP_STR_MAX];
350 uint8_t name[FIO_TOP_STR_MAX];
9cc8cb91 351 uint8_t wait_for[FIO_TOP_STR_MAX];
2dc1cbb5
JA
352 uint8_t directory[FIO_TOP_STR_MAX];
353 uint8_t filename[FIO_TOP_STR_MAX];
22f80458 354 uint8_t filename_format[FIO_TOP_STR_MAX];
2dc1cbb5
JA
355 uint8_t opendir[FIO_TOP_STR_MAX];
356 uint8_t ioengine[FIO_TOP_STR_MAX];
83ea422a 357 uint8_t mmapfile[FIO_TOP_STR_MAX];
2dc1cbb5
JA
358 uint32_t td_ddir;
359 uint32_t rw_seq;
360 uint32_t kb_base;
22f80458 361 uint32_t unit_base;
2dc1cbb5
JA
362 uint32_t ddir_seq_nr;
363 uint64_t ddir_seq_add;
364 uint32_t iodepth;
365 uint32_t iodepth_low;
366 uint32_t iodepth_batch;
82407585
RP
367 uint32_t iodepth_batch_complete_min;
368 uint32_t iodepth_batch_complete_max;
997b5680 369 uint32_t serialize_overlap;
b599759b 370 uint32_t lat_percentiles;
2dc1cbb5
JA
371
372 uint64_t size;
5be9bf09 373 uint64_t io_size;
2dc1cbb5
JA
374 uint32_t size_percent;
375 uint32_t fill_device;
bedc9dc2 376 uint32_t file_append;
922a5be8 377 uint32_t unique_filename;
2dc1cbb5
JA
378 uint64_t file_size_low;
379 uint64_t file_size_high;
380 uint64_t start_offset;
83c8b093 381 uint64_t start_offset_align;
2dc1cbb5 382
5fff9543
JF
383 uint64_t bs[DDIR_RWDIR_CNT];
384 uint64_t ba[DDIR_RWDIR_CNT];
385 uint64_t min_bs[DDIR_RWDIR_CNT];
386 uint64_t max_bs[DDIR_RWDIR_CNT];
b999b3c7
JA
387 struct bssplit bssplit[DDIR_RWDIR_CNT][BSSPLIT_MAX];
388 uint32_t bssplit_nr[DDIR_RWDIR_CNT];
2dc1cbb5 389
e65a950a
JA
390 uint32_t ignore_error[ERROR_TYPE_CNT][ERROR_STR_MAX];
391 uint32_t ignore_error_nr[ERROR_TYPE_CNT];
392 uint32_t error_dump;
393
2dc1cbb5
JA
394 uint32_t nr_files;
395 uint32_t open_files;
396 uint32_t file_lock_mode;
2dc1cbb5
JA
397
398 uint32_t odirect;
d01612f3 399 uint32_t oatomic;
2dc1cbb5
JA
400 uint32_t invalidate_cache;
401 uint32_t create_serialize;
402 uint32_t create_fsync;
403 uint32_t create_on_open;
fb390e24 404 uint32_t create_only;
2dc1cbb5
JA
405 uint32_t end_fsync;
406 uint32_t pre_read;
407 uint32_t sync_io;
ae8e559e 408 uint32_t write_hint;
2dc1cbb5
JA
409 uint32_t verify;
410 uint32_t do_verify;
2dc1cbb5
JA
411 uint32_t verify_interval;
412 uint32_t verify_offset;
413 uint8_t verify_pattern[MAX_PATTERN_SIZE];
414 uint32_t verify_pattern_bytes;
415 uint32_t verify_fatal;
416 uint32_t verify_dump;
417 uint32_t verify_async;
418 uint64_t verify_backlog;
419 uint32_t verify_batch;
836fcc0f 420 uint32_t experimental_verify;
ca09be4b
JA
421 uint32_t verify_state;
422 uint32_t verify_state_save;
2dc1cbb5
JA
423 uint32_t use_thread;
424 uint32_t unlink;
39c1c323 425 uint32_t unlink_each_loop;
2dc1cbb5
JA
426 uint32_t do_disk_util;
427 uint32_t override_sync;
428 uint32_t rand_repeatable;
56e2a5fc 429 uint32_t allrand_repeatable;
363cffa7 430 uint64_t rand_seed;
54a21917 431 uint32_t dep_use_os_rand;
2dc1cbb5 432 uint32_t log_avg_msec;
1e613c9c
KC
433 uint32_t log_hist_msec;
434 uint32_t log_hist_coarseness;
e6989e10 435 uint32_t log_max;
ae588852 436 uint32_t log_offset;
aee2ab67 437 uint32_t log_gz;
b26317c9 438 uint32_t log_gz_store;
3aea75b1 439 uint32_t log_unix_epoch;
2dc1cbb5
JA
440 uint32_t norandommap;
441 uint32_t softrandommap;
442 uint32_t bs_unaligned;
443 uint32_t fsync_on_close;
6aca9b3d 444 uint32_t bs_is_seq_rand;
2dc1cbb5 445
1e5324e7 446 uint32_t random_distribution;
f9cafb12 447 uint32_t exitall_error;
af7d9f1f
JA
448
449 uint32_t sync_file_range;
e0a04ac1
JA
450
451 struct zone_split zone_split[DDIR_RWDIR_CNT][ZONESPLIT_MAX];
452 uint32_t zone_split_nr[DDIR_RWDIR_CNT];
f88cd222 453
1e5324e7
JA
454 fio_fp64_t zipf_theta;
455 fio_fp64_t pareto_h;
f88cd222 456 fio_fp64_t gauss_dev;
1e5324e7 457
49758e11
JA
458 uint32_t random_generator;
459
d9472271 460 uint32_t perc_rand[DDIR_RWDIR_CNT];
211c9b89 461
2dc1cbb5 462 uint32_t hugepage_size;
5fff9543
JF
463 uint64_t rw_min_bs;
464 uint32_t pad2;
2dc1cbb5
JA
465 uint32_t thinktime;
466 uint32_t thinktime_spin;
467 uint32_t thinktime_blocks;
468 uint32_t fsync_blocks;
469 uint32_t fdatasync_blocks;
470 uint32_t barrier_blocks;
471 uint64_t start_delay;
23ed19b0 472 uint64_t start_delay_high;
2dc1cbb5
JA
473 uint64_t timeout;
474 uint64_t ramp_time;
72863286
JA
475 uint64_t ss_dur;
476 uint64_t ss_ramp_time;
2c5d94bc 477 uint32_t ss_state;
72863286 478 fio_fp64_t ss_limit;
2dc1cbb5
JA
479 uint32_t overwrite;
480 uint32_t bw_avg_time;
481 uint32_t iops_avg_time;
482 uint32_t loops;
483 uint64_t zone_range;
484 uint64_t zone_size;
485 uint64_t zone_skip;
ae278f9a 486 uint64_t lockmem;
2dc1cbb5
JA
487 uint32_t mem_type;
488 uint32_t mem_align;
489
490 uint32_t stonewall;
491 uint32_t new_group;
492 uint32_t numjobs;
57535f41
JA
493 /*
494 * We currently can't convert these, so don't enable them
495 */
496#if 0
2dc1cbb5 497 uint8_t cpumask[FIO_TOP_STR_MAX];
2dc1cbb5 498 uint8_t verify_cpumask[FIO_TOP_STR_MAX];
c08f9fe2 499 uint8_t log_gz_cpumask[FIO_TOP_STR_MAX];
57535f41 500#endif
6599ce5a 501 uint32_t gpu_dev_id;
89978a6b 502 uint32_t start_offset_percent;
c2acfbac 503 uint32_t cpus_allowed_policy;
2dc1cbb5
JA
504 uint32_t iolog;
505 uint32_t rwmixcycle;
5054e67c 506 uint32_t rwmix[DDIR_RWDIR_CNT];
2dc1cbb5 507 uint32_t nice;
28727df7
JA
508 uint32_t ioprio;
509 uint32_t ioprio_class;
2dc1cbb5
JA
510 uint32_t file_service_type;
511 uint32_t group_reporting;
8243be59 512 uint32_t stats;
2dc1cbb5
JA
513 uint32_t fadvise_hint;
514 uint32_t fallocate_mode;
515 uint32_t zero_buffers;
516 uint32_t refill_buffers;
517 uint32_t scramble_buffers;
ce35b1ec
JA
518 uint8_t buffer_pattern[MAX_PATTERN_SIZE];
519 uint32_t buffer_pattern_bytes;
5c94b008
JA
520 uint32_t compress_percentage;
521 uint32_t compress_chunk;
522 uint32_t dedupe_percentage;
2dc1cbb5
JA
523 uint32_t time_based;
524 uint32_t disable_lat;
525 uint32_t disable_clat;
526 uint32_t disable_slat;
527 uint32_t disable_bw;
95820b6e 528 uint32_t unified_rw_rep;
2dc1cbb5
JA
529 uint32_t gtod_reduce;
530 uint32_t gtod_cpu;
2dc1cbb5
JA
531 uint32_t clocksource;
532 uint32_t no_stall;
533 uint32_t trim_percentage;
534 uint32_t trim_batch;
535 uint32_t trim_zero;
536 uint64_t trim_backlog;
537 uint32_t clat_percentiles;
9db01ef9 538 uint32_t percentile_precision;
2dc1cbb5
JA
539 fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
540
541 uint8_t read_iolog_file[FIO_TOP_STR_MAX];
542 uint8_t write_iolog_file[FIO_TOP_STR_MAX];
dded427c
OS
543
544 uint32_t write_bw_log;
545 uint32_t write_lat_log;
546 uint32_t write_iops_log;
547 uint32_t write_hist_log;
548
2dc1cbb5
JA
549 uint8_t bw_log_file[FIO_TOP_STR_MAX];
550 uint8_t lat_log_file[FIO_TOP_STR_MAX];
551 uint8_t iops_log_file[FIO_TOP_STR_MAX];
68cebb4b 552 uint8_t hist_log_file[FIO_TOP_STR_MAX];
2dc1cbb5
JA
553 uint8_t replay_redirect[FIO_TOP_STR_MAX];
554
555 /*
556 * Pre-run and post-run shell
557 */
558 uint8_t exec_prerun[FIO_TOP_STR_MAX];
559 uint8_t exec_postrun[FIO_TOP_STR_MAX];
560
90eff1c9
SW
561 uint64_t rate[DDIR_RWDIR_CNT];
562 uint64_t ratemin[DDIR_RWDIR_CNT];
2dc1cbb5 563 uint32_t ratecycle;
a9da8ab2 564 uint32_t io_submit_mode;
b999b3c7
JA
565 uint32_t rate_iops[DDIR_RWDIR_CNT];
566 uint32_t rate_iops_min[DDIR_RWDIR_CNT];
6de65959 567 uint32_t rate_process;
1a9bf814
JA
568 uint32_t rate_ign_think;
569 uint32_t pad;
2dc1cbb5
JA
570
571 uint8_t ioscheduler[FIO_TOP_STR_MAX];
572
2dc1cbb5
JA
573 /*
574 * I/O Error handling
575 */
576 uint32_t continue_on_error;
577
578 /*
579 * Benchmark profile type
580 */
581 uint8_t profile[FIO_TOP_STR_MAX];
582
583 /*
584 * blkio cgroup support
585 */
586 uint8_t cgroup[FIO_TOP_STR_MAX];
587 uint32_t cgroup_weight;
588 uint32_t cgroup_nodelete;
589
590 uint32_t uid;
591 uint32_t gid;
592
593 int32_t flow_id;
594 int32_t flow;
595 int32_t flow_watermark;
596 uint32_t flow_sleep;
597
6a4cf74f 598 uint64_t offset_increment;
ddf24e42 599 uint64_t number_ios;
6a4cf74f 600
3e260a46
JA
601 uint64_t latency_target;
602 uint64_t latency_window;
af7d9f1f 603 uint64_t max_latency;
3e260a46 604 fio_fp64_t latency_percentile;
66347cfa 605
e883cb35
JF
606 uint32_t sig_figs;
607
66347cfa 608 uint32_t block_error_hist;
0c63576e
JA
609
610 uint32_t replay_align;
611 uint32_t replay_scale;
6dd7fa77 612 uint32_t replay_time_scale;
d7235efb 613 uint32_t replay_skip;
3a5db920
JA
614
615 uint32_t per_job_logs;
2378826d
JA
616
617 uint32_t allow_create;
e81ecca3 618 uint32_t allow_mounted_write;
7b865a2f
BVA
619
620 uint32_t zone_mode;
2dc1cbb5
JA
621} __attribute__((packed));
622
623extern void convert_thread_options_to_cpu(struct thread_options *o, struct thread_options_pack *top);
624extern void convert_thread_options_to_net(struct thread_options_pack *top, struct thread_options *);
51167799 625extern int fio_test_cconv(struct thread_options *);
588b7f09 626extern void options_default_fill(struct thread_options *o);
2dc1cbb5 627
8062f527 628#endif