| /xnu-11215/osfmk/kern/ |
| H A D | exc_resource.h | 99 #define EXC_RESOURCE_CPUMONITOR_DECODE_PERCENTAGE_OBSERVED(subcode) \ argument 100 ((subcode) & 0x7FULL) 134 #define EXC_RESOURCE_CPUMONITOR_DECODE_WAKEUPS_OBSERVED(subcode) \ argument 135 ((subcode) & 0xFFFFFULL) 198 #define EXC_RESOURCE_IO_OBSERVED(subcode) \ argument 199 ((subcode) & 0x7FFFULL) 262 #define EXC_RESOURCE_CPUMONITOR_ENCODE_WAKEUPS_OBSERVED(subcode, num) \ argument 263 ((subcode) |= ((uint64_t)(num) & 0xFFFFFULL)) 274 #define EXC_RESOURCE_IO_ENCODE_OBSERVED(subcode, num) \ argument 275 ((subcode) |= (((uint64_t)(num) & 0x7FFFULL)))
|
| H A D | exception.h | 87 mach_exception_data_type_t code, mach_exception_data_type_t subcode, const bool fatal);
|
| H A D | thread.c | 574 mach_exception_data_type_t subcode = 0; in thread_terminate_self() local 602 subcode = proc_encode_exit_exception_code(bsd_info); in thread_terminate_self() 2468 thread->guard_exc_info.subcode = subcode; in thread_guard_violation() 2495 subcode = t->guard_exc_info.subcode; in guard_ast() local 2498 t->guard_exc_info.subcode = 0; in guard_ast() 2506 mach_port_guard_ast(t, code, subcode); in guard_ast() 2509 fd_guard_ast(t, code, subcode); in guard_ast() 2512 vn_guard_ast(t, code, subcode); in guard_ast() 2515 virt_memory_guard_ast(t, code, subcode); in guard_ast() 2519 rejected_syscall_guard_ast(t, code, subcode); in guard_ast() [all …]
|
| H A D | debug.c | 1342 debugger_collect_diagnostics(unsigned int exception, unsigned int code, unsigned int subcode, void … argument 1357 kdp_raise_exception(exception, code, subcode, state); 1563 kdp_raise_exception(exception, code, subcode, state); 1619 handle_debugger_trap(unsigned int exception, unsigned int code, unsigned int subcode, void *state) argument 1697 kdp_raise_exception(exception, code, subcode, state); 1714 debugger_collect_diagnostics(exception, code, subcode, state);
|
| H A D | debug.h | 842 void handle_debugger_trap(unsigned int exception, unsigned int code, unsigned int subcode, void *st…
|
| /xnu-11215/bsd/uxkern/ |
| H A D | ux_exception.c | 58 mach_exception_subcode_t subcode) in ux_exception() argument 63 if ((machine_signal = machine_exception(exception, code, subcode)) != 0) { in ux_exception() 117 mach_exception_subcode_t subcode) in handle_ux_exception() argument 128 int ux_signal = ux_exception(exception, code, subcode); in handle_ux_exception() 143 user_addr_t sp = subcode; in handle_ux_exception() 179 ut->uu_subcode = subcode; in handle_ux_exception()
|
| /xnu-11215/osfmk/kdp/ml/x86_64/ |
| H A D | kdp_machdep.c | 75 unsigned int subcode in kdp_exception() argument 90 rq->exc_info[0].subcode = subcode; in kdp_exception() 357 unsigned int exception, code, subcode = 0; in kdp_i386_trap() local 400 subcode = (unsigned int)saved_state->isf.err; in kdp_i386_trap() 406 subcode = (unsigned int)saved_state->isf.err; in kdp_i386_trap() 412 subcode = (unsigned int)saved_state->isf.err; in kdp_i386_trap() 418 subcode = (unsigned int)va; in kdp_i386_trap() 443 handle_debugger_trap(exception, code, subcode, saved_state); in kdp_i386_trap()
|
| /xnu-11215/bsd/sys/ |
| H A D | ux_exception.h | 64 mach_exception_subcode_t subcode); 69 mach_exception_subcode_t subcode);
|
| H A D | file.h | 104 void generate_file_permissions_guard_exception(unsigned int code_target, int64_t subcode);
|
| H A D | kern_debug.h | 126 …ll_guard_ast(thread_t thread, mach_exception_data_type_t code, mach_exception_data_type_t subcode);
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_debug.c | 155 mach_exception_subcode_t subcode = in debug_syscall_rejection_handle() local 159 task_violated_guard(code, subcode, NULL, TRUE); in debug_syscall_rejection_handle() 161 thread_guard_violation(current_thread(), code, subcode, fatal); in debug_syscall_rejection_handle() 176 mach_exception_data_type_t subcode) in rejected_syscall_guard_ast() argument 190 .mx_subcode = subcode, in rejected_syscall_guard_ast() 193 if (task_exception_notify(EXC_GUARD, code, subcode, fatal) == KERN_SUCCESS) { in rejected_syscall_guard_ast()
|
| H A D | kern_guarded.c | 211 mach_exception_subcode_t subcode = fp->fp_guard->fpg_guard; in fp_guard_exception() local 216 thread_guard_violation(t, code, subcode, TRUE); in fp_guard_exception() 227 mach_exception_subcode_t subcode) in fd_guard_ast() argument 241 .mx_subcode = subcode, in fd_guard_ast() 1276 mach_exception_subcode_t subcode; in vng_guard_violation() local 1282 subcode = vgi->vgi_guard; in vng_guard_violation() 1297 task_violated_guard(code, subcode, r, TRUE); /* not fatal */ in vng_guard_violation() 1305 thread_guard_violation(t, code, subcode, TRUE); in vng_guard_violation() 1329 thread_guard_violation(t, code, subcode, FALSE); in generate_file_permissions_guard_exception() 1373 .mx_subcode = subcode, in vn_guard_ast() [all …]
|
| H A D | kern_exit.c | 182 mach_exception_data_type_t subcode, uint64_t *udata_buffer, 427 populate_corpse_crashinfo(p, corpse_task, &rup, code, subcode, in gather_populate_corpse_crashinfo() 435 mach_exception_data_type_t subcode_update = *subcode; in proc_update_corpse_exception_codes() 457 *subcode = subcode_update; in proc_update_corpse_exception_codes() 464 uint64_t subcode = 0; in proc_encode_exit_exception_code() local 473 return (mach_exception_data_type_t)subcode; in proc_encode_exit_exception_code() 484 exc_codes[1] = subcode; in populate_corpse_crashinfo() 1875 mach_exception_data_type_t code = 0, subcode = 0; in proc_prepareexit() local 1928 subcode = ut->uu_subcode; in proc_prepareexit() 2082 proc_update_corpse_exception_codes(p, &code, &subcode); in proc_prepareexit() [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | trap.c | 1024 mach_exception_subcode_t subcode; in user_trap() local 1115 subcode = 0; in user_trap() 1201 subcode = 0; in user_trap() 1207 subcode = err; in user_trap() 1213 subcode = err; in user_trap() 1219 subcode = err; in user_trap() 1239 subcode = err; in user_trap() 1294 subcode = vaddr; in user_trap() 1588 mach_exception_subcode_t subcode) in i386_exception() argument 1593 exc, code, subcode); in i386_exception() [all …]
|
| H A D | trap_internal.h | 75 mach_exception_subcode_t subcode);
|
| /xnu-11215/osfmk/kdp/ |
| H A D | kdp.h | 39 unsigned int subcode,
|
| H A D | kdp_udp.c | 1318 unsigned int subcode in kdp_send_exception() argument 1332 (unsigned int)subcode); in kdp_send_exception() 1369 unsigned int subcode, in kdp_debugger_loop() argument 1385 exception, code, subcode); in kdp_debugger_loop() 1430 kdp_send_exception(exception, code, subcode); in kdp_debugger_loop() 2401 __unused unsigned int subcode, in kdp_raise_exception() argument 2409 unsigned int subcode, in kdp_raise_exception() 2419 kdp_debugger_loop(exception, code, subcode, saved_state); in kdp_raise_exception()
|
| H A D | kdp_protocol.h | 580 uint32_t subcode; member
|
| /xnu-11215/osfmk/kdp/ml/arm/ |
| H A D | kdp_machdep.c | 76 …len, unsigned short * remote_port, unsigned int exception, unsigned int code, unsigned int subcode) in kdp_exception() argument 96 rq->exc_info[0].subcode = subcode; in kdp_exception()
|
| /xnu-11215/osfmk/ipc/ |
| H A D | mach_port.c | 2437 mach_exception_subcode_t subcode = (uint64_t)portguard; in mach_port_guard_exception() local 2447 thread_guard_violation(t, code, subcode, fatal); in mach_port_guard_exception() 2515 mach_exception_data_type_t code, mach_exception_data_type_t subcode) in mach_port_guard_ast() argument 2538 .mx_subcode = subcode, in mach_port_guard_ast() 2541 if (task_exception_notify(EXC_GUARD, code, subcode, fatal) == KERN_SUCCESS) { in mach_port_guard_ast() 2570 sync_exception_result = task_exception_notify(EXC_GUARD, code, subcode, fatal); in mach_port_guard_ast() 2576 task_violated_guard(code, subcode, NULL, TRUE); in mach_port_guard_ast() 2589 .mx_subcode = subcode in mach_port_guard_ast() 2601 task_violated_guard(code, subcode, NULL, TRUE); in mach_port_guard_ast()
|
| /xnu-11215/osfmk/corpses/ |
| H A D | task_corpse.h | 101 mach_exception_data_type_t subcode,
|
| H A D | corpse.c | 185 mach_exception_data_type_t code, mach_exception_data_type_t subcode, 664 mach_exception_data_type_t subcode, in task_generate_corpse_internal() argument 784 code, subcode, udata_buffer, num_udata, reason, etype); in task_generate_corpse_internal()
|
| /xnu-11215/security/ |
| H A D | mac_mach_internal.h | 72 int mac_do_machexc(int64_t code, int64_t subcode, uint32_t flags __unused);
|
| H A D | mac_base.c | 1701 mac_do_machexc(int64_t code, int64_t subcode, uint32_t flags) in mac_do_machexc() argument 1719 codes[1] = (mach_exception_data_type_t)subcode; in mac_do_machexc()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_reclaim.c | 72 …with_guard_exception(void *p, mach_exception_data_type_t code, mach_exception_data_type_t subcode); 602 mach_exception_data_type_t subcode) in reclaim_kill_with_reason() argument 632 panic("vm_reclaim: About to kill %p due to %d with subcode %lld\n", task, reason, subcode); in reclaim_kill_with_reason() 677 .mx_subcode = subcode in reclaim_kill_with_reason()
|