/linux/tools/perf/util/ |
A D | thread_map.c | 38 struct dirent **namelist = NULL; in thread_map__new_by_pid() local 55 zfree(&namelist[i]); in thread_map__new_by_pid() 56 free(namelist); in thread_map__new_by_pid() 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() 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() [all …]
|
A D | probe-file.c | 326 struct strlist *namelist; in probe_file__get_events() local 334 namelist = __probe_file__get_namelist(fd, true); in probe_file__get_events() 335 if (!namelist) in probe_file__get_events() 338 strlist__for_each_entry(ent, namelist) { in probe_file__get_events() 351 strlist__delete(namelist); in probe_file__get_events() 361 strlist__for_each_entry(ent, namelist) { in probe_file__del_strlist() 371 struct strlist *namelist; in probe_file__del_events() local 374 namelist = strlist__new(NULL, NULL); in probe_file__del_events() 375 if (!namelist) in probe_file__del_events() 382 ret = probe_file__del_strlist(fd, namelist); in probe_file__del_events() [all …]
|
A D | probe-event.c | 2852 strlist__add(namelist, event); in probe_trace_event__set_name() 2857 struct strlist **namelist) in __open_probe_file_and_namelist() argument 2867 if (!(*namelist)) { in __open_probe_file_and_namelist() 2896 &namelist[up]); in __add_probe_trace_events() 2937 strlist__delete(namelist[up]); in __add_probe_trace_events() 3543 if (!namelist) in show_probe_trace_events() 3556 namelist, true); in show_probe_trace_events() 3561 strlist__delete(namelist); in show_probe_trace_events() 3599 if (!namelist) in show_bootconfig_events() 3619 namelist, true); in show_bootconfig_events() [all …]
|
A D | probe-file.h | 50 int probe_file__del_strlist(int fd, struct strlist *namelist);
|
A D | machine.c | 1241 struct dirent **namelist = NULL; in machines__create_guest_kernel_maps() local 1254 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps() 1258 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps() 1262 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); in machines__create_guest_kernel_maps() 1264 (endp == namelist[i]->d_name) || in machines__create_guest_kernel_maps() 1267 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1272 namelist[i]->d_name); in machines__create_guest_kernel_maps() 1281 free(namelist); in machines__create_guest_kernel_maps()
|
/linux/tools/thermal/tmon/ |
A D | sysfs.c | 281 struct dirent **namelist; in scan_tzones() local 316 free(namelist[n]); in scan_tzones() 322 free(namelist[n]); in scan_tzones() 324 free(namelist); in scan_tzones() 339 struct dirent **namelist; in scan_cdevs() local 371 free(namelist[n]); in scan_cdevs() 372 free(namelist); in scan_cdevs() 410 namelist[n]->d_name, in probe_thermal_sysfs() 421 namelist[n]->d_name, in probe_thermal_sysfs() 426 free(namelist[n]); in probe_thermal_sysfs() [all …]
|
/linux/tools/testing/selftests/ia64/ |
A 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()
|
/linux/tools/usb/usbip/libsrc/ |
A 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()
|
/linux/drivers/staging/greybus/tools/ |
A D | loopback_test.c | 585 struct dirent **namelist; in find_loopback_devices() local 590 n = scandir(t->sysfs_prefix, &namelist, NULL, alphasort); in find_loopback_devices() 604 ret = sscanf(namelist[i]->d_name, "gb_loopback%u", &dev_id); in find_loopback_devices() 608 if (!is_loopback_device(t->sysfs_prefix, namelist[i]->d_name)) in find_loopback_devices() 632 free(namelist[i]); in find_loopback_devices() 633 free(namelist); in find_loopback_devices()
|
/linux/sound/usb/ |
A D | mixer.c | 2730 char **namelist; in parse_audio_selector_unit() local 2771 namelist = kcalloc(desc->bNrInPins, sizeof(char *), GFP_KERNEL); in parse_audio_selector_unit() 2772 if (!namelist) { in parse_audio_selector_unit() 2779 namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); in parse_audio_selector_unit() 2780 if (!namelist[i]) { in parse_audio_selector_unit() 2784 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit() 2787 len = get_term_name(state->chip, &iterm, namelist[i], in parse_audio_selector_unit() 2790 sprintf(namelist[i], "Input %u", i); in parse_audio_selector_unit() 2799 kctl->private_value = (unsigned long)namelist; in parse_audio_selector_unit() 2846 kfree(namelist[i]); in parse_audio_selector_unit() [all …]
|
/linux/Documentation/admin-guide/ |
A D | README.rst | 377 line (ignore the ``0010:``), and look it up in the kernel namelist to 382 the file 'linux/vmlinux'. To extract the namelist and match it against
|