Home
last modified time | relevance | path

Searched refs:namelist (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/tools/perf/util/
Dthread_map.c38 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 …]
Dprobe-file.c326 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()
356 int probe_file__del_strlist(int fd, struct strlist *namelist) in probe_file__del_strlist() argument
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()
[all …]
Dprobe-event.c2715 struct strlist *namelist, bool ret_event, in get_new_event_name() argument
2738 if (!strlist__has_entry(namelist, buf)) in get_new_event_name()
2758 if (!strlist__has_entry(namelist, buf)) in get_new_event_name()
2810 struct strlist *namelist, in probe_trace_event__set_name() argument
2839 ret = get_new_event_name(buf, 64, event, namelist, in probe_trace_event__set_name()
2857 strlist__add(namelist, event); in probe_trace_event__set_name()
2862 struct strlist **namelist) in __open_probe_file_and_namelist() argument
2871 *namelist = probe_file__get_namelist(fd); in __open_probe_file_and_namelist()
2872 if (!(*namelist)) { in __open_probe_file_and_namelist()
2887 struct strlist *namelist[2] = {NULL, NULL}; in __add_probe_trace_events() local
[all …]
Dprobe-file.h50 int probe_file__del_strlist(int fd, struct strlist *namelist);
Dmachine.c1339 struct dirent **namelist = NULL; in machines__create_guest_kernel_maps() local
1352 items = scandir(symbol_conf.guestmount, &namelist, NULL, NULL); in machines__create_guest_kernel_maps()
1356 if (!isdigit(namelist[i]->d_name[0])) { in machines__create_guest_kernel_maps()
1360 pid = (pid_t)strtol(namelist[i]->d_name, &endp, 10); in machines__create_guest_kernel_maps()
1362 (endp == namelist[i]->d_name) || in machines__create_guest_kernel_maps()
1365 namelist[i]->d_name); in machines__create_guest_kernel_maps()
1370 namelist[i]->d_name); in machines__create_guest_kernel_maps()
1379 free(namelist); in machines__create_guest_kernel_maps()
/linux-6.1.9/tools/thermal/tmon/
Dsysfs.c283 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 …]
/linux-6.1.9/tools/testing/selftests/ia64/
Daliasing-test.c64 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-6.1.9/tools/usb/usbip/libsrc/
Dvhci_driver.c158 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-6.1.9/drivers/staging/greybus/tools/
Dloopback_test.c585 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-6.1.9/sound/usb/
Dmixer.c2735 char **namelist; in parse_audio_selector_unit() local
2776 namelist = kcalloc(desc->bNrInPins, sizeof(char *), GFP_KERNEL); in parse_audio_selector_unit()
2777 if (!namelist) { in parse_audio_selector_unit()
2784 namelist[i] = kmalloc(MAX_ITEM_NAME_LEN, GFP_KERNEL); in parse_audio_selector_unit()
2785 if (!namelist[i]) { in parse_audio_selector_unit()
2789 len = check_mapped_selector_name(state, unitid, i, namelist[i], in parse_audio_selector_unit()
2792 len = get_term_name(state->chip, &iterm, namelist[i], in parse_audio_selector_unit()
2795 sprintf(namelist[i], "Input %u", i); in parse_audio_selector_unit()
2804 kctl->private_value = (unsigned long)namelist; in parse_audio_selector_unit()
2851 kfree(namelist[i]); in parse_audio_selector_unit()
[all …]