Searched refs:db_node (Results 1 – 7 of 7) sorted by relevance
/system/extras/ioshark/ |
D | ioshark_bench_subr.c | 57 struct files_db_s *db_node; in files_db_lookup_byfileno() local 60 db_node = h->files_db_buckets[hash]; in files_db_lookup_byfileno() 61 while (db_node != NULL) { in files_db_lookup_byfileno() 62 if (db_node->fileno == fileno) in files_db_lookup_byfileno() 64 db_node = db_node->next; in files_db_lookup_byfileno() 66 return db_node; in files_db_lookup_byfileno() 73 struct files_db_s *db_node; in files_db_add_byfileno() local 75 db_node = (struct files_db_s *) in files_db_add_byfileno() 77 if (db_node == NULL) { in files_db_add_byfileno() 78 db_node = malloc(sizeof(struct files_db_s)); in files_db_add_byfileno() [all …]
|
D | compile_ioshark_subr.c | 44 struct files_db_s *db_node, *s; in files_db_write_objects() local 46 db_node = files_db_buckets[i]; in files_db_write_objects() 47 while (db_node != NULL) { in files_db_write_objects() 48 st.fileno = db_node->fileno; in files_db_write_objects() 49 st.size = db_node->size; in files_db_write_objects() 51 db_node->global_filename_ix; in files_db_write_objects() 58 s = db_node; in files_db_write_objects() 59 db_node = db_node->next; in files_db_write_objects() 69 struct files_db_s *db_node; in files_db_lookup() local 73 db_node = files_db_buckets[hash]; in files_db_lookup() [all …]
|
D | ioshark_bench.c | 170 void *db_node; in create_files() local 203 db_node = files_db_add_byfileno(state->db_handle, in create_files() 206 files_db_update_size(db_node, file_state.size); in create_files() 207 files_db_update_filename(db_node, filename); in create_files() 213 do_one_io(void *db_node, in do_one_io() argument 228 ret = lseek(files_db_get_fd(db_node), in do_one_io() 234 progname, files_db_get_filename(db_node), in do_one_io() 242 ret = pread(files_db_get_fd(db_node), p, in do_one_io() 249 files_db_get_filename(db_node), in do_one_io() 257 ret = pwrite(files_db_get_fd(db_node), p, in do_one_io() [all …]
|
D | ioshark_bench_mmap.c | 106 mmap_do_io(void *db_node, int prot, off_t offset, size_t len, in mmap_do_io() argument 116 ret = pread(files_db_get_fd(db_node), in mmap_do_io() 122 progname, files_db_get_filename(db_node), in mmap_do_io() 123 len, offset, files_db_get_fd(db_node), in mmap_do_io() 132 ret = pwrite(files_db_get_fd(db_node), in mmap_do_io() 140 fcntl(files_db_get_fd(db_node), F_GETFL)); in mmap_do_io() 147 ret = pread(files_db_get_fd(db_node), in mmap_do_io() 153 progname, files_db_get_filename(db_node), in mmap_do_io() 155 offset, files_db_get_fd(db_node), in mmap_do_io() 165 ioshark_handle_mmap(void *db_node, in ioshark_handle_mmap() argument [all …]
|
D | compile_ioshark.h | 47 struct files_db_s *db_node = (struct files_db_s *)node; in files_db_update_size() local 49 if (db_node->size < new_size) in files_db_update_size() 50 db_node->size = new_size; in files_db_update_size()
|
D | ioshark_bench.h | 70 struct files_db_s *db_node = (struct files_db_s *)node; in files_db_update_size() local 72 if (db_node->size < new_size) in files_db_update_size() 73 db_node->size = new_size; in files_db_update_size() 144 void ioshark_handle_mmap(void *db_node,
|
D | compile_ioshark.c | 529 void *db_node; in main() local 578 db_node = files_db_add(path); in main() 579 disk_file_op->fileno = files_db_get_fileno(db_node); in main() 590 files_db_update_size(db_node, in main() 598 files_db_update_size(db_node, in main() 605 files_db_add_to_size(db_node, in main() 614 files_db_update_size(db_node, in main() 636 files_db_update_size(db_node, in main()
|