/external/fio/ |
D | memory.c | 15 void fio_unpin_memory(struct thread_data *td) in fio_unpin_memory() 26 int fio_pin_memory(struct thread_data *td) in fio_pin_memory() 64 static int alloc_mem_shm(struct thread_data *td, unsigned int total_mem) in alloc_mem_shm() 114 static void free_mem_shm(struct thread_data *td) in free_mem_shm() 125 static int alloc_mem_mmap(struct thread_data *td, size_t total_mem) in alloc_mem_mmap() 182 static void free_mem_mmap(struct thread_data *td, size_t total_mem) in free_mem_mmap() 195 static int alloc_mem_malloc(struct thread_data *td, size_t total_mem) in alloc_mem_malloc() 204 static void free_mem_malloc(struct thread_data *td) in free_mem_malloc() 210 static int alloc_mem_cudamalloc(struct thread_data *td, size_t total_mem) in alloc_mem_cudamalloc() 271 static void free_mem_cudamalloc(struct thread_data *td) in free_mem_cudamalloc() [all …]
|
D | io_u.c | 38 static void mark_random_map(struct thread_data *td, struct io_u *io_u) in mark_random_map() 55 static uint64_t last_block(struct thread_data *td, struct fio_file *f, in last_block() 89 static int __get_next_rand_offset(struct thread_data *td, struct fio_file *f, in __get_next_rand_offset() 136 static int __get_next_rand_offset_zipf(struct thread_data *td, in __get_next_rand_offset_zipf() 144 static int __get_next_rand_offset_pareto(struct thread_data *td, in __get_next_rand_offset_pareto() 152 static int __get_next_rand_offset_gauss(struct thread_data *td, in __get_next_rand_offset_gauss() 160 static int __get_next_rand_offset_zoned(struct thread_data *td, in __get_next_rand_offset_zoned() 233 static int get_off_from_method(struct thread_data *td, struct fio_file *f, in get_off_from_method() 261 static inline bool should_sort_io(struct thread_data *td) in should_sort_io() 276 static bool should_do_random(struct thread_data *td, enum fio_ddir ddir) in should_do_random() [all …]
|
D | ioengines.c | 80 static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, in dlopen_ioengine() 126 struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name) in load_ioengine() 163 void free_ioengine(struct thread_data *td) in free_ioengine() 179 void close_ioengine(struct thread_data *td) in close_ioengine() 191 int td_io_prep(struct thread_data *td, struct io_u *io_u) in td_io_prep() 210 int td_io_getevents(struct thread_data *td, unsigned int min, unsigned int max, in td_io_getevents() 253 int td_io_queue(struct thread_data *td, struct io_u *io_u) in td_io_queue() 365 int td_io_init(struct thread_data *td) in td_io_init() 385 int td_io_commit(struct thread_data *td) in td_io_commit() 411 int td_io_open_file(struct thread_data *td, struct fio_file *f) in td_io_open_file() [all …]
|
D | filesetup.c | 35 static inline void clear_error(struct thread_data *td) in clear_error() 44 static int extend_file(struct thread_data *td, struct fio_file *f) in extend_file() 231 static int pre_read_file(struct thread_data *td, struct fio_file *f) in pre_read_file() 300 unsigned long long get_rand_file_size(struct thread_data *td) in get_rand_file_size() 315 static int file_size(struct thread_data *td, struct fio_file *f) in file_size() 328 static int bdev_size(struct thread_data *td, struct fio_file *f) in bdev_size() 358 static int char_size(struct thread_data *td, struct fio_file *f) in char_size() 393 static int get_file_size(struct thread_data *td, struct fio_file *f) in get_file_size() 445 static int __file_invalidate_cache(struct thread_data *td, struct fio_file *f, in __file_invalidate_cache() 522 int file_invalidate_cache(struct thread_data *td, struct fio_file *f) in file_invalidate_cache() [all …]
|
D | backend.c | 139 static bool __check_min_rate(struct thread_data *td, struct timeval *now, in __check_min_rate() 226 static bool check_min_rate(struct thread_data *td, struct timeval *now) in check_min_rate() 244 static void cleanup_pending_aio(struct thread_data *td) in cleanup_pending_aio() 279 static bool fio_io_sync(struct thread_data *td, struct fio_file *f) in fio_io_sync() 323 static int fio_file_fsync(struct thread_data *td, struct fio_file *f) in fio_file_fsync() 338 static inline void __update_tv_cache(struct thread_data *td) in __update_tv_cache() 343 static inline void update_tv_cache(struct thread_data *td) in update_tv_cache() 349 static inline bool runtime_exceeded(struct thread_data *td, struct timeval *t) in runtime_exceeded() 366 static inline void update_runtime(struct thread_data *td, in update_runtime() 378 static bool break_on_this_error(struct thread_data *td, enum fio_ddir ddir, in break_on_this_error() [all …]
|
D | trim.h | 14 static inline void remove_trim_entry(struct thread_data *td, struct io_piece *ipo) in remove_trim_entry() 23 static inline bool get_next_trim(struct thread_data *td, struct io_u *io_u) in get_next_trim() 27 static inline bool io_u_should_trim(struct thread_data *td, struct io_u *io_u) in io_u_should_trim() 31 static inline void remove_trim_entry(struct thread_data *td, struct io_piece *ipo) in remove_trim_entry()
|
D | rate-submit.c | 17 struct thread_data *td = sw->priv; in io_workqueue_fn() local 64 struct thread_data *td = sw->priv; in io_workqueue_pre_sleep_flush_fn() local 74 struct thread_data *td = sw->priv; in io_workqueue_pre_sleep_fn() local 84 struct thread_data *td; in io_workqueue_alloc_fn() local 100 struct thread_data *td = sw->priv; in io_workqueue_init_worker_fn() local 144 struct thread_data *td = sw->priv; in io_workqueue_exit_worker_fn() local 235 int rate_submit_init(struct thread_data *td, struct sk_out *sk_out) in rate_submit_init() 243 void rate_submit_exit(struct thread_data *td) in rate_submit_exit()
|
D | cgroup.c | 22 static char *find_cgroup_mnt(struct thread_data *td) in find_cgroup_mnt() 50 static void add_cgroup(struct thread_data *td, const char *name, in add_cgroup() 100 static char *get_cgroup_root(struct thread_data *td, char *mnt) in get_cgroup_root() 112 static int write_int_to_file(struct thread_data *td, const char *path, in write_int_to_file() 132 static int cgroup_write_pid(struct thread_data *td, const char *root) in cgroup_write_pid() 142 static int cgroup_del_pid(struct thread_data *td, char *mnt) in cgroup_del_pid() 147 int cgroup_setup(struct thread_data *td, struct flist_head *clist, char **mnt) in cgroup_setup() 189 void cgroup_shutdown(struct thread_data *td, char **mnt) in cgroup_shutdown()
|
D | options.c | 181 static int str_split_parse(struct thread_data *td, char *str, split_parse_fn *fn) in str_split_parse() 228 struct thread_data *td = cb_data_to_td(data); in str_bssplit_cb() local 273 static int ignore_error_type(struct thread_data *td, int etype, char *str) in ignore_error_type() 329 struct thread_data *td = cb_data_to_td(data); in str_ignore_error_cb() local 357 struct thread_data *td = cb_data_to_td(data); in str_rw_cb() local 391 struct thread_data *td = cb_data_to_td(data); in str_mem_cb() local 402 struct thread_data *td = cb_data_to_td(data); in fio_clock_source_cb() local 412 struct thread_data *td = cb_data_to_td(data); in str_rwmix_read_cb() local 421 struct thread_data *td = cb_data_to_td(data); in str_rwmix_write_cb() local 459 struct thread_data *td = cb_data_to_td(data); in str_cpumask_cb() local [all …]
|
D | io_ddir.h | 42 #define td_read(td) ((td)->o.td_ddir & TD_DDIR_READ) argument 43 #define td_write(td) ((td)->o.td_ddir & TD_DDIR_WRITE) argument 44 #define td_trim(td) ((td)->o.td_ddir & TD_DDIR_TRIM) argument 45 #define td_rw(td) (((td)->o.td_ddir & TD_DDIR_RW) == TD_DDIR_RW) argument 46 #define td_random(td) ((td)->o.td_ddir & TD_DDIR_RAND) argument 47 #define file_randommap(td, f) (!(td)->o.norandommap && fio_file_axmap((f))) argument 48 #define td_trimwrite(td) (((td)->o.td_ddir & TD_DDIR_TRIMWRITE) \ argument
|
D | libfio.c | 81 static void reset_io_counters(struct thread_data *td, int all) in reset_io_counters() 111 void clear_io_state(struct thread_data *td, int all) in clear_io_state() 131 void reset_all_stats(struct thread_data *td) in reset_all_stats() 205 void td_set_runstate(struct thread_data *td, int runstate) in td_set_runstate() 216 int td_bump_runstate(struct thread_data *td, int new_state) in td_bump_runstate() 224 void td_restore_runstate(struct thread_data *td, int old_state) in td_restore_runstate() 229 void fio_mark_td_terminate(struct thread_data *td) in fio_mark_td_terminate() 238 struct thread_data *td; in fio_terminate_threads() local 274 struct thread_data *td; in fio_running_or_pending_io_threads() local
|
D | iolog.c | 27 void queue_io_piece(struct thread_data *td, struct io_piece *ipo) in queue_io_piece() 33 void log_io_u(const struct thread_data *td, const struct io_u *io_u) in log_io_u() 43 void log_file(struct thread_data *td, struct fio_file *f, in log_file() 63 static void iolog_delay(struct thread_data *td, unsigned long delay) in iolog_delay() 97 static int ipo_special(struct thread_data *td, struct io_piece *ipo) in ipo_special() 136 int read_iolog_get(struct thread_data *td, struct io_u *io_u) in read_iolog_get() 183 void prune_io_piece_log(struct thread_data *td) in prune_io_piece_log() 208 void log_io_piece(struct thread_data *td, struct io_u *io_u) in log_io_piece() 297 void unlog_io_piece(struct thread_data *td, struct io_u *io_u) in unlog_io_piece() 326 void trim_io_piece(struct thread_data *td, const struct io_u *io_u) in trim_io_piece() [all …]
|
/external/fio/engines/ |
D | skeleton_external.c | 29 static struct io_u *fio_skeleton_event(struct thread_data *td, int event) in fio_skeleton_event() 40 static int fio_skeleton_getevents(struct thread_data *td, unsigned int min, in fio_skeleton_getevents() 50 static int fio_skeleton_cancel(struct thread_data *td, struct io_u *io_u) in fio_skeleton_cancel() 65 static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u) in fio_skeleton_queue() 86 static int fio_skeleton_prep(struct thread_data *td, struct io_u *io_u) in fio_skeleton_prep() 96 static int fio_skeleton_init(struct thread_data *td) in fio_skeleton_init() 106 static void fio_skeleton_cleanup(struct thread_data *td) in fio_skeleton_cleanup() 114 static int fio_skeleton_open(struct thread_data *td, struct fio_file *f) in fio_skeleton_open() 122 static int fio_skeleton_close(struct thread_data *td, struct fio_file *f) in fio_skeleton_close()
|
D | null.c | 26 static struct io_u *fio_null_event(struct thread_data *td, int event) in fio_null_event() 33 static int fio_null_getevents(struct thread_data *td, unsigned int min_events, in fio_null_getevents() 48 static int fio_null_commit(struct thread_data *td) in fio_null_commit() 63 static int fio_null_queue(struct thread_data *td, struct io_u *io_u) in fio_null_queue() 78 static int fio_null_open(struct thread_data fio_unused *td, in fio_null_open() 84 static void fio_null_cleanup(struct thread_data *td) in fio_null_cleanup() 94 static int fio_null_init(struct thread_data *td) in fio_null_init()
|
D | dev-dax.c | 72 static int fio_devdax_file(struct thread_data *td, struct fio_file *f, in fio_devdax_file() 103 static int fio_devdax_prep_limited(struct thread_data *td, struct io_u *io_u) in fio_devdax_prep_limited() 125 static int fio_devdax_prep_full(struct thread_data *td, struct io_u *io_u) in fio_devdax_prep_full() 150 static int fio_devdax_prep(struct thread_data *td, struct io_u *io_u) in fio_devdax_prep() 185 static int fio_devdax_queue(struct thread_data *td, struct io_u *io_u) in fio_devdax_queue() 210 static int fio_devdax_init(struct thread_data *td) in fio_devdax_init() 224 static int fio_devdax_open_file(struct thread_data *td, struct fio_file *f) in fio_devdax_open_file() 245 static int fio_devdax_close_file(struct thread_data *td, struct fio_file *f) in fio_devdax_close_file() 257 fio_devdax_get_file_size(struct thread_data *td, struct fio_file *f) in fio_devdax_get_file_size()
|
D | net.c | 40 struct thread_data *td; member 228 static int set_window_size(struct thread_data *td, int fd) in set_window_size() 263 static int set_mss(struct thread_data *td, int fd) in set_mss() 291 static int poll_wait(struct thread_data *td, int fd, short events) in poll_wait() 332 static int fio_netio_prep(struct thread_data *td, struct io_u *io_u) in fio_netio_prep() 377 static int splice_in(struct thread_data *td, struct io_u *io_u) in splice_in() 387 static int splice_out(struct thread_data *td, struct io_u *io_u, in splice_out() 425 static int vmsplice_io_u_out(struct thread_data *td, struct io_u *io_u, in vmsplice_io_u_out() 436 static int vmsplice_io_u_in(struct thread_data *td, struct io_u *io_u) in vmsplice_io_u_in() 447 static int fio_netio_splice_in(struct thread_data *td, struct io_u *io_u) in fio_netio_splice_in() [all …]
|
D | sync.c | 57 static int fio_syncio_prep(struct thread_data *td, struct io_u *io_u) in fio_syncio_prep() 75 static int fio_io_end(struct thread_data *td, struct io_u *io_u, int ret) in fio_io_end() 98 static int fio_pvsyncio_queue(struct thread_data *td, struct io_u *io_u) in fio_pvsyncio_queue() 125 static int fio_pvsyncio2_queue(struct thread_data *td, struct io_u *io_u) in fio_pvsyncio2_queue() 156 static int fio_psyncio_queue(struct thread_data *td, struct io_u *io_u) in fio_psyncio_queue() 176 static int fio_syncio_queue(struct thread_data *td, struct io_u *io_u) in fio_syncio_queue() 196 static int fio_vsyncio_getevents(struct thread_data *td, unsigned int min, in fio_vsyncio_getevents() 213 static struct io_u *fio_vsyncio_event(struct thread_data *td, int event) in fio_vsyncio_event() 220 static int fio_vsyncio_append(struct thread_data *td, struct io_u *io_u) in fio_vsyncio_append() 247 static int fio_vsyncio_queue(struct thread_data *td, struct io_u *io_u) in fio_vsyncio_queue() [all …]
|
D | binject.c | 62 static unsigned int binject_read_commands(struct thread_data *td, void *p, in binject_read_commands() 93 static int fio_binject_getevents(struct thread_data *td, unsigned int min, in fio_binject_getevents() 173 static int fio_binject_doio(struct thread_data *td, struct io_u *io_u) in fio_binject_doio() 186 static int fio_binject_prep(struct thread_data *td, struct io_u *io_u) in fio_binject_prep() 216 static int fio_binject_queue(struct thread_data *td, struct io_u *io_u) in fio_binject_queue() 235 static struct io_u *fio_binject_event(struct thread_data *td, int event) in fio_binject_event() 242 static int binject_open_ctl(struct thread_data *td) in binject_open_ctl() 253 static void binject_unmap_dev(struct thread_data *td, struct binject_file *bf) in binject_unmap_dev() 275 static int binject_map_dev(struct thread_data *td, struct binject_file *bf, in binject_map_dev() 330 static int fio_binject_close_file(struct thread_data *td, struct fio_file *f) in fio_binject_close_file() [all …]
|
D | mmap.c | 30 static int fio_mmap_file(struct thread_data *td, struct fio_file *f, in fio_mmap_file() 84 static int fio_mmapio_prep_limited(struct thread_data *td, struct io_u *io_u) in fio_mmapio_prep_limited() 106 static int fio_mmapio_prep_full(struct thread_data *td, struct io_u *io_u) in fio_mmapio_prep_full() 130 static int fio_mmapio_prep(struct thread_data *td, struct io_u *io_u) in fio_mmapio_prep() 165 static int fio_mmapio_queue(struct thread_data *td, struct io_u *io_u) in fio_mmapio_queue() 206 static int fio_mmapio_init(struct thread_data *td) in fio_mmapio_init() 221 static int fio_mmapio_open_file(struct thread_data *td, struct fio_file *f) in fio_mmapio_open_file() 241 static int fio_mmapio_close_file(struct thread_data *td, struct fio_file *f) in fio_mmapio_close_file()
|
D | guasi.c | 42 static int fio_guasi_prep(struct thread_data fio_unused *td, struct io_u *io_u) in fio_guasi_prep() 51 static struct io_u *fio_guasi_event(struct thread_data *td, int event) in fio_guasi_event() 82 static int fio_guasi_getevents(struct thread_data *td, unsigned int min, in fio_guasi_getevents() 116 static int fio_guasi_queue(struct thread_data *td, struct io_u *io_u) in fio_guasi_queue() 131 static void fio_guasi_queued(struct thread_data *td, struct io_u **io_us, int nr) in fio_guasi_queued() 149 static int fio_guasi_commit(struct thread_data *td) in fio_guasi_commit() 189 static int fio_guasi_cancel(struct thread_data fio_unused *td, in fio_guasi_cancel() 199 static void fio_guasi_cleanup(struct thread_data *td) in fio_guasi_cleanup() 216 static int fio_guasi_init(struct thread_data *td) in fio_guasi_init()
|
D | glusterfs.c | 35 int fio_gf_setup(struct thread_data *td) in fio_gf_setup() 90 void fio_gf_cleanup(struct thread_data *td) in fio_gf_cleanup() 106 int fio_gf_get_file_size(struct thread_data *td, struct fio_file *f) in fio_gf_get_file_size() 133 int fio_gf_open_file(struct thread_data *td, struct fio_file *f) in fio_gf_open_file() 268 int fio_gf_close_file(struct thread_data *td, struct fio_file *f) in fio_gf_close_file() 284 int fio_gf_unlink_file(struct thread_data *td, struct fio_file *f) in fio_gf_unlink_file()
|
D | rdma.c | 60 struct thread_data *td; member 192 static int client_recv(struct thread_data *td, struct ibv_wc *wc) in client_recv() 233 static int server_recv(struct thread_data *td, struct ibv_wc *wc) in server_recv() 258 static int cq_event_handler(struct thread_data *td, enum ibv_wc_opcode opcode) in cq_event_handler() 369 static int rdma_poll_wait(struct thread_data *td, enum ibv_wc_opcode opcode) in rdma_poll_wait() 406 static int fio_rdmaio_setup_qp(struct thread_data *td) in fio_rdmaio_setup_qp() 486 static int fio_rdmaio_setup_control_msg_buffers(struct thread_data *td) in fio_rdmaio_setup_control_msg_buffers() 528 static int get_next_channel_event(struct thread_data *td, in get_next_channel_event() 562 static int fio_rdmaio_prep(struct thread_data *td, struct io_u *io_u) in fio_rdmaio_prep() 605 static struct io_u *fio_rdmaio_event(struct thread_data *td, int event) in fio_rdmaio_event() [all …]
|
D | solarisaio.c | 22 static int fio_solarisaio_cancel(struct thread_data fio_unused *td, in fio_solarisaio_cancel() 28 static int fio_solarisaio_prep(struct thread_data fio_unused *td, in fio_solarisaio_prep() 75 static int fio_solarisaio_getevents(struct thread_data *td, unsigned int min, in fio_solarisaio_getevents() 101 static struct io_u *fio_solarisaio_event(struct thread_data *td, int event) in fio_solarisaio_event() 108 static int fio_solarisaio_queue(struct thread_data fio_unused *td, in fio_solarisaio_queue() 156 static void fio_solarisaio_cleanup(struct thread_data *td) in fio_solarisaio_cleanup() 186 static int fio_solarisaio_init(struct thread_data *td) in fio_solarisaio_init()
|
D | mtd.c | 25 static int fio_mtd_maybe_mark_bad(struct thread_data *td, in fio_mtd_maybe_mark_bad() 41 static int fio_mtd_is_bad(struct thread_data *td, in fio_mtd_is_bad() 54 static int fio_mtd_queue(struct thread_data *td, struct io_u *io_u) in fio_mtd_queue() 129 static int fio_mtd_open_file(struct thread_data *td, struct fio_file *f) in fio_mtd_open_file() 161 static int fio_mtd_close_file(struct thread_data *td, struct fio_file *f) in fio_mtd_close_file() 171 static int fio_mtd_get_file_size(struct thread_data *td, struct fio_file *f) in fio_mtd_get_file_size()
|
D | glusterfs_async.c | 14 static struct io_u *fio_gf_event(struct thread_data *td, int event) in fio_gf_event() 22 static int fio_gf_getevents(struct thread_data *td, unsigned int min, in fio_gf_getevents() 59 static void fio_gf_io_u_free(struct thread_data *td, struct io_u *io_u) in fio_gf_io_u_free() 71 static int fio_gf_io_u_init(struct thread_data *td, struct io_u *io_u) in fio_gf_io_u_init() 99 static int fio_gf_async_queue(struct thread_data fio_unused * td, in fio_gf_async_queue() 140 static int fio_gf_async_setup(struct thread_data *td) in fio_gf_async_setup()
|