Home
last modified time | relevance | path

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

/external/fio/
Dio_ddir.h7 DDIR_TRIM = 2, enumerator
43 return ddir == DDIR_READ || ddir == DDIR_WRITE || ddir == DDIR_TRIM; in ddir_rw()
55 #define ddir_trim(ddir) ((ddir) == DDIR_TRIM)
58 ((arr)[DDIR_READ] + (arr)[DDIR_WRITE] + (arr)[DDIR_TRIM])
Dinit.c421 if (td->o.rate[DDIR_TRIM] || td->o.rate_iops[DDIR_TRIM]) in setup_rate()
422 ret |= __setup_rate(td, DDIR_TRIM); in setup_rate()
431 o->min_bs[DDIR_TRIM] == o->max_bs[DDIR_TRIM] && in fixed_block_size()
433 o->min_bs[DDIR_READ] == o->min_bs[DDIR_TRIM]; in fixed_block_size()
509 if (!o->min_bs[DDIR_TRIM]) in fixup_options()
510 o->min_bs[DDIR_TRIM] = o->bs[DDIR_TRIM]; in fixup_options()
511 if (!o->max_bs[DDIR_TRIM]) in fixup_options()
512 o->max_bs[DDIR_TRIM] = o->bs[DDIR_TRIM]; in fixup_options()
516 o->rw_min_bs = min(o->min_bs[DDIR_TRIM], o->rw_min_bs); in fixup_options()
525 if (!o->ba[DDIR_TRIM] || !td_random(td)) in fixup_options()
[all …]
Deta.c336 io_bytes[DDIR_READ] = io_bytes[DDIR_WRITE] = io_bytes[DDIR_TRIM] = 0; in calc_thread_status()
337 io_iops[DDIR_READ] = io_iops[DDIR_WRITE] = io_iops[DDIR_TRIM] = 0; in calc_thread_status()
365 je->t_rate[2] += td->o.rate[DDIR_TRIM]; in calc_thread_status()
366 je->t_iops[2] += td->o.rate_iops[DDIR_TRIM]; in calc_thread_status()
367 je->m_rate[2] += td->o.ratemin[DDIR_TRIM]; in calc_thread_status()
368 je->m_iops[2] += td->o.rate_iops_min[DDIR_TRIM]; in calc_thread_status()
429 add_agg_sample(je->rate[DDIR_TRIM], DDIR_TRIM, 0); in calc_thread_status()
518 rate_str[DDIR_WRITE], rate_str[DDIR_TRIM], in display_thread_status()
520 iops_str[DDIR_TRIM], eta_str); in display_thread_status()
Dbackend.c237 if (bytes_done[DDIR_TRIM]) in check_min_rate()
238 ret |= __check_min_rate(td, now, DDIR_TRIM); in check_min_rate()
508 } else if (io_u->ddir == DDIR_TRIM) { in do_verify()
657 bytes = td->this_io_bytes[DDIR_TRIM]; in io_bytes_exceeded()
818 __should_check_rate(td, DDIR_TRIM)) in do_io()
871 __should_check_rate(td, DDIR_TRIM)) in do_io()
956 return bytes_done[DDIR_WRITE] + bytes_done[DDIR_TRIM]; in do_io()
1251 return bytes_done[DDIR_WRITE] + bytes_done[DDIR_TRIM]; in do_dry_run()
1465 o->ratemin[DDIR_TRIM]) { in thread_main()
1470 memcpy(&td->lastrate[DDIR_TRIM], &td->bw_sample_time, in thread_main()
[all …]
Dfio.h569 if (bytes_done[DDIR_TRIM]) in should_check_rate()
570 ret |= __should_check_rate(td, DDIR_TRIM); in should_check_rate()
580 return max(td->o.max_bs[DDIR_TRIM], max_bs); in td_max_bs()
588 return min(td->o.min_bs[DDIR_TRIM], min_bs); in td_min_bs()
Dstat.c510 ts->io_bytes[DDIR_TRIM]) && !(ts->total_io_u[DDIR_READ] + in show_thread_status_normal()
511 ts->total_io_u[DDIR_WRITE] + ts->total_io_u[DDIR_TRIM])) in show_thread_status_normal()
535 if (ts->io_bytes[DDIR_TRIM]) in show_thread_status_normal()
536 show_ddir_status(rs, ts, DDIR_TRIM); in show_thread_status_normal()
794 show_ddir_status_terse(ts, rs, DDIR_TRIM); in show_thread_status_terse_v2()
858 show_ddir_status_terse(ts, rs, DDIR_TRIM); in show_thread_status_terse_v3_v4()
925 add_ddir_status_json(ts, rs, DDIR_TRIM, root); in show_thread_status_json()
1430 if (td_trim(td) && td->io_bytes[DDIR_TRIM]) in __show_running_run_stats()
1431 td->ts.runtime[DDIR_TRIM] += rt[i]; in __show_running_run_stats()
1436 td->ts.io_bytes[DDIR_TRIM] = td->io_bytes[DDIR_TRIM]; in __show_running_run_stats()
[all …]
Dtrim.c62 io_u->ddir = DDIR_TRIM; in get_next_trim()
Doptions.c183 ret = bssplit_ddir(&td->o, DDIR_TRIM, ddir + 1); in str_bssplit_cb()
190 ret = bssplit_ddir(&td->o, DDIR_TRIM, op); in str_bssplit_cb()
209 ret = bssplit_ddir(&td->o, DDIR_TRIM, op); in str_bssplit_cb()
1688 .off3 = td_var_offset(bs[DDIR_TRIM]),
1705 .off3 = td_var_offset(ba[DDIR_TRIM]),
1723 .off5 = td_var_offset(min_bs[DDIR_TRIM]),
1724 .off6 = td_var_offset(max_bs[DDIR_TRIM]),
1874 .off3 = td_var_offset(perc_rand[DDIR_TRIM]),
2755 .off3 = td_var_offset(rate[DDIR_TRIM]),
2766 .off3 = td_var_offset(ratemin[DDIR_TRIM]),
[all …]
Dblktrace.c299 ipo->ddir = DDIR_TRIM; in handle_trace_discard()
Diolog.c352 rw = DDIR_TRIM; in read_iolog2()
Dio_u.c662 ddir = DDIR_TRIM; in get_rw_ddir()
1685 if (idx != DDIR_TRIM && __should_check_rate(td, odx)) in io_completed()
DHOWTO677 DDIR_TRIM does fallocate(,mode = punch_hole)
/external/fio/engines/
Dsync.c89 else if (io_u->ddir == DDIR_TRIM) { in fio_pvsyncio_queue()
110 else if (io_u->ddir == DDIR_TRIM) { in fio_psyncio_queue()
130 else if (io_u->ddir == DDIR_TRIM) { in fio_syncio_queue()
Dfalloc.c85 else if (io_u->ddir == DDIR_TRIM) in fio_fallocate_queue()
Dmmap.c157 } else if (io_u->ddir == DDIR_TRIM) { in fio_mmapio_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()
Dlibaio.c170 if (io_u->ddir == DDIR_TRIM) { in fio_libaio_queue()
Dbinject.c206 } else if (io_u->ddir == DDIR_TRIM) { in fio_binject_prep()
Dwindowsaio.c341 case DDIR_TRIM: in fio_windowsaio_queue()