1 #include <stdio.h> 2 #include <errno.h> 3 #include <string.h> 4 #include <unistd.h> 5 #include <sys/mman.h> 6 7 #include <darwintest.h> 8 #include <darwintest_utils.h> 9 10 #include "jumbo_va_spaces_common.h" 11 12 T_GLOBAL_META( 13 T_META_NAMESPACE("xnu.vm"), 14 T_META_RADAR_COMPONENT_NAME("xnu"), 15 T_META_RADAR_COMPONENT_VERSION("VM"), 16 T_META_RUN_CONCURRENTLY(true)); 17 18 T_DECL(TESTNAME, 19 "Verify that a required entitlement is present in order to be granted an extra-large " 20 "VA space on arm64", 21 T_META_CHECK_LEAKS(false)) 22 { 23 if (!dt_64_bit_kernel()) { 24 T_SKIP("This test is only applicable to arm64"); 25 } 26 27 #if defined(ENTITLED) 28 verify_jumbo_va(true); 29 #else 30 verify_jumbo_va(false); 31 #endif 32 } 33