Lines Matching refs:namelist
60 struct dirent **namelist = NULL; in thread_map__new_by_pid() local
64 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
71 thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
77 zfree(&namelist[i]); in thread_map__new_by_pid()
78 free(namelist); in thread_map__new_by_pid()
101 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local
132 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus()
153 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus()
157 zfree(&namelist[i]); in __thread_map__new_all_cpus()
158 free(namelist); in __thread_map__new_all_cpus()
174 zfree(&namelist[i]); in __thread_map__new_all_cpus()
175 free(namelist); in __thread_map__new_all_cpus()
208 struct dirent **namelist = NULL; in thread_map__new_by_pid_str() local
230 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
242 thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
243 zfree(&namelist[i]); in thread_map__new_by_pid_str()
246 free(namelist); in thread_map__new_by_pid_str()
257 zfree(&namelist[i]); in thread_map__new_by_pid_str()
258 free(namelist); in thread_map__new_by_pid_str()