Lines Matching refs:info
44 struct file_info *info; in get_file_info() local
54 info = calloc(1, sizeof(*info)); in get_file_info()
55 if (!info) { in get_file_info()
60 info->name = malloc(strlen(fpath) + 1); in get_file_info()
61 if (!info->name) { in get_file_info()
65 strcpy(info->name, fpath); in get_file_info()
67 info->num_cached_pages = 0; in get_file_info()
68 info->file_size = file_size; in get_file_info()
70 g_files[g_num_files++] = info; in get_file_info()
72 return info; in get_file_info()
98 struct file_info *info = get_file_info(fpath, sb->st_size); in store_num_cached() local
99 info->num_cached_pages += num_cached; in store_num_cached()
159 struct file_info *info = g_files[i]; in main() local
160 fprintf(stdout, "%s: %zu cached pages (%.2f MB, %zu%% of total file size.)\n", info->name, in main()
161 info->num_cached_pages, in main()
162 (float) (info->num_cached_pages * g_page_size) / 1024 / 1024, in main()
163 (100 * info->num_cached_pages * g_page_size) / info->file_size); in main()