Lines Matching refs:tsk
614 ptrace_register_breakpoint(struct task_struct *tsk, int len, int type, in ptrace_register_breakpoint() argument
628 NULL, tsk); in ptrace_register_breakpoint()
647 static int ptrace_write_dr7(struct task_struct *tsk, unsigned long data) in ptrace_write_dr7() argument
649 struct thread_struct *thread = &tsk->thread; in ptrace_write_dr7()
668 bp = ptrace_register_breakpoint(tsk, in ptrace_write_dr7()
698 static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n) in ptrace_get_debugreg() argument
700 struct thread_struct *thread = &tsk->thread; in ptrace_get_debugreg()
716 static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, in ptrace_set_breakpoint_addr() argument
719 struct thread_struct *t = &tsk->thread; in ptrace_set_breakpoint_addr()
735 bp = ptrace_register_breakpoint(tsk, in ptrace_set_breakpoint_addr()
755 static int ptrace_set_debugreg(struct task_struct *tsk, int n, in ptrace_set_debugreg() argument
758 struct thread_struct *thread = &tsk->thread; in ptrace_set_debugreg()
763 rc = ptrace_set_breakpoint_addr(tsk, n, val); in ptrace_set_debugreg()
768 rc = ptrace_write_dr7(tsk, val); in ptrace_set_debugreg()
1407 static void fill_sigtrap_info(struct task_struct *tsk, in fill_sigtrap_info() argument
1412 tsk->thread.trap_nr = X86_TRAP_DB; in fill_sigtrap_info()
1413 tsk->thread.error_code = error_code; in fill_sigtrap_info()
1421 void user_single_step_siginfo(struct task_struct *tsk, in user_single_step_siginfo() argument
1425 fill_sigtrap_info(tsk, regs, 0, TRAP_BRKPT, info); in user_single_step_siginfo()
1428 void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, in send_sigtrap() argument
1433 fill_sigtrap_info(tsk, regs, error_code, si_code, &info); in send_sigtrap()
1435 force_sig_info(SIGTRAP, &info, tsk); in send_sigtrap()