Lines Matching refs:namelist
39 struct dirent **namelist = NULL; in thread_map__new_by_pid() local
43 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
50 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
56 zfree(&namelist[i]); in thread_map__new_by_pid()
57 free(namelist); in thread_map__new_by_pid()
80 struct dirent *dirent, **namelist = NULL; in thread_map__new_all_cpus() local
102 items = scandir(path, &namelist, filter, NULL); in thread_map__new_all_cpus()
124 atoi(namelist[i]->d_name)); in thread_map__new_all_cpus()
128 zfree(&namelist[i]); in thread_map__new_all_cpus()
129 free(namelist); in thread_map__new_all_cpus()
145 zfree(&namelist[i]); in thread_map__new_all_cpus()
146 free(namelist); in thread_map__new_all_cpus()
164 struct dirent **namelist = NULL; in thread_map__new_by_pid_str() local
186 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
198 perf_thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
199 zfree(&namelist[i]); in thread_map__new_by_pid_str()
202 free(namelist); in thread_map__new_by_pid_str()
213 zfree(&namelist[i]); in thread_map__new_by_pid_str()
214 free(namelist); in thread_map__new_by_pid_str()