Lines Matching refs:dir
33 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
66 data->dir.version = PERF_DIR_VERSION; in perf_data__create_dir()
67 data->dir.files = files; in perf_data__create_dir()
68 data->dir.nr = nr; in perf_data__create_dir()
81 DIR *dir; in perf_data__open_dir() local
95 if (WARN_ON(data->dir.version != PERF_DIR_VERSION)) in perf_data__open_dir()
98 dir = opendir(data->path); in perf_data__open_dir()
99 if (!dir) in perf_data__open_dir()
102 while ((dent = readdir(dir)) != NULL) { in perf_data__open_dir()
135 closedir(dir); in perf_data__open_dir()
139 data->dir.files = files; in perf_data__open_dir()
140 data->dir.nr = nr; in perf_data__open_dir()
144 closedir(dir); in perf_data__open_dir()
156 for (i = 0; i < data->dir.nr; i++) { in perf_data__update_dir()
157 struct perf_data_file *file = &data->dir.files[i]; in perf_data__update_dir()
460 for (i = 0; i < data->dir.nr; i++) { in perf_data__size()
461 struct perf_data_file *file = &data->dir.files[i]; in perf_data__size()
487 DIR *dir = opendir(path); in has_kcore_dir() local
491 if (dir) { in has_kcore_dir()
493 d = readdir(dir); in has_kcore_dir()
496 closedir(dir); in has_kcore_dir()