Home
last modified time | relevance | path

Searched refs:ufd (Results 1 – 6 of 6) sorted by relevance

/tools/testing/selftests/vm/
Duserfaultfd.c484 static void wp_range(int ufd, __u64 start, __u64 len, bool wp) in wp_range() argument
494 if (ioctl(ufd, UFFDIO_WRITEPROTECT, &prms)) in wp_range()
498 static void continue_range(int ufd, __u64 start, __u64 len) in continue_range() argument
507 if (ioctl(ufd, UFFDIO_CONTINUE, &req)) in continue_range()
517 ret = ioctl(ufd, UFFDIO_CONTINUE, &req); in continue_range()
574 static void retry_copy_page(int ufd, struct uffdio_copy *uffdio_copy, in retry_copy_page() argument
580 if (ioctl(ufd, UFFDIO_COPY, uffdio_copy)) { in retry_copy_page()
591 static void wake_range(int ufd, unsigned long addr, unsigned long len) in wake_range() argument
598 if (ioctl(ufd, UFFDIO_WAKE, &uffdio_wake)) in wake_range()
603 static int __copy_page(int ufd, unsigned long offset, bool retry) in __copy_page() argument
[all …]
/tools/perf/
Dbuiltin-probe.c425 int ret, ret2, ufd = -1, kfd = -1; in perf_del_probe_events() local
439 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in perf_del_probe_events()
461 ret2 = probe_file__get_events(ufd, filter, ulist); in perf_del_probe_events()
466 ret2 = probe_file__del_strlist(ufd, ulist); in perf_del_probe_events()
480 if (ufd >= 0) in perf_del_probe_events()
481 close(ufd); in perf_del_probe_events()
/tools/perf/util/
Dprobe-file.h42 int probe_file__open_both(int *kfd, int *ufd, int flag);
Dprobe-file.c152 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()
Dprobe-event.c3695 int ret, ret2, ufd = -1, kfd = -1; in del_perf_probe_events() local
3702 ret = probe_file__open_both(&kfd, &ufd, PF_FL_RW); in del_perf_probe_events()
3710 ret2 = probe_file__del_events(ufd, filter); in del_perf_probe_events()
3720 if (ufd >= 0) in del_perf_probe_events()
3721 close(ufd); in del_perf_probe_events()
/tools/tracing/latency/
Dlatency-collector.c1639 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()