Home
last modified time | relevance | path

Searched refs:file_op (Results 1 – 10 of 10) sorted by relevance

/system/extras/ioshark/
Dcompile_ioshark_subr.c236 ioshark_write_file_op(FILE *fp, struct ioshark_file_operation *file_op) in ioshark_write_file_op() argument
238 enum file_op op = file_op->ioshark_io_op; in ioshark_write_file_op()
240 file_op->delta_us = htobe64(file_op->delta_us); in ioshark_write_file_op()
241 file_op->op_union.enum_size = htobe32(file_op->op_union.enum_size); in ioshark_write_file_op()
242 file_op->fileno = htobe64(file_op->fileno); in ioshark_write_file_op()
246 file_op->lseek_offset = htobe64(file_op->lseek_offset); in ioshark_write_file_op()
247 file_op->lseek_action = htobe32(file_op->lseek_action); in ioshark_write_file_op()
251 file_op->prw_offset = htobe64(file_op->prw_offset); in ioshark_write_file_op()
252 file_op->prw_len = htobe64(file_op->prw_len); in ioshark_write_file_op()
256 file_op->rw_len = htobe64(file_op->rw_len); in ioshark_write_file_op()
[all …]
Dioshark_bench.c214 struct ioshark_file_operation *file_op, in do_one_io() argument
219 assert(file_op->ioshark_io_op < IOSHARK_MAX_FILE_OP); in do_one_io()
220 op_counts[file_op->ioshark_io_op]++; in do_one_io()
221 switch (file_op->ioshark_io_op) { in do_one_io()
229 file_op->lseek_offset, in do_one_io()
230 file_op->lseek_action); in do_one_io()
235 file_op->lseek_offset, in do_one_io()
236 file_op->lseek_action, errno); in do_one_io()
241 p = get_buf(bufp, buflen, file_op->prw_len, 0); in do_one_io()
243 file_op->prw_len, file_op->prw_offset); in do_one_io()
[all …]
Dioshark_bench_subr.c683 ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op) in ioshark_read_file_op() argument
685 if (fread(file_op, sizeof(struct ioshark_file_operation), 1, fp) != 1) in ioshark_read_file_op()
687 file_op->delta_us = be64toh(file_op->delta_us); in ioshark_read_file_op()
688 file_op->op_union.enum_size = be32toh(file_op->op_union.enum_size); in ioshark_read_file_op()
689 file_op->fileno = be64toh(file_op->fileno); in ioshark_read_file_op()
690 switch (file_op->ioshark_io_op) { in ioshark_read_file_op()
693 file_op->lseek_offset = be64toh(file_op->lseek_offset); in ioshark_read_file_op()
694 file_op->lseek_action = be32toh(file_op->lseek_action); in ioshark_read_file_op()
698 file_op->prw_offset = be64toh(file_op->prw_offset); in ioshark_read_file_op()
699 file_op->prw_len = be64toh(file_op->prw_len); in ioshark_read_file_op()
[all …]
Dioshark_bench_mmap.c166 struct ioshark_file_operation *file_op, in ioshark_handle_mmap() argument
170 off_t offset = file_op->mmap_offset; in ioshark_handle_mmap()
171 size_t len = file_op->mmap_len; in ioshark_handle_mmap()
172 int prot = file_op->mmap_prot; in ioshark_handle_mmap()
197 (file_op->mmap_offset + file_op->mmap_len)); in ioshark_handle_mmap()
Dioshark.h50 enum file_op { enum
81 enum file_op file_op_u;
Dconvert_format.c41 enum file_op file_op; member
189 enum file_op op; in main()
199 op = old_disk_file_op.file_op; in main()
Dcompile_ioshark.c176 get_pathname(char *buf, char *pathname, enum file_op file_op) in get_pathname() argument
180 if (file_op == IOSHARK_MAPPED_PREAD) { in get_pathname()
194 if (file_op == IOSHARK_OPEN) in get_pathname()
204 if (file_op == IOSHARK_OPEN) in get_pathname()
293 get_lseek_offset_action(char *buf, enum file_op op, in get_lseek_offset_action()
509 enum file_op
Dioshark_bench.h145 struct ioshark_file_operation *file_op,
158 int ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op);
Dcompile_ioshark.h81 int ioshark_write_file_op(FILE *fp, struct ioshark_file_operation *file_op);
DREADME65 #define file_op file_op_union.file_op_u
67 enum file_op file_op_u;