Lines Matching refs:tsk
185 do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str, in do_trap_no_signal() argument
203 tsk->thread.error_code = error_code; in do_trap_no_signal()
204 tsk->thread.trap_nr = trapnr; in do_trap_no_signal()
248 struct task_struct *tsk = current; in do_trap() local
251 if (!do_trap_no_signal(tsk, trapnr, str, regs, error_code)) in do_trap()
262 tsk->thread.error_code = error_code; in do_trap()
263 tsk->thread.trap_nr = trapnr; in do_trap()
266 if (show_unhandled_signals && unhandled_signal(tsk, signr) && in do_trap()
269 tsk->comm, tsk->pid, str, in do_trap()
276 force_sig_info(signr, info ?: SEND_SIG_PRIV, tsk); in do_trap()
315 struct task_struct *tsk = current; in do_double_fault() local
347 tsk->thread.error_code = error_code; in do_double_fault()
348 tsk->thread.trap_nr = X86_TRAP_DF; in do_double_fault()
443 struct task_struct *tsk; in do_general_protection() local
454 tsk = current; in do_general_protection()
459 tsk->thread.error_code = error_code; in do_general_protection()
460 tsk->thread.trap_nr = X86_TRAP_GP; in do_general_protection()
467 tsk->thread.error_code = error_code; in do_general_protection()
468 tsk->thread.trap_nr = X86_TRAP_GP; in do_general_protection()
470 if (show_unhandled_signals && unhandled_signal(tsk, SIGSEGV) && in do_general_protection()
473 tsk->comm, task_pid_nr(tsk), in do_general_protection()
479 force_sig_info(SIGSEGV, SEND_SIG_PRIV, tsk); in do_general_protection()
600 struct task_struct *tsk = current; in do_debug() local
630 clear_tsk_thread_flag(tsk, TIF_BLOCKSTEP); in do_debug()
633 tsk->thread.debugreg6 = dr6; in do_debug()
669 tsk->thread.debugreg6 &= ~DR_STEP; in do_debug()
670 set_tsk_thread_flag(tsk, TIF_SINGLESTEP); in do_debug()
673 si_code = get_si_code(tsk->thread.debugreg6); in do_debug()
674 if (tsk->thread.debugreg6 & (DR_STEP | DR_TRAP_BITS) || user_icebp) in do_debug()
675 send_sigtrap(tsk, regs, error_code, si_code); in do_debug()