Home
last modified time | relevance | path

Searched refs:subcode (Results 1 – 25 of 31) sorted by relevance

12

/xnu-11215/osfmk/kern/
H A Dexc_resource.h99 #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 Dexception.h87 mach_exception_data_type_t code, mach_exception_data_type_t subcode, const bool fatal);
H A Dthread.c574 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 Ddebug.c1342 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 Ddebug.h842 void handle_debugger_trap(unsigned int exception, unsigned int code, unsigned int subcode, void *st…
/xnu-11215/bsd/uxkern/
H A Dux_exception.c58 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 Dkdp_machdep.c75 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 Dux_exception.h64 mach_exception_subcode_t subcode);
69 mach_exception_subcode_t subcode);
H A Dfile.h104 void generate_file_permissions_guard_exception(unsigned int code_target, int64_t subcode);
H A Dkern_debug.h126 …ll_guard_ast(thread_t thread, mach_exception_data_type_t code, mach_exception_data_type_t subcode);
/xnu-11215/bsd/kern/
H A Dkern_debug.c155 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 Dkern_guarded.c211 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 Dkern_exit.c182 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 Dtrap.c1024 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 Dtrap_internal.h75 mach_exception_subcode_t subcode);
/xnu-11215/osfmk/kdp/
H A Dkdp.h39 unsigned int subcode,
H A Dkdp_udp.c1318 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 Dkdp_protocol.h580 uint32_t subcode; member
/xnu-11215/osfmk/kdp/ml/arm/
H A Dkdp_machdep.c76 …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 Dmach_port.c2437 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 Dtask_corpse.h101 mach_exception_data_type_t subcode,
H A Dcorpse.c185 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 Dmac_mach_internal.h72 int mac_do_machexc(int64_t code, int64_t subcode, uint32_t flags __unused);
H A Dmac_base.c1701 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 Dvm_reclaim.c72 …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()

12