Lines Matching defs:wp

234 #define  pagemap_check_wp(value, wp) do {				\
235 if (!!(value & PM_UFFD_WP) != wp) \
236 err("pagemap uffd-wp bit error: 0x%"PRIx64, value); \
340 * After fork(), we should handle uffd-wp bit differently:
428 uffd_test_fail("Detected %s uffd-wp bit in child in present pte",
455 /* Uffd-wp should persist even swapped out */
459 uffd_test_fail("Detected %s uffd-wp bit in child in zapped pte",
518 uffd_test_fail("Detected %s uffd-wp bit in early CoW of fork()",
531 uffd_test_fail("Detected %s uffd-wp bit when RO pin",
581 /* NOTE! MADV_COLLAPSE may not work with uffd-wp */
681 static int faulting_process(int signal_test, bool wp)
716 if (copy_page(uffd, offset, wp))
777 static void uffd_sigbus_test_common(bool wp)
791 true, wp, false))
794 if (faulting_process(1, wp))
799 args.apply_wp = wp;
811 exit(faulting_process(2, wp));
837 static void uffd_events_test_common(bool wp)
849 true, wp, false))
852 args.apply_wp = wp;
864 exit(faulting_process(0, wp));
1459 do_register_ioctls_test(uffd_test_args_t *args, bool miss, bool wp, bool minor)
1466 miss, wp, minor, &ioctls);
1476 (!miss && !wp && !minor)) {
1478 err("register (miss=%d, wp=%d, minor=%d) failed "
1479 "with wrong errno=%d", miss, wp, minor, ret);
1486 if (wp)
1493 "(miss=%d, wp=%d, minor=%d): expected=0x%"PRIx64", "
1494 "returned=0x%"PRIx64, miss, wp, minor, expected, ioctls);
1502 int miss, wp, minor;
1505 for (wp = 0; wp <= 1; wp++)
1507 do_register_ioctls_test(args, miss, wp, minor);
1553 .name = "wp-fork",
1560 .name = "wp-fork-with-event",
1565 /* when set, child process should inherit uffd-wp bits */
1569 .name = "wp-fork-pin",
1576 .name = "wp-fork-pin-with-event",
1581 /* when set, child process should inherit uffd-wp bits */
1585 .name = "wp-unpopulated",
1599 .name = "minor-wp",
1628 .name = "sigbus-wp",
1643 .name = "events-wp",