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()
133 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus()
137 zfree(&namelist[i]); in __thread_map__new_all_cpus()
138 free(namelist); in __thread_map__new_all_cpus()
154 zfree(&namelist[i]); in __thread_map__new_all_cpus()
155 free(namelist); in __thread_map__new_all_cpus()
186 struct dirent **namelist = NULL; in thread_map__new_by_pid_str() local
208 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid_str()
220 perf_thread_map__set_pid(threads, j++, atoi(namelist[i]->d_name)); in thread_map__new_by_pid_str()
221 zfree(&namelist[i]); in thread_map__new_by_pid_str()
224 free(namelist); in thread_map__new_by_pid_str()
235 zfree(&namelist[i]); in thread_map__new_by_pid_str()
236 free(namelist); in thread_map__new_by_pid_str()