Lines Matching refs:mremap

239 	char *test_name = "mremap expand merge";
252 remap = mremap(start, page_size, 2 * page_size, 0);
254 ksft_print_msg("mremap failed: %s\n", strerror(errno));
279 char *test_name = "mremap expand merge offset";
293 remap = mremap(start + page_size, page_size, 2 * page_size, 0);
295 ksft_print_msg("mremap failed: %s\n", strerror(errno));
312 * Verify that an mremap within a range does not cause corruption
321 * adjacent mremap.
327 char *test_name = "mremap mremap move within range";
349 void *new_ptr = mremap(src + SIZE_MB(1), SIZE_MB(1), SIZE_MB(1),
352 perror("mremap");
363 ksft_print_msg("Data at src at %d got corrupted due to unrelated mremap\n",
448 dest_addr = mremap(src_addr, c.region_size, c.region_size,
453 ksft_print_msg("mremap failed: %s\n", strerror(errno));
545 * mremap will unmap any previous mapping at the address range specified by
561 * Verify that an mremap aligning down does not destroy
568 char *test_name = "mremap move 1mb from start at 1MB+256KB aligned src";
600 void *new_ptr = mremap(src + SIZE_MB(1), SIZE_MB(1), SIZE_MB(1),
603 perror("mremap");
614 ksft_print_msg("Data at src at %d got corrupted due to unrelated mremap\n",
644 ksft_test_result_xfail("%s\n\tExpected mremap failure\n",
652 * Comparing mremap time is only applicable if entire region
763 /* Expected mremap failures */
766 "mremap - Source and Destination Regions Overlapping");
770 "mremap - Destination Address Misaligned (1KB-aligned)");
773 "mremap - Source Address Misaligned (1KB-aligned)");
778 "8KB mremap - Source PTE-aligned, Destination PTE-aligned");
782 "2MB mremap - Source 1MB-aligned, Destination PTE-aligned");
784 "2MB mremap - Source 1MB-aligned, Destination 1MB-aligned");
788 "4MB mremap - Source PMD-aligned, Destination PTE-aligned");
790 "4MB mremap - Source PMD-aligned, Destination 1MB-aligned");
792 "4MB mremap - Source PMD-aligned, Destination PMD-aligned");
796 "2GB mremap - Source PUD-aligned, Destination PTE-aligned");
798 "2GB mremap - Source PUD-aligned, Destination 1MB-aligned");
800 "2GB mremap - Source PUD-aligned, Destination PMD-aligned");
802 "2GB mremap - Source PUD-aligned, Destination PUD-aligned");
804 /* Src and Dest addr 1MB aligned. 5MB mremap. */
806 "5MB mremap - Source 1MB-aligned, Destination 1MB-aligned");
808 /* Src and Dest addr 1MB aligned. 5MB mremap. */
810 "5MB mremap - Source 1MB-aligned, Dest 1MB-aligned with 40MB Preamble");
814 "1GB mremap - Source PTE-aligned, Destination PTE-aligned");
816 * mremap 1GB region - Page table level aligned time
820 "1GB mremap - Source PMD-aligned, Destination PMD-aligned");
822 "1GB mremap - Source PUD-aligned, Destination PUD-aligned");
851 "mremap HAVE_MOVE_PMD/PUD optimization time comparison for 1GB region:");