Searched refs:ufd (Results 1 – 5 of 5) sorted by relevance
/tools/testing/selftests/vm/ |
D | userfaultfd.c | 479 static void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument 489 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range() 493 static void continue_range(int ufd, __u64 start, __u64 len) in continue_range() argument 502 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range() 512 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range() 569 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument 575 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page() 586 static int __copy_page(int ufd, unsigned long offset, bool retry) in __copy_page() argument 600 if (ioctl(ufd, UFFDIO_COPY, &uffdio_copy)) { in __copy_page() 610 retry_copy_page(ufd, &uffdio_copy, offset); in __copy_page() [all …]
|
/tools/perf/ |
D | builtin-probe.c | 422 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local 436 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events() 458 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events() 463 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events() 477 if (ufd >= 0) in perf_del_probe_events() 478 close(ufd); in perf_del_probe_events()
|
/tools/perf/util/ |
D | probe-file.h | 42 int probe_file__open_both(int *kfd, int *ufd, int flag);
|
D | probe-file.c | 117 int probe_file__open_both(int *kfd, int *ufd, int flag) in probe_file__open_both() argument 119 if (!kfd || !ufd) in probe_file__open_both() 123 *ufd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open_both() 124 if (*kfd < 0 && *ufd < 0) { in probe_file__open_both() 125 print_both_open_warning(*kfd, *ufd); in probe_file__open_both()
|
D | probe-event.c | 3575 int ret, ret2, ufd = -1, kfd = -1; in del_perf_probe_events() local 3582 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in del_perf_probe_events() 3590 ret2 = probe_file__del_events(ufd, filter); in del_perf_probe_events() 3600 if (ufd >= 0) in del_perf_probe_events() 3601 close(ufd); in del_perf_probe_events()
|