| /xnu-12377.1.9/tests/ |
| H A D | exc_guard_helper_test.c | 165 exc_guard_helper_info_t exc_info; variable 192 if (block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ 199 T_ASSERT_EQ(exc_info.catch_count, 0, "block_raised_exc_guard_of_type(VM) with no exceptions"); 204 bool caught_exception = block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ 237 T_ASSERT_EQ(exc_info.catch_count, 2, "block_raised_exc_guard_of_type(VM) with 2 exceptions"); 238 T_ASSERT_EQ(exc_info.guard_type, GUARD_TYPE_VIRT_MEMORY, "caught exception's type"); 239 T_ASSERT_EQ(exc_info.guard_flavor, kGUARD_EXC_DEALLOC_GAP, "caught exception's flavor"); 240 T_ASSERT_EQ(exc_info.guard_payload, allocated + PAGE_SIZE, "caught exception's payload"); 255 exc_guard_helper_info_t exc_info; variable 271 if (block_raised_exc_guard_of_type(GUARD_TYPE_MACH_PORT, &exc_info, ^{ [all …]
|
| H A D | exc_guard_helper_test_unexpected.c | 84 exc_guard_helper_info_t exc_info; variable 107 if (block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{
|
| /xnu-12377.1.9/tests/vm/ |
| H A D | upl.c | 367 exc_guard_helper_info_t exc_info; variable 369 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ 375 T_ASSERT_EQ(exc_info.guard_flavor, kGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION, 377 T_ASSERT_EQ(exc_info.catch_count, 1, "Failing test should throw exactly one guard exception"); 502 exc_guard_helper_info_t exc_info; variable 504 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ 510 T_ASSERT_EQ(exc_info.guard_flavor, kGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE, 512 T_ASSERT_EQ(exc_info.catch_count, 1, "Failing test should throw exactly one guard exception"); 554 exc_guard_helper_info_t exc_info; variable 556 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ [all …]
|
| H A D | configurator_vm_deallocate.c | 52 exc_guard_helper_info_t exc_info; in do_successful_vm_deallocate_guarded() local 56 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ in do_successful_vm_deallocate_guarded() 76 exc_guard_helper_info_t exc_info; in do_vm_deallocate_holes_guarded() local 80 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ in do_vm_deallocate_holes_guarded() 93 if (exc_info.catch_count != 1) { in do_vm_deallocate_holes_guarded() 94 T_EXPECT_EQ(exc_info.catch_count, 1, "caught exception count"); in do_vm_deallocate_holes_guarded() 97 if (exc_info.guard_flavor != kGUARD_EXC_DEALLOC_GAP) { in do_vm_deallocate_holes_guarded() 98 T_EXPECT_EQ(exc_info.guard_flavor, kGUARD_EXC_DEALLOC_GAP, "caught exception flavor"); in do_vm_deallocate_holes_guarded()
|
| H A D | configurator_mmap.c | 165 exc_guard_helper_info_t exc_info; in call_mmap_anon_fixed_and_expect_ENOMEM() local 167 block_raised_exc_guard_of_type(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ in call_mmap_anon_fixed_and_expect_ENOMEM()
|
| H A D | configurator_vm_allocate.c | 115 exc_guard_helper_info_t exc_info; in call_vm_allocate_and_expect_result() local 117 block_raised_exc_guard_of_type_ignoring_translated(GUARD_TYPE_VIRT_MEMORY, &exc_info, ^{ in call_vm_allocate_and_expect_result()
|
| /xnu-12377.1.9/osfmk/kdp/ml/arm/ |
| H A D | kdp_machdep.c | 93 rq->exc_info[0].cpu = 0; in kdp_exception() 94 rq->exc_info[0].exception = exception; in kdp_exception() 95 rq->exc_info[0].code = code; in kdp_exception() 96 rq->exc_info[0].subcode = subcode; in kdp_exception()
|
| /xnu-12377.1.9/osfmk/kdp/ml/x86_64/ |
| H A D | kdp_machdep.c | 87 rq->exc_info[0].cpu = 0; in kdp_exception() 88 rq->exc_info[0].exception = exception; in kdp_exception() 89 rq->exc_info[0].code = code; in kdp_exception() 90 rq->exc_info[0].subcode = subcode; in kdp_exception()
|
| /xnu-12377.1.9/osfmk/kdp/ |
| H A D | kdp_protocol.h | 586 kdp_exc_info_t exc_info[0]; member
|