Lines Matching refs:namelist
38 struct dirent **namelist = NULL; in thread_map__new_by_pid() local
42 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid()
49 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
55 zfree(&namelist[i]); in thread_map__new_by_pid()
56 free(namelist); in thread_map__new_by_pid()
79 struct dirent *dirent, **namelist = NULL; in __thread_map__new_all_cpus() local
110 items = scandir(path, &namelist, filter, NULL); in __thread_map__new_all_cpus()
131 atoi(namelist[i]->d_name)); in __thread_map__new_all_cpus()
135 zfree(&namelist[i]); in __thread_map__new_all_cpus()
136 free(namelist); in __thread_map__new_all_cpus()
152 zfree(&namelist[i]); in __thread_map__new_all_cpus()
153 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()