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