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
111 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus()
132 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus()
136 zfree(&namelist[i]); in __thread_map__new_all_cpus()
137 free(namelist); in __thread_map__new_all_cpus()
153 zfree(&namelist[i]); in __thread_map__new_all_cpus()
154 free(namelist); in __thread_map__new_all_cpus()
187 struct dirent **namelist = NULL; in thread_map__new_by_pid_str() local
209 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
221 perf_thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
222 zfree(&namelist[i]); in thread_map__new_by_pid_str()
225 free(namelist); in thread_map__new_by_pid_str()
236 zfree(&namelist[i]); in thread_map__new_by_pid_str()
237 free(namelist); in thread_map__new_by_pid_str()