Lines Matching refs:tsk
612 ptrace_register_breakpoint(struct task_struct *tsk, int len, int type, in ptrace_register_breakpoint() argument
626 NULL, tsk); in ptrace_register_breakpoint()
645 static int ptrace_write_dr7(struct task_struct *tsk, unsigned long data) in ptrace_write_dr7() argument
647 struct thread_struct *thread = &tsk->thread; in ptrace_write_dr7()
666 bp = ptrace_register_breakpoint(tsk, in ptrace_write_dr7()
696 static unsigned long ptrace_get_debugreg(struct task_struct *tsk, int n) in ptrace_get_debugreg() argument
698 struct thread_struct *thread = &tsk->thread; in ptrace_get_debugreg()
714 static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr, in ptrace_set_breakpoint_addr() argument
717 struct thread_struct *t = &tsk->thread; in ptrace_set_breakpoint_addr()
733 bp = ptrace_register_breakpoint(tsk, in ptrace_set_breakpoint_addr()
753 static int ptrace_set_debugreg(struct task_struct *tsk, int n, in ptrace_set_debugreg() argument
756 struct thread_struct *thread = &tsk->thread; in ptrace_set_debugreg()
761 rc = ptrace_set_breakpoint_addr(tsk, n, val); in ptrace_set_debugreg()
766 rc = ptrace_write_dr7(tsk, val); in ptrace_set_debugreg()
1415 static void fill_sigtrap_info(struct task_struct *tsk, in fill_sigtrap_info() argument
1420 tsk->thread.trap_nr = X86_TRAP_DB; in fill_sigtrap_info()
1421 tsk->thread.error_code = error_code; in fill_sigtrap_info()
1429 void user_single_step_siginfo(struct task_struct *tsk, in user_single_step_siginfo() argument
1433 fill_sigtrap_info(tsk, regs, 0, TRAP_BRKPT, info); in user_single_step_siginfo()
1436 void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, in send_sigtrap() argument
1441 fill_sigtrap_info(tsk, regs, error_code, si_code, &info); in send_sigtrap()
1443 force_sig_info(SIGTRAP, &info, tsk); in send_sigtrap()