Home
last modified time | relevance | path

Searched refs:db_node (Results 1 – 7 of 7) sorted by relevance

/system/extras/ioshark/
Dioshark_bench_subr.c57 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 …]
Dcompile_ioshark_subr.c44 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 …]
Dioshark_bench.c170 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 …]
Dioshark_bench_mmap.c106 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 …]
Dcompile_ioshark.h47 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()
Dioshark_bench.h70 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,
Dcompile_ioshark.c529 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()