Home
last modified time | relevance | path

Searched refs:DDIR_TRIM (Results 1 – 24 of 24) sorted by relevance

/external/fio/
Dinit.c480 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 …]
Dio_ddir.h7 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])
Deta.c356 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()
Dblktrace.c236 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()
Dbackend.c241 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 …]
Dfio.h586 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()
Dstat.c533 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 …]
Dtrim.c62 io_u->ddir = DDIR_TRIM; in get_next_trim()
Doptions.c186 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 …]
Dio_u.c593 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()
Dioengines.c331 if (!td->io_ops->commit || io_u->ddir == DDIR_TRIM) { in td_io_queue()
Diolog.c371 rw = DDIR_TRIM; in read_iolog2()
DHOWTO735 DDIR_TRIM does fallocate(,mode = punch_hole)
/external/fio/engines/
Dsync.c91 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()
Dfalloc.c85 else if (io_u->ddir == DDIR_TRIM) in fio_fallocate_queue()
Dglusterfs_async.c116 else if (io_u->ddir == DDIR_TRIM) in fio_gf_async_queue()
Dposixaio.c182 else if (io_u->ddir == DDIR_TRIM) { in fio_posixaio_queue()
Dsplice.c224 else if (io_u->ddir == DDIR_TRIM) in fio_spliceio_queue()
Dmmap.c183 } else if (io_u->ddir == DDIR_TRIM) { in fio_mmapio_queue()
Dlibaio.c203 if (io_u->ddir == DDIR_TRIM) { in fio_libaio_queue()
Dbinject.c206 } else if (io_u->ddir == DDIR_TRIM) { in fio_binject_prep()
Dwindowsaio.c342 case DDIR_TRIM: in fio_windowsaio_queue()
Drbd.c367 } else if (io_u->ddir == DDIR_TRIM) { in fio_rbd_queue()
/external/fio/t/
Dbtrace2fio.c321 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()