/tools/perf/util/ |
D | thread_map.c | 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() [all …]
|
D | probe-file.c | 291 struct strlist *namelist; in probe_file__get_events() local 299 namelist = __probe_file__get_namelist(fd, true); in probe_file__get_events() 300 if (!namelist) in probe_file__get_events() 303 strlist__for_each_entry(ent, namelist) { in probe_file__get_events() 316 strlist__delete(namelist); in probe_file__get_events() 321 int probe_file__del_strlist(int fd, struct strlist *namelist) in probe_file__del_strlist() argument 326 strlist__for_each_entry(ent, namelist) { in probe_file__del_strlist() 336 struct strlist *namelist; in probe_file__del_events() local 339 namelist = strlist__new(NULL, NULL); in probe_file__del_events() 340 if (!namelist) in probe_file__del_events() [all …]
|
D | probe-file.h | 50 int probe_file__del_strlist(int fd, struct strlist *namelist);
|
D | probe-event.c | 2686 struct strlist *namelist, bool ret_event, in get_new_event_name() argument 2709 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2729 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2781 struct strlist *namelist, in probe_trace_event__set_name() argument 2810 ret = get_new_event_name(buf, 64, event, namelist, in probe_trace_event__set_name() 2828 strlist__add(namelist, event); in probe_trace_event__set_name() 2833 struct strlist **namelist) in __open_probe_file_and_namelist() argument 2842 *namelist = probe_file__get_namelist(fd); in __open_probe_file_and_namelist() 2843 if (!(*namelist)) { in __open_probe_file_and_namelist() 2858 struct strlist *namelist[2] = {NULL, NULL}; in __add_probe_trace_events() local [all …]
|
D | machine.c | 1205 struct dirent **namelist = NULL; in machines__create_guest_kernel_maps() local 1218 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps() 1222 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps() 1226 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); in machines__create_guest_kernel_maps() 1228 (endp == namelist[i]->d_name) || in machines__create_guest_kernel_maps() 1231 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1236 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1245 free(namelist); in machines__create_guest_kernel_maps()
|
/tools/thermal/tmon/ |
D | sysfs.c | 283 struct dirent **namelist; in scan_tzones() local 300 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones() 313 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones() 316 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones() 318 free(namelist[n]); in scan_tzones() 321 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones() 324 free(namelist[n]); in scan_tzones() 326 free(namelist); in scan_tzones() 341 struct dirent **namelist; in scan_cdevs() local 362 n = scandir(cdev_name, &namelist, 0, alphasort); in scan_cdevs() [all …]
|
/tools/testing/selftests/ia64/ |
D | aliasing-test.c | 64 struct dirent **namelist; in scan_tree() local 69 n = scandir(path, &namelist, 0, alphasort); in scan_tree() 76 name = namelist[i]->d_name; in scan_tree() 111 free(namelist[i]); in scan_tree() 113 free(namelist); in scan_tree() 149 struct dirent **namelist; in scan_rom() local 154 n = scandir(path, &namelist, 0, alphasort); in scan_rom() 161 name = namelist[i]->d_name; in scan_rom() 200 free(namelist[i]); in scan_rom() 202 free(namelist); in scan_rom()
|
/tools/usb/usbip/libsrc/ |
D | vhci_driver.c | 158 struct dirent **namelist; in get_ncontrollers() local 166 n = scandir(udev_device_get_syspath(platform), &namelist, vhci_hcd_filter, NULL); in get_ncontrollers() 171 free(namelist[i]); in get_ncontrollers() 172 free(namelist); in get_ncontrollers()
|