/external/fio/ |
D | init.c | 480 if (td->o.rate[DDIR_TRIM] || td->o.rate_iops[DDIR_TRIM]) in setup_rate() 481 ret |= __setup_rate(td, DDIR_TRIM); in setup_rate() 490 o->min_bs[DDIR_TRIM] == o->max_bs[DDIR_TRIM] && in fixed_block_size() 492 o->min_bs[DDIR_READ] == o->min_bs[DDIR_TRIM]; in fixed_block_size() 563 if (!o->min_bs[DDIR_TRIM]) in fixup_options() 564 o->min_bs[DDIR_TRIM] = o->bs[DDIR_TRIM]; in fixup_options() 565 if (!o->max_bs[DDIR_TRIM]) in fixup_options() 566 o->max_bs[DDIR_TRIM] = o->bs[DDIR_TRIM]; in fixup_options() 569 o->rw_min_bs = min(o->min_bs[DDIR_TRIM], o->rw_min_bs); in fixup_options() 578 if (!o->ba[DDIR_TRIM] || !td_random(td)) in fixup_options() [all …]
|
D | io_ddir.h | 7 DDIR_TRIM = 2, enumerator 55 return ddir == DDIR_READ || ddir == DDIR_WRITE || ddir == DDIR_TRIM; in ddir_rw() 68 ((arr)[DDIR_READ] + (arr)[DDIR_WRITE] + (arr)[DDIR_TRIM])
|
D | eta.c | 356 io_bytes[DDIR_READ] = io_bytes[DDIR_WRITE] = io_bytes[DDIR_TRIM] = 0; in calc_thread_status() 357 io_iops[DDIR_READ] = io_iops[DDIR_WRITE] = io_iops[DDIR_TRIM] = 0; in calc_thread_status() 385 je->t_rate[2] += td->o.rate[DDIR_TRIM]; in calc_thread_status() 386 je->t_iops[2] += td->o.rate_iops[DDIR_TRIM]; in calc_thread_status() 387 je->m_rate[2] += td->o.ratemin[DDIR_TRIM]; in calc_thread_status() 388 je->m_iops[2] += td->o.rate_iops_min[DDIR_TRIM]; in calc_thread_status() 448 add_agg_sample(je->rate[DDIR_TRIM], DDIR_TRIM, 0); in calc_thread_status() 538 rate_str[DDIR_WRITE], rate_str[DDIR_TRIM], in display_thread_status() 540 iops_str[DDIR_TRIM], eta_str); in display_thread_status()
|
D | blktrace.c | 236 ios[DDIR_TRIM]++; in handle_trace_discard() 237 if (t->bytes > bs[DDIR_TRIM]) in handle_trace_discard() 238 bs[DDIR_TRIM] = t->bytes; in handle_trace_discard() 251 ipo->ddir = DDIR_TRIM; in handle_trace_discard() 449 td->o.max_bs[DDIR_TRIM] = rw_bs[DDIR_TRIM]; in load_blktrace()
|
D | backend.c | 241 if (bytes_done[DDIR_TRIM]) in check_min_rate() 242 ret |= __check_min_rate(td, now, DDIR_TRIM); in check_min_rate() 437 __should_check_rate(td, DDIR_TRIM))) in wait_for_completions() 540 } else if (io_u->ddir == DDIR_TRIM) { in do_verify() 678 bytes = td->io_issue_bytes[DDIR_TRIM]; in io_issue_bytes_exceeded() 700 bytes = td->this_io_bytes[DDIR_TRIM]; in io_complete_bytes_exceeded() 872 __should_check_rate(td, DDIR_TRIM)) in do_io() 990 return bytes_done[DDIR_WRITE] + bytes_done[DDIR_TRIM]; in do_io() 1296 return bytes_done[DDIR_WRITE] + bytes_done[DDIR_TRIM]; in do_dry_run() 1508 o->ratemin[DDIR_TRIM]) { in thread_main() [all …]
|
D | fio.h | 586 if (bytes_done[DDIR_TRIM]) in should_check_rate() 587 ret |= __should_check_rate(td, DDIR_TRIM); in should_check_rate() 597 return max(td->o.max_bs[DDIR_TRIM], max_bs); in td_max_bs() 605 return min(td->o.min_bs[DDIR_TRIM], min_bs); in td_min_bs()
|
D | stat.c | 533 if (ts->io_bytes[DDIR_TRIM]) in show_thread_status_normal() 534 show_ddir_status(rs, ts, DDIR_TRIM); in show_thread_status_normal() 800 show_ddir_status_terse(ts, rs, DDIR_TRIM); in show_thread_status_terse_v2() 864 show_ddir_status_terse(ts, rs, DDIR_TRIM); in show_thread_status_terse_v3_v4() 930 add_ddir_status_json(ts, rs, DDIR_TRIM, root); in show_thread_status_json() 1456 if (td_trim(td) && td->io_bytes[DDIR_TRIM]) in __show_running_run_stats() 1457 td->ts.runtime[DDIR_TRIM] += rt[i]; in __show_running_run_stats() 1462 td->ts.io_bytes[DDIR_TRIM] = td->io_bytes[DDIR_TRIM]; in __show_running_run_stats() 1483 if (td_trim(td) && td->io_bytes[DDIR_TRIM]) in __show_running_run_stats() 1484 td->ts.runtime[DDIR_TRIM] -= rt[i]; in __show_running_run_stats() [all …]
|
D | trim.c | 62 io_u->ddir = DDIR_TRIM; in get_next_trim()
|
D | options.c | 186 ret = bssplit_ddir(&td->o, DDIR_TRIM, ddir + 1); in str_bssplit_cb() 193 ret = bssplit_ddir(&td->o, DDIR_TRIM, op); in str_bssplit_cb() 212 ret = bssplit_ddir(&td->o, DDIR_TRIM, op); in str_bssplit_cb() 1705 .off3 = td_var_offset(bs[DDIR_TRIM]), 1722 .off3 = td_var_offset(ba[DDIR_TRIM]), 1740 .off5 = td_var_offset(min_bs[DDIR_TRIM]), 1741 .off6 = td_var_offset(max_bs[DDIR_TRIM]), 1888 .off3 = td_var_offset(perc_rand[DDIR_TRIM]), 2802 .off3 = td_var_offset(rate[DDIR_TRIM]), 2813 .off3 = td_var_offset(ratemin[DDIR_TRIM]), [all …]
|
D | io_u.c | 593 if (ddir == DDIR_TRIM) in rate_ddir() 594 return DDIR_TRIM; in rate_ddir() 655 ddir = DDIR_TRIM; in get_rw_ddir() 1685 if (ddir != DDIR_TRIM && in io_completed()
|
D | ioengines.c | 331 if (!td->io_ops->commit || io_u->ddir == DDIR_TRIM) { in td_io_queue()
|
D | iolog.c | 371 rw = DDIR_TRIM; in read_iolog2()
|
D | HOWTO | 735 DDIR_TRIM does fallocate(,mode = punch_hole)
|
/external/fio/engines/ |
D | sync.c | 91 else if (io_u->ddir == DDIR_TRIM) { in fio_pvsyncio_queue() 112 else if (io_u->ddir == DDIR_TRIM) { in fio_psyncio_queue() 132 else if (io_u->ddir == DDIR_TRIM) { in fio_syncio_queue()
|
D | falloc.c | 85 else if (io_u->ddir == DDIR_TRIM) in fio_fallocate_queue()
|
D | glusterfs_async.c | 116 else if (io_u->ddir == DDIR_TRIM) in fio_gf_async_queue()
|
D | posixaio.c | 182 else if (io_u->ddir == DDIR_TRIM) { in fio_posixaio_queue()
|
D | splice.c | 224 else if (io_u->ddir == DDIR_TRIM) in fio_spliceio_queue()
|
D | mmap.c | 183 } else if (io_u->ddir == DDIR_TRIM) { in fio_mmapio_queue()
|
D | libaio.c | 203 if (io_u->ddir == DDIR_TRIM) { in fio_libaio_queue()
|
D | binject.c | 206 } else if (io_u->ddir == DDIR_TRIM) { in fio_binject_prep()
|
D | windowsaio.c | 342 case DDIR_TRIM: in fio_windowsaio_queue()
|
D | rbd.c | 367 } else if (io_u->ddir == DDIR_TRIM) { in fio_rbd_queue()
|
/external/fio/t/ |
D | btrace2fio.c | 321 return DDIR_TRIM; in t_to_rwdir() 336 o->ios[DDIR_TRIM]++; in handle_trace_discard() 337 add_bs(o, t->bytes, DDIR_TRIM); in handle_trace_discard()
|