Home
last modified time | relevance | path

Searched refs:exc_info (Results 1 – 9 of 9) sorted by relevance

/xnu-12377.1.9/tests/
H A Dexc_guard_helper_test.c165 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 Dexc_guard_helper_test_unexpected.c84 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 Dupl.c367 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 Dconfigurator_vm_deallocate.c52 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 Dconfigurator_mmap.c165 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 Dconfigurator_vm_allocate.c115 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 Dkdp_machdep.c93 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 Dkdp_machdep.c87 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 Dkdp_protocol.h586 kdp_exc_info_t exc_info[0]; member