Searched refs:userfaults (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/tools/testing/selftests/vm/
H A Duserfaultfd.c20 * 2) another per-CPU thread handles the userfaults generated by
34 * per-CPU threads 1 by triggering userfaults inside
253 unsigned long userfaults = 0; uffd_poll_thread() local
290 userfaults++; uffd_poll_thread()
292 return (void *)userfaults; uffd_poll_thread()
346 static int stress(unsigned long *userfaults) stress() argument
352 void **_userfaults = (void **) userfaults; stress()
426 unsigned long userfaults[nr_cpus]; userfaultfd_stress() local
543 * uffd_thread could have read userfaults (one of userfaultfd_stress()
571 if (stress(userfaults)) userfaultfd_stress()
600 printf("userfaults:"); userfaultfd_stress()
602 printf(" %lu", userfaults[cpu]); userfaultfd_stress()
/linux-4.4.14/fs/
H A Duserfaultfd.c42 /* waitqueue head for the pending (i.e. not read) userfaults */
44 /* waitqueue head for the userfaults */
303 * VM_UFFD_MISSING userfaults this is enough for now. handle_userfault()
497 /* walk in reverse to provide FIFO behavior to read userfaults */ find_userfault()
518 * userfaults can be waken before they're read(). userfaultfd_poll()
684 * userfaults yet. So we take the spinlock only when we're wake_userfault()
685 * sure we've userfaults to wake. wake_userfault()
798 * wouldn't know which one to deliver the userfaults to. userfaultfd_register()
1007 * UFFDIO_*_MODE_DONTWAKE to wakeup userfaults in batches.

Completed in 112 milliseconds