| /xnu-11215/tests/ |
| H A D | exc_helpers.c | 304 if (((unsigned int)behavior & ~MACH_EXCEPTION_MASK) != EXCEPTION_STATE_IDENTITY && in create_exception_port_behavior64() 305 ((unsigned int)behavior & ~MACH_EXCEPTION_MASK) != EXCEPTION_IDENTITY_PROTECTED) { in create_exception_port_behavior64() 306 T_FAIL("Passed behavior (%d) is not supported by exc_helpers.", behavior); in create_exception_port_behavior64() 309 behavior |= MACH_EXCEPTION_CODES; in create_exception_port_behavior64() 327 (exception_behavior_t)((unsigned int)behavior), in create_exception_port_behavior64() 374 if (behavior & MACH_EXCEPTION_BACKTRACE_PREFERRED) { in _run_exception_handler() 379 behavior &= ~MACH_EXCEPTION_MASK; in _run_exception_handler() 381 switch (behavior) { in _run_exception_handler() 417 void *callback, exception_behavior_t behavior, bool run_once) in run_exception_handler_behavior64() argument 419 if (((unsigned int)behavior & ~MACH_EXCEPTION_MASK) != EXCEPTION_STATE_IDENTITY && in run_exception_handler_behavior64() [all …]
|
| H A D | subsystem_root_path_helper.c | 15 char * behavior = argv[1]; in main() local 18 if (!strcmp(behavior, HELPER_BEHAVIOR_SET)) { in main() 23 } else if (!strcmp(behavior, HELPER_BEHAVIOR_NOT_SET)) { in main() 28 } else if (!strcmp(behavior, HELPER_BEHAVIOR_FORK_EXEC)) { in main() 50 } else if (!strcmp(behavior, HELPER_BEHAVIOR_SPAWN)) { in main()
|
| H A D | exc_helpers.h | 74 create_exception_port_behavior64(exception_mask_t exception_mask, exception_behavior_t behavior); 88 exception_behavior_t behavior, bool run_once);
|
| H A D | immovable_send.c | 167 exception_behavior_t behavior; variable 195 &maskCount, &handler, &behavior, &flavor);
|
| /xnu-11215/libsyscall/mach/ |
| H A D | vm_reclaim.c | 83 construct_entry(mach_vm_address_t start_addr, uint32_t size, mach_vm_reclaim_behavior_v1_t behavior) in construct_entry() argument 88 entry.behavior = behavior; in construct_entry() 111 mach_vm_reclaim_behavior_v1_t behavior, bool *should_update_kernel_accounting) in mach_vm_reclaim_mark_free() argument 115 mach_vm_reclaim_entry_v1_t entry = construct_entry(start_addr, size, behavior); in mach_vm_reclaim_mark_free() 153 mach_vm_reclaim_behavior_v1_t behavior, in mach_vm_reclaim_mark_free_with_id() argument 194 *entry = construct_entry(start_addr, size, behavior); in mach_vm_reclaim_mark_free_with_id()
|
| /xnu-11215/osfmk/mach/ |
| H A D | vm_region.h | 91 vm_behavior_t behavior; member 119 vm_behavior_t behavior; member 251 vm_behavior_t behavior; /* access behavior hint */ member 278 vm_behavior_t behavior; /* access behavior hint */ member 321 vm_behavior_t behavior; /* access behavior hint */ member
|
| H A D | vm_reclaim.h | 58 mach_vm_reclaim_behavior_v1_t behavior; member 112 mach_vm_reclaim_behavior_v1_t behavior, 137 mach_vm_reclaim_behavior_v1_t behavior,
|
| H A D | task.defs | 278 behavior : exception_behavior_t; 309 behavior : exception_behavior_t; 542 out behavior : task_exc_guard_behavior_t); 546 behavior : task_exc_guard_behavior_t); 590 behavior : task_corpse_forking_behavior_t);
|
| H A D | host_priv.defs | 246 behavior : exception_behavior_t; 271 behavior : exception_behavior_t;
|
| /xnu-11215/osfmk/kern/ |
| H A D | ipc_host.c | 140 realhost.exc_actions[i].behavior = 0; in ipc_host_init() 549 host_priv->exc_actions[i].behavior = new_behavior; in host_set_exception_ports() 633 host_priv->exc_actions[i].behavior == behaviors[j] in host_get_exception_ports() 643 behaviors[j] = host_priv->exc_actions[i].behavior; in host_get_exception_ports() 726 host_priv->exc_actions[i].behavior == behaviors[j] in host_swap_exception_ports() 736 behaviors[j] = host_priv->exc_actions[i].behavior; in host_swap_exception_ports() 743 host_priv->exc_actions[i].behavior = new_behavior; in host_swap_exception_ports()
|
| H A D | exception.c | 205 int behavior; in exception_deliver() local 255 behavior = excp->behavior; in exception_deliver() 267 code64 = (behavior & MACH_EXCEPTION_CODES); in exception_deliver() 268 behavior &= ~MACH_EXCEPTION_MASK; in exception_deliver() 294 switch (behavior) { in exception_deliver()
|
| H A D | exception.h | 48 exception_behavior_t behavior; /* exception type to raise */ member
|
| H A D | ipc_tt.c | 245 task->exc_actions[i].behavior = 0; in ipc_task_init() 4330 action->behavior = new_behavior; in thread_set_exception_ports_internal() 4453 task->exc_actions[i].behavior = new_behavior; in task_set_exception_ports() 4574 action->behavior == behaviors[j] && in thread_swap_exception_ports() 4585 behaviors[j] = action->behavior; in thread_swap_exception_ports() 4592 action->behavior = new_behavior; in thread_swap_exception_ports() 4683 task->exc_actions[i].behavior == behaviors[j] && in task_swap_exception_ports() 4693 behaviors[j] = task->exc_actions[i].behavior; in task_swap_exception_ports() 4701 task->exc_actions[i].behavior = new_behavior; in task_swap_exception_ports() 5145 hea.ea.behavior = behaviors_allowed; in task_register_hardened_exception_handler() [all …]
|
| /xnu-11215/tests/ipc/ |
| H A D | kernel_signed_pac_thread_state.c | 300 create_exception_port_behavior64(exception_mask_t exception_mask, exception_behavior_t behavior) in create_exception_port_behavior64() argument 306 if (behavior != EXCEPTION_STATE_IDENTITY && behavior != EXCEPTION_IDENTITY_PROTECTED) { in create_exception_port_behavior64() 326 (exception_behavior_t)(behavior | (exception_behavior_t)MACH_EXCEPTION_CODES), in create_exception_port_behavior64()
|
| /xnu-11215/osfmk/corpses/ |
| H A D | corpse.c | 508 exception_behavior_t behavior; in task_should_generate_lightweight_corpse() local 525 &mask, &nmasks, &exc_port, &behavior, &flavor); in task_should_generate_lightweight_corpse() 528 &mask, &nmasks, &exc_port, &behavior, &flavor); in task_should_generate_lightweight_corpse() 531 &mask, &nmasks, &exc_port, &behavior, &flavor); in task_should_generate_lightweight_corpse() 541 if (IP_VALID(exc_port) && (behavior & MACH_EXCEPTION_BACKTRACE_PREFERRED)) { in task_should_generate_lightweight_corpse() 542 assert(behavior & MACH_EXCEPTION_CODES); in task_should_generate_lightweight_corpse()
|
| /xnu-11215/tests/vm/ |
| H A D | vm_reclaim.c | 68 …uffer_v1_t ringbuffer, unsigned char val, mach_vm_reclaim_behavior_v1_t behavior, mach_vm_address_… in allocate_and_defer_free() argument 77 …idx = mach_vm_reclaim_mark_free(ringbuffer, *addr, (uint32_t) size, behavior, &should_update_kerne… in allocate_and_defer_free() 200 reuse_reclaimed_entry(mach_vm_reclaim_behavior_v1_t behavior) in reuse_reclaimed_entry() argument 210 uint64_t idx = allocate_and_defer_free(kAllocationSize, &ringbuffer, kValue, behavior, &addr); in reuse_reclaimed_entry() 218 switch (behavior) { in reuse_reclaimed_entry() 227 T_FAIL("Unexpected reclaim behavior %d", behavior); in reuse_reclaimed_entry()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_sanitize.c | 803 vm_behavior_t *behavior) in vm_sanitize_behavior() argument 805 *behavior = VM_SANITIZE_UNSAFE_UNWRAP(behavior_u); in vm_sanitize_behavior() 807 if (__improbable((*behavior > VM_BEHAVIOR_LAST_VALID) in vm_sanitize_behavior() 808 || (*behavior < 0))) { in vm_sanitize_behavior() 809 *behavior = VM_BEHAVIOR_DEFAULT; in vm_sanitize_behavior() 1283 vm_behavior_t behavior; in vm_sanitize_behavior_test() local 1289 kr = vm_sanitize_behavior(behavior_u, VM_SANITIZE_CALLER_TEST, &behavior); in vm_sanitize_behavior_test()
|
| H A D | vm_fault.c | 442 vm_behavior_t behavior) in vm_fault_is_sequential() argument 458 switch (behavior) { in vm_fault_is_sequential() 572 vm_behavior_t behavior) in vm_fault_deactivate_behind() argument 609 switch (behavior) { in vm_fault_deactivate_behind() 1921 orig_behavior = fault_info->behavior; in vm_fault_page() 1924 fault_info->behavior = VM_BEHAVIOR_RANDOM; in vm_fault_page() 1938 fault_info->behavior = orig_behavior; in vm_fault_page() 6723 .behavior = VM_BEHAVIOR_SEQUENTIAL, in vm_fault_wire() 6784 fault_info.behavior = entry->behavior; in vm_fault_unwire() 7303 fault_info_src.behavior = VM_BEHAVIOR_SEQUENTIAL; in vm_fault_copy() [all …]
|
| H A D | vm32_user.c | 570 info->behavior = info64.behavior; in vm32_vm_region_recurse()
|
| H A D | vm_reclaim.c | 998 entry->behavior); in reclaim_chunk() 1003 mach_vm_reclaim_behavior_v1_t, entry->behavior); in reclaim_chunk() 1005 switch (entry->behavior) { in reclaim_chunk() 1039 entry->behavior); in reclaim_chunk()
|
| H A D | vm_object_xnu.h | 109 vm_behavior_t behavior; member
|
| /xnu-11215/osfmk/ipc/ |
| H A D | mach_port.c | 2519 unsigned int behavior = task->task_exc_guard; in mach_port_guard_ast() local 2551 if ((behavior & TASK_EXC_GUARD_MP_DELIVER) == 0) { in mach_port_guard_ast() 2556 while (behavior & TASK_EXC_GUARD_MP_ONCE) { in mach_port_guard_ast() 2557 uint32_t new_behavior = behavior & ~TASK_EXC_GUARD_MP_DELIVER; in mach_port_guard_ast() 2559 if (OSCompareAndSwap(behavior, new_behavior, &task->task_exc_guard)) { in mach_port_guard_ast() 2562 behavior = task->task_exc_guard; in mach_port_guard_ast() 2563 if ((behavior & TASK_EXC_GUARD_MP_DELIVER) == 0) { in mach_port_guard_ast()
|
| /xnu-11215/bsd/sys/ |
| H A D | spawn_internal.h | 94 exception_behavior_t behavior; member
|
| /xnu-11215/doc/vm/ |
| H A D | sanitize.md | 56 default behavior (i.e. no rewrite, no telemetry). The overrides, if any, are set 60 behavior for binary compatibility purposes. There are two possible rewrites: 394 place to verify the desired behavior. 409 Make sure you test the platforms with unusual behavior, such as Intel 418 error code behavior then you may want to write error code compatibility
|
| /xnu-11215/makedefs/ |
| H A D | MakeInc.dir | 6 # build behavior with minimal effort while promoting code reuse.
|