Home
last modified time | relevance | path

Searched refs:filename_cache (Results 1 – 3 of 3) sorted by relevance

/system/extras/ioshark/
Ddump_ioshark_filenames.c39 struct ioshark_filename_struct *filename_cache; in main() local
60 filename_cache = calloc(filename_cache_size, in main()
62 if (filename_cache == NULL) { in main()
67 if (fread(filename_cache, in main()
76 printf("%s\n", filename_cache[i].path); in main()
78 free(filename_cache); in main()
Dcompile_ioshark_subr.c109 static struct ioshark_filename_struct *filename_cache; variable
143 filename_cache = calloc(filename_cache_size, in init_filename_cache()
145 if (filename_cache == NULL) { in init_filename_cache()
150 if (fread(filename_cache, in init_filename_cache()
169 if (strcmp(filename_cache[i].path, filename) == 0) in filename_cache_lookup()
179 filename_cache = realloc(filename_cache, newsize); in filename_cache_lookup()
180 if (filename_cache == NULL) { in filename_cache_lookup()
187 strcpy(filename_cache[filename_cache_num_entries].path, in filename_cache_lookup()
205 if (fwrite(filename_cache, in store_filename_cache()
214 free(filename_cache); in store_filename_cache()
Dioshark_bench_subr.c571 static struct ioshark_filename_struct *filename_cache; variable
579 return filename_cache[ix].path; in get_ro_filename()
601 filename_cache = mmap(NULL, st.st_size, PROT_READ, in init_filename_cache()
604 if (filename_cache == MAP_FAILED) { in init_filename_cache()
618 munmap(filename_cache, mmap_size); in free_filename_cache()