/tools/testing/selftests/mm/ |
D | uffd-common.h | 120 int uffd_read_msg(int ufd, struct uffd_msg *msg); 121 void wp_range(int ufd, __u64 start, __u64 len, bool wp); 123 int __copy_page(int ufd, unsigned long offset, bool retry, bool wp); 124 int copy_page(int ufd, unsigned long offset, bool wp); 125 int move_page(int ufd, unsigned long offset, unsigned long len);
|
D | uffd-common.c | 378 void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument 388 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range() 392 static void continue_range(int ufd, __u64 start, __u64 len, bool wp) in continue_range() argument 403 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range() 413 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range() 419 int uffd_read_msg(int ufd, struct uffd_msg *msg) in uffd_read_msg() argument 551 uffd = msg.arg.fork.ufd; in uffd_poll_thread() 571 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument 577 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page() 588 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument [all …]
|
D | uffd-stress.c | 123 static int copy_page_retry(int ufd, unsigned long offset) in copy_page_retry() argument 125 return __copy_page(ufd, offset, true, test_uffdio_wp); in copy_page_retry()
|
D | uffd-unit-tests.c | 252 args->child_uffd = msg.arg.fork.ufd; in fork_event_consumer() 882 static void retry_uffdio_zeropage(int ufd, in retry_uffdio_zeropage() argument 888 if (ioctl(ufd, UFFDIO_ZEROPAGE, uffdio_zeropage)) { in retry_uffdio_zeropage() 898 static bool do_uffdio_zeropage(int ufd, bool has_zeropage) in do_uffdio_zeropage() argument 907 ret = ioctl(ufd, UFFDIO_ZEROPAGE, &uffdio_zeropage); in do_uffdio_zeropage() 919 retry_uffdio_zeropage(ufd, &uffdio_zeropage); in do_uffdio_zeropage()
|
/tools/perf/ |
D | builtin-probe.c | 443 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local 457 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events() 479 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events() 484 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events() 498 if (ufd >= 0) in perf_del_probe_events() 499 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 | 152 int probe_file__open_both(int *kfd, int *ufd, int flag) in probe_file__open_both() argument 154 if (!kfd || !ufd) in probe_file__open_both() 158 *ufd = open_uprobe_events(flag & PF_FL_RW); in probe_file__open_both() 159 if (*kfd < 0 && *ufd < 0) { in probe_file__open_both() 160 print_both_open_warning(*kfd, *ufd, flag & PF_FL_RW); in probe_file__open_both()
|
D | probe-event.c | 3718 int ret, ret2, ufd = -1, kfd = -1; in del_perf_probe_events() local 3725 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in del_perf_probe_events() 3733 ret2 = probe_file__del_events(ufd, filter); in del_perf_probe_events() 3743 if (ufd >= 0) in del_perf_probe_events() 3744 close(ufd); in del_perf_probe_events()
|
/tools/tracing/latency/ |
D | latency-collector.c | 1639 int ufd; in start_printthread() local 1641 ufd = open(DEV_URANDOM, O_RDONLY); in start_printthread() 1650 if (ufd < 0 || in start_printthread() 1651 read(ufd, seed, sizeof(*seed)) != sizeof(*seed)) { in start_printthread() 1663 if (ufd > 0 && close(ufd) != 0) in start_printthread()
|