large page test: improvements in output.
authorSimon Gerber <simon.gerber@hp.com>
Sat, 12 Jul 2014 00:42:41 +0000 (17:42 -0700)
committerSimon Gerber <simon.gerber@inf.ethz.ch>
Mon, 4 May 2015 09:28:14 +0000 (11:28 +0200)
Signed-off-by: Simon Gerber <simon.gerber@hp.com>

usr/tests/large_page/map_test.c

index 10ef41b..866b6dd 100644 (file)
@@ -63,7 +63,7 @@ int main(void)
                 errors++;
             }
         }
-        debug_printf("2M test %s\n", errors ? "FAILED" : "PASSED");
+        debug_printf("2M/1G test %s\n", errors ? "FAILED" : "PASSED");
         if (errors) {
             debug_printf("  %d errors\n", errors);
         }
@@ -71,11 +71,11 @@ int main(void)
         vregion_destroy(vregion);
     }
     for (int k = 0; k < RUNS; k++) {
-        debug_printf("Running 4k+2M/4k test\n");
+        debug_printf("Running 2M/2M test\n");
         // map with large flag
         err = vspace_map_one_frame_attr_aligned(&vbuf, retsize, frame,
                 VREGION_FLAGS_READ_WRITE | VREGION_FLAGS_LARGE,
-                0 /* no alignment requirement */, NULL, &vregion);
+                X86_64_LARGE_PAGE_SIZE, NULL, &vregion);
         if (err_is_fail(err)) {
             debug_printf("vspace_map: %s\n", err_getstring(err));
             return 1;
@@ -98,7 +98,7 @@ int main(void)
                 errors++;
             }
         }
-        debug_printf("4k+2M test %s\n", errors ? "FAILED" : "PASSED");
+        debug_printf("2M/2M test %s\n", errors ? "FAILED" : "PASSED");
         if (errors) {
             debug_printf("  %d errors\n", errors);
         }
@@ -133,7 +133,7 @@ int main(void)
                 errors++;
             }
         }
-        debug_printf("1G test %s\n", errors ? "FAILED" : "PASSED");
+        debug_printf("1G/1G test %s\n", errors ? "FAILED" : "PASSED");
         if (errors) {
             debug_printf("  %d errors\n", errors);
         }