Lines Matching full:files
21 static void close_dir(struct perf_data_file *files, int nr) in close_dir() argument
24 close(files[nr].fd); in close_dir()
25 zfree(&files[nr].path); in close_dir()
27 free(files); in close_dir()
32 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
37 struct perf_data_file *files = NULL; in perf_data__create_dir() local
43 files = zalloc(nr * sizeof(*files)); in perf_data__create_dir()
44 if (!files) in perf_data__create_dir()
48 struct perf_data_file *file = &files[i]; in perf_data__create_dir()
62 data->dir.files = files; in perf_data__create_dir()
67 close_dir(files, i); in perf_data__create_dir()
73 struct perf_data_file *files = NULL; in perf_data__open_dir() local
111 file = realloc(files, (nr + 1) * sizeof(*files)); in perf_data__open_dir()
115 files = file; in perf_data__open_dir()
116 file = &files[nr++]; in perf_data__open_dir()
131 if (!files) in perf_data__open_dir()
134 data->dir.files = files; in perf_data__open_dir()
140 close_dir(files, nr); in perf_data__open_dir()
152 struct perf_data_file *file = &data->dir.files[i]; in perf_data__update_dir()
422 struct perf_data_file *file = &data->dir.files[i]; in perf_data__size()