Lines Matching refs:files
22 static void close_dir(struct perf_data_file *files, int nr) in close_dir() argument
25 close(files[nr].fd); in close_dir()
26 zfree(&files[nr].path); in close_dir()
28 free(files); in close_dir()
33 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
38 struct perf_data_file *files = NULL; in perf_data__create_dir() local
44 files = zalloc(nr * sizeof(*files)); in perf_data__create_dir()
45 if (!files) in perf_data__create_dir()
49 struct perf_data_file *file = &files[i]; in perf_data__create_dir()
67 data->dir.files = files; in perf_data__create_dir()
72 close_dir(files, i); in perf_data__create_dir()
78 struct perf_data_file *files = NULL; in perf_data__open_dir() local
116 file = realloc(files, (nr + 1) * sizeof(*files)); in perf_data__open_dir()
120 files = file; in perf_data__open_dir()
121 file = &files[nr++]; in perf_data__open_dir()
136 if (!files) in perf_data__open_dir()
139 data->dir.files = files; in perf_data__open_dir()
145 close_dir(files, nr); in perf_data__open_dir()
157 struct perf_data_file *file = &data->dir.files[i]; in perf_data__update_dir()
463 struct perf_data_file *file = &data->dir.files[i]; in perf_data__size()