/linux-4.4.14/tools/perf/util/ |
D | thread_map.c | 55 struct dirent **namelist = NULL; in thread_map__new_by_pid() local 59 items = scandir(name, &namelist, filter, NULL); in thread_map__new_by_pid() 66 thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid() 72 zfree(&namelist[i]); in thread_map__new_by_pid() 73 free(namelist); in thread_map__new_by_pid() 96 struct dirent dirent, *next, **namelist = NULL; in thread_map__new_by_uid() local 127 items = scandir(path, &namelist, filter, NULL); in thread_map__new_by_uid() 148 atoi(namelist[i]->d_name)); in thread_map__new_by_uid() 152 zfree(&namelist[i]); in thread_map__new_by_uid() 153 free(namelist); in thread_map__new_by_uid() [all …]
|
D | probe-file.c | 272 struct strlist *namelist; in probe_file__get_events() local 280 namelist = __probe_file__get_namelist(fd, true); in probe_file__get_events() 281 if (!namelist) in probe_file__get_events() 284 strlist__for_each(ent, namelist) { in probe_file__get_events() 292 strlist__delete(namelist); in probe_file__get_events() 297 int probe_file__del_strlist(int fd, struct strlist *namelist) in probe_file__del_strlist() argument 302 strlist__for_each(ent, namelist) { in probe_file__del_strlist() 312 struct strlist *namelist; in probe_file__del_events() local 315 namelist = strlist__new(NULL, NULL); in probe_file__del_events() 316 if (!namelist) in probe_file__del_events() [all …]
|
D | probe-file.h | 19 int probe_file__del_strlist(int fd, struct strlist *namelist);
|
D | probe-event.c | 2303 struct strlist *namelist, bool allow_suffix) in get_new_event_name() argument 2325 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2342 if (!strlist__has_entry(namelist, buf)) in get_new_event_name() 2379 struct strlist *namelist, in probe_trace_event__set_name() argument 2402 namelist, allow_suffix); in probe_trace_event__set_name() 2414 strlist__add(namelist, event); in probe_trace_event__set_name() 2424 struct strlist *namelist; in __add_probe_trace_events() local 2431 namelist = probe_file__get_namelist(fd); in __add_probe_trace_events() 2432 if (!namelist) { in __add_probe_trace_events() 2446 ret = probe_trace_event__set_name(tev, pev, namelist, in __add_probe_trace_events() [all …]
|
D | machine.c | 798 struct dirent **namelist = NULL; in machines__create_guest_kernel_maps() local 811 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps() 815 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps() 819 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); in machines__create_guest_kernel_maps() 821 (endp == namelist[i]->d_name) || in machines__create_guest_kernel_maps() 824 namelist[i]->d_name); in machines__create_guest_kernel_maps() 829 namelist[i]->d_name); in machines__create_guest_kernel_maps() 838 free(namelist); in machines__create_guest_kernel_maps()
|
/linux-4.4.14/tools/thermal/tmon/ |
D | sysfs.c | 290 struct dirent **namelist; in scan_tzones() local 307 n = scandir(tz_name, &namelist, 0, alphasort); in scan_tzones() 320 if (find_tzone_tp(tz_name, namelist[n]->d_name, in scan_tzones() 323 temp_str = strstr(namelist[n]->d_name, "cdev"); in scan_tzones() 325 free(namelist[n]); in scan_tzones() 328 if (!find_tzone_cdev(namelist[n], tz_name, in scan_tzones() 331 free(namelist[n]); in scan_tzones() 333 free(namelist); in scan_tzones() 348 struct dirent **namelist; in scan_cdevs() local 369 n = scandir(cdev_name, &namelist, 0, alphasort); in scan_cdevs() [all …]
|
/linux-4.4.14/Documentation/ia64/ |
D | aliasing-test.c | 67 struct dirent **namelist; in scan_tree() local 72 n = scandir(path, &namelist, 0, alphasort); in scan_tree() 79 name = namelist[i]->d_name; in scan_tree() 114 free(namelist[i]); in scan_tree() 116 free(namelist); in scan_tree() 152 struct dirent **namelist; in scan_rom() local 157 n = scandir(path, &namelist, 0, alphasort); in scan_rom() 164 name = namelist[i]->d_name; in scan_rom() 203 free(namelist[i]); in scan_rom() 205 free(namelist); in scan_rom()
|
/linux-4.4.14/sound/usb/ |
D | mixer.c | 2012 char **namelist; in parse_audio_selector_unit() local 2049 namelist = kmalloc(sizeof(char *) * desc->bNrInPins, GFP_KERNEL); in parse_audio_selector_unit() 2050 if (!namelist) { in parse_audio_selector_unit() 2058 namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); in parse_audio_selector_unit() 2059 if (!namelist[i]) { in parse_audio_selector_unit() 2061 kfree(namelist[i]); in parse_audio_selector_unit() 2062 kfree(namelist); in parse_audio_selector_unit() 2066 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit() 2069 len = get_term_name(state, &iterm, namelist[i], MAX_ITEM_NAME_LEN, 0); in parse_audio_selector_unit() 2071 sprintf(namelist[i], "Input %u", i); in parse_audio_selector_unit() [all …]
|
/linux-4.4.14/ |
D | README | 365 line (ignore the "0010:"), and look it up in the kernel namelist to 370 the file 'linux/vmlinux'. To extract the namelist and match it against
|