/external/fio/ |
D | io_u.c | 56 enum fio_ddir ddir) in last_block() argument 61 assert(ddir_rw(ddir)); in last_block() 74 if (td->o.min_bs[ddir] > td->o.ba[ddir]) in last_block() 75 max_size -= td->o.min_bs[ddir] - td->o.ba[ddir]; in last_block() 77 max_blocks = max_size / (uint64_t) td->o.ba[ddir]; in last_block() 90 enum fio_ddir ddir, uint64_t *b, in __get_next_rand_offset() argument 137 struct fio_file *f, enum fio_ddir ddir, in __get_next_rand_offset_zipf() argument 145 struct fio_file *f, enum fio_ddir ddir, in __get_next_rand_offset_pareto() argument 153 struct fio_file *f, enum fio_ddir ddir, in __get_next_rand_offset_gauss() argument 161 struct fio_file *f, enum fio_ddir ddir, in __get_next_rand_offset_zoned() argument [all …]
|
D | io_ddir.h | 17 static inline const char *io_ddir_name(enum fio_ddir ddir) in io_ddir_name() argument 23 if (ddir < DDIR_LAST) in io_ddir_name() 24 return name[ddir]; in io_ddir_name() 51 static inline int ddir_sync(enum fio_ddir ddir) in ddir_sync() argument 53 return ddir == DDIR_SYNC || ddir == DDIR_DATASYNC || in ddir_sync() 54 ddir == DDIR_SYNC_FILE_RANGE; in ddir_sync() 57 static inline int ddir_rw(enum fio_ddir ddir) in ddir_rw() argument 59 return ddir == DDIR_READ || ddir == DDIR_WRITE || ddir == DDIR_TRIM; in ddir_rw() 62 static inline const char *ddir_str(enum td_ddir ddir) in ddir_str() argument 68 return __str[ddir]; in ddir_str()
|
D | stat.c | 388 int ddir, struct buf_output *out) in show_ddir_status() argument 397 assert(ddir_rw(ddir)); in show_ddir_status() 399 if (!ts->runtime[ddir]) in show_ddir_status() 403 runt = ts->runtime[ddir]; in show_ddir_status() 405 bw = (1000 * ts->io_bytes[ddir]) / runt; in show_ddir_status() 406 io_p = num2str(ts->io_bytes[ddir], 4, 1, i2p, N2S_BYTE); in show_ddir_status() 410 iops = (1000 * (uint64_t)ts->total_io_u[ddir]) / runt; in show_ddir_status() 414 rs->unified_rw_rep ? "mixed" : str[ddir], in show_ddir_status() 416 (unsigned long long) ts->runtime[ddir]); in show_ddir_status() 423 if (calc_lat(&ts->slat_stat[ddir], &min, &max, &mean, &dev)) in show_ddir_status() [all …]
|
D | rate-submit.c | 16 const enum fio_ddir ddir = io_u->ddir; in io_workqueue_fn() local 38 io_queue_event(td, io_u, &ret, ddir, NULL, 0, NULL); in io_workqueue_fn() 197 enum fio_ddir ddir) in sum_ddir() argument 201 sum_val(&dst->io_bytes[ddir], &src->io_bytes[ddir]); in sum_ddir() 202 sum_val(&dst->io_blocks[ddir], &src->io_blocks[ddir]); in sum_ddir() 203 sum_val(&dst->this_io_blocks[ddir], &src->this_io_blocks[ddir]); in sum_ddir() 204 sum_val(&dst->this_io_bytes[ddir], &src->this_io_bytes[ddir]); in sum_ddir() 205 sum_val(&dst->bytes_done[ddir], &src->bytes_done[ddir]); in sum_ddir()
|
D | libfio.c | 83 int ddir; in reset_io_counters() local 86 for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { in reset_io_counters() 87 td->stat_io_bytes[ddir] = 0; in reset_io_counters() 88 td->this_io_bytes[ddir] = 0; in reset_io_counters() 89 td->stat_io_blocks[ddir] = 0; in reset_io_counters() 90 td->this_io_blocks[ddir] = 0; in reset_io_counters() 91 td->rate_bytes[ddir] = 0; in reset_io_counters() 92 td->rate_blocks[ddir] = 0; in reset_io_counters() 93 td->bytes_done[ddir] = 0; in reset_io_counters() 94 td->rate_io_issue_bytes[ddir] = 0; in reset_io_counters() [all …]
|
D | backend.c | 140 enum fio_ddir ddir) in __check_min_rate() argument 150 assert(ddir_rw(ddir)); in __check_min_rate() 152 if (!td->o.ratemin[ddir] && !td->o.rate_iops_min[ddir]) in __check_min_rate() 161 iops += td->this_io_blocks[ddir]; in __check_min_rate() 162 bytes += td->this_io_bytes[ddir]; in __check_min_rate() 163 ratemin += td->o.ratemin[ddir]; in __check_min_rate() 164 rate_iops += td->o.rate_iops[ddir]; in __check_min_rate() 165 rate_iops_min += td->o.rate_iops_min[ddir]; in __check_min_rate() 170 if (td->rate_bytes[ddir] || td->rate_blocks[ddir]) { in __check_min_rate() 171 spent = mtime_since(&td->lastrate[ddir], now); in __check_min_rate() [all …]
|
D | eta.c | 441 int ddir; in calc_thread_status() local 443 for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { in calc_thread_status() 445 io_bytes[0] += td->io_bytes[ddir]; in calc_thread_status() 446 io_iops[0] += td->io_blocks[ddir]; in calc_thread_status() 448 io_bytes[ddir] += td->io_bytes[ddir]; in calc_thread_status() 449 io_iops[ddir] += td->io_blocks[ddir]; in calc_thread_status() 561 int ddir; in display_thread_status() local 577 for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { in display_thread_status() 578 rate_str[ddir] = num2str(je->rate[ddir], 4, in display_thread_status() 580 iops_str[ddir] = num2str(je->iops[ddir], 4, 1, 0, N2S_NONE); in display_thread_status() [all …]
|
D | blktrace.c | 126 ipo->ddir = DDIR_INVAL; in trace_add_open_close_event() 237 ipo->ddir = DDIR_WRITE; in store_ipo() 239 ipo->ddir = DDIR_READ; in store_ipo() 243 ipo->ddir, ipo->offset, in store_ipo() 294 ipo->ddir = DDIR_TRIM; in handle_trace_discard() 390 enum fio_ddir ddir; in depth_inc() local 392 ddir = t_get_ddir(t); in depth_inc() 393 if (ddir != DDIR_INVAL) in depth_inc() 394 depth[ddir]++; in depth_inc() 399 enum fio_ddir ddir; in depth_dec() local [all …]
|
D | ioengines.c | 196 lock_file(td, io_u->file, io_u->ddir); in td_io_prep() 255 const enum fio_ddir ddir = acct_ddir(io_u); in td_io_queue() local 287 if (ddir_rw(ddir)) { in td_io_queue() 288 td->io_issues[ddir]++; in td_io_queue() 289 td->io_issue_bytes[ddir] += buflen; in td_io_queue() 290 td->rate_io_issue_bytes[ddir] += buflen; in td_io_queue() 297 if (ret == FIO_Q_BUSY && ddir_rw(ddir)) { in td_io_queue() 298 td->io_issues[ddir]--; in td_io_queue() 299 td->io_issue_bytes[ddir] -= buflen; in td_io_queue() 300 td->rate_io_issue_bytes[ddir] -= buflen; in td_io_queue() [all …]
|
D | options.c | 64 enum fio_ddir ddir, char *str) in split_parse_ddir() argument 107 static int bssplit_ddir(struct thread_options *o, enum fio_ddir ddir, char *str) in bssplit_ddir() argument 115 if (split_parse_ddir(o, &split, ddir, str)) in bssplit_ddir() 122 o->bssplit[ddir] = malloc(split.nr * sizeof(struct bssplit)); in bssplit_ddir() 123 o->bssplit_nr[ddir] = split.nr; in bssplit_ddir() 130 o->bssplit[ddir][i].bs = split.val1[i]; in bssplit_ddir() 131 o->bssplit[ddir][i].perc =split.val2[i]; in bssplit_ddir() 138 for (i = 0; i < o->bssplit_nr[ddir]; i++) { in bssplit_ddir() 139 struct bssplit *bsp = &o->bssplit[ddir][i]; in bssplit_ddir() 149 free(o->bssplit[ddir]); in bssplit_ddir() [all …]
|
D | io_u.h | 39 enum fio_ddir ddir; member 157 io_u->buflen, io_u->ddir); in dprint_io_u() 171 return io_u->ddir; in acct_ddir()
|
D | td_error.c | 7 enum error_type_bit td_error_type(enum fio_ddir ddir, int err) in td_error_type() argument 11 if (ddir == DDIR_READ) in td_error_type()
|
D | fio.h | 504 assert(!(io_u->ddir == DDIR_WRITE && !td_write(td))); in fio_ro_check() 652 enum fio_ddir ddir, uint64_t *bytes_issued, int from_verify, 693 enum fio_ddir ddir) in __should_check_rate() argument 700 if (o->rate[ddir] || o->ratemin[ddir] || o->rate_iops[ddir] || in __should_check_rate() 701 o->rate_iops_min[ddir]) in __should_check_rate()
|
D | steadystate.c | 196 int i, j, ddir, prev_groupid, group_ramp_time_over = 0; in steadystate_check() local 234 for (ddir = 0; ddir < DDIR_RWDIR_CNT; ddir++) { in steadystate_check() 235 td_iops += td->io_blocks[ddir]; in steadystate_check() 236 td_bytes += td->io_bytes[ddir]; in steadystate_check()
|
D | gclient.c | 1094 int ddir) in gfio_show_clat_percentiles() argument 1096 unsigned int *io_u_plat = ts->io_u_plat[ddir]; in gfio_show_clat_percentiles() 1097 unsigned long nr = ts->clat_stat[ddir].samples; in gfio_show_clat_percentiles() 1151 struct thread_stat *ts, int ddir) in gfio_show_ddir_status() argument 1163 if (!ts->runtime[ddir]) in gfio_show_ddir_status() 1167 runt = ts->runtime[ddir]; in gfio_show_ddir_status() 1169 bw = (1000 * ts->io_bytes[ddir]) / runt; in gfio_show_ddir_status() 1171 iops = (1000 * (uint64_t)ts->total_io_u[ddir]) / runt; in gfio_show_ddir_status() 1177 frame = gtk_frame_new(ddir_label[ddir]); in gfio_show_ddir_status() 1187 io_p = num2str(ts->io_bytes[ddir], 4, 1, i2p, N2S_BYTE); in gfio_show_ddir_status() [all …]
|
/external/python/cpython2/Lib/ |
D | compileall.py | 21 def compile_dir(dir, maxlevels=10, ddir=None, argument 45 if ddir is not None: 46 dfile = os.path.join(ddir, name) 50 if not compile_file(fullname, ddir, force, rx, quiet): 61 def compile_file(fullname, ddir=None, force=0, rx=None, quiet=0): argument 74 if ddir is not None: 75 dfile = os.path.join(ddir, name) 183 ddir = None 190 if o == '-d': ddir = a 197 if ddir: [all …]
|
/external/fio/engines/ |
D | sync.c | 61 if (!ddir_rw(io_u->ddir)) in fio_syncio_prep() 77 if (io_u->file && ret >= 0 && ddir_rw(io_u->ddir)) in fio_io_end() 110 if (io_u->ddir == DDIR_READ) in fio_pvsyncio_queue() 112 else if (io_u->ddir == DDIR_WRITE) in fio_pvsyncio_queue() 114 else if (io_u->ddir == DDIR_TRIM) { in fio_pvsyncio_queue() 141 if (io_u->ddir == DDIR_READ) in fio_pvsyncio2_queue() 143 else if (io_u->ddir == DDIR_WRITE) in fio_pvsyncio2_queue() 145 else if (io_u->ddir == DDIR_TRIM) { in fio_pvsyncio2_queue() 163 if (io_u->ddir == DDIR_READ) in fio_psyncio_queue() 165 else if (io_u->ddir == DDIR_WRITE) in fio_psyncio_queue() [all …]
|
D | glusterfs_sync.c | 18 if (!ddir_rw(io_u->ddir)) in fio_gf_prep() 40 if (io_u->ddir == DDIR_READ) in fio_gf_queue() 42 else if (io_u->ddir == DDIR_WRITE) in fio_gf_queue() 44 else if (io_u->ddir == DDIR_SYNC) in fio_gf_queue() 46 else if (io_u->ddir == DDIR_DATASYNC) in fio_gf_queue() 53 if (io_u->file && ret >= 0 && ddir_rw(io_u->ddir)) in fio_gf_queue()
|
D | glusterfs_async.c | 105 dprint(FD_IO, "%s op %s\n", __FUNCTION__, io_ddir_name(io_u->ddir)); in fio_gf_async_queue() 109 if (io_u->ddir == DDIR_READ) in fio_gf_async_queue() 112 else if (io_u->ddir == DDIR_WRITE) in fio_gf_async_queue() 116 else if (io_u->ddir == DDIR_TRIM) in fio_gf_async_queue() 120 else if (io_u->ddir == DDIR_DATASYNC) in fio_gf_async_queue() 122 else if (io_u->ddir == DDIR_SYNC) in fio_gf_async_queue()
|
D | libhdfs.c | 147 if (io_u->ddir == DDIR_READ || io_u->ddir == DDIR_SYNC) { in fio_hdfsio_prep() 149 } else if (io_u->ddir == DDIR_WRITE) { in fio_hdfsio_prep() 177 if( (io_u->ddir == DDIR_READ || io_u->ddir == DDIR_WRITE) && in fio_hdfsio_queue() 185 if (io_u->ddir == DDIR_READ) { in fio_hdfsio_queue() 191 } else if (io_u->ddir == DDIR_WRITE) { in fio_hdfsio_queue() 194 } else if (io_u->ddir == DDIR_SYNC) { in fio_hdfsio_queue() 197 log_err("hdfs: Invalid I/O Operation: %d\n", io_u->ddir); in fio_hdfsio_queue()
|
D | guasi.c | 67 if (io_u->ddir == DDIR_READ || in fio_guasi_event() 68 io_u->ddir == DDIR_WRITE) { in fio_guasi_event() 162 if (io_u->ddir == DDIR_READ) in fio_guasi_commit() 166 else if (io_u->ddir == DDIR_WRITE) in fio_guasi_commit() 170 else if (ddir_sync(io_u->ddir)) in fio_guasi_commit() 174 io_u->ddir); in fio_guasi_commit()
|
D | falloc.c | 81 if (io_u->ddir == DDIR_READ) in fio_fallocate_queue() 83 else if (io_u->ddir == DDIR_WRITE) in fio_fallocate_queue() 85 else if (io_u->ddir == DDIR_TRIM) in fio_fallocate_queue()
|
D | mmap.c | 172 if (io_u->ddir == DDIR_READ) in fio_mmapio_queue() 174 else if (io_u->ddir == DDIR_WRITE) in fio_mmapio_queue() 176 else if (ddir_sync(io_u->ddir)) { in fio_mmapio_queue() 181 } else if (io_u->ddir == DDIR_TRIM) { in fio_mmapio_queue() 192 if (td->o.odirect && ddir_rw(io_u->ddir)) { in fio_mmapio_queue()
|
D | libaio.c | 74 if (io_u->ddir == DDIR_READ) in fio_libaio_prep() 76 else if (io_u->ddir == DDIR_WRITE) in fio_libaio_prep() 78 else if (ddir_sync(io_u->ddir)) in fio_libaio_prep() 197 if (ddir_sync(io_u->ddir)) { in fio_libaio_queue() 205 if (io_u->ddir == DDIR_TRIM) { in fio_libaio_queue()
|
/external/ltp/testcases/kernel/syscalls/chdir/ |
D | chdir01.c | 71 DIR *ddir, *opendir(); in main() local 90 if ((ddir = opendir(".")) == NULL) in main() 97 ddir); in main() 98 closedir(ddir); in main() 161 void checknames(char **pfilnames, int fnamecount, DIR * ddir) in checknames() argument 167 while ((dir = readdir(ddir)) != NULL) { in checknames()
|