Searched refs:file_op (Results 1 – 10 of 10) sorted by relevance
/system/extras/ioshark/ |
D | compile_ioshark_subr.c | 236 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 …]
|
D | ioshark_bench.c | 214 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 …]
|
D | ioshark_bench_subr.c | 683 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 …]
|
D | ioshark_bench_mmap.c | 166 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()
|
D | ioshark.h | 50 enum file_op { enum 81 enum file_op file_op_u;
|
D | convert_format.c | 41 enum file_op file_op; member 189 enum file_op op; in main() 199 op = old_disk_file_op.file_op; in main()
|
D | compile_ioshark.c | 176 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
|
D | ioshark_bench.h | 145 struct ioshark_file_operation *file_op, 158 int ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op);
|
D | compile_ioshark.h | 81 int ioshark_write_file_op(FILE *fp, struct ioshark_file_operation *file_op);
|
D | README | 65 #define file_op file_op_union.file_op_u 67 enum file_op file_op_u;
|