Lines Matching refs:tsk
203 void ptrace_break(struct task_struct *tsk, struct pt_regs *regs) in ptrace_break() argument
212 force_sig_info(SIGTRAP, &info, tsk); in ptrace_break()
259 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, in ptrace_read_user() argument
269 tmp = tsk->mm->start_code; in ptrace_read_user()
271 tmp = tsk->mm->start_data; in ptrace_read_user()
273 tmp = tsk->mm->end_code; in ptrace_read_user()
275 tmp = get_user_reg(tsk, off >> 2); in ptrace_read_user()
286 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, in ptrace_write_user() argument
295 return put_user_reg(tsk, off >> 2, val); in ptrace_write_user()
303 static int ptrace_getwmmxregs(struct task_struct *tsk, void __user *ufp) in ptrace_getwmmxregs() argument
305 struct thread_info *thread = task_thread_info(tsk); in ptrace_getwmmxregs()
317 static int ptrace_setwmmxregs(struct task_struct *tsk, void __user *ufp) in ptrace_setwmmxregs() argument
319 struct thread_info *thread = task_thread_info(tsk); in ptrace_setwmmxregs()
334 static int ptrace_getcrunchregs(struct task_struct *tsk, void __user *ufp) in ptrace_getcrunchregs() argument
336 struct thread_info *thread = task_thread_info(tsk); in ptrace_getcrunchregs()
346 static int ptrace_setcrunchregs(struct task_struct *tsk, void __user *ufp) in ptrace_setcrunchregs() argument
348 struct thread_info *thread = task_thread_info(tsk); in ptrace_setcrunchregs()
413 void clear_ptrace_hw_breakpoint(struct task_struct *tsk) in clear_ptrace_hw_breakpoint() argument
415 memset(tsk->thread.debug.hbp, 0, sizeof(tsk->thread.debug.hbp)); in clear_ptrace_hw_breakpoint()
422 void flush_ptrace_hw_breakpoint(struct task_struct *tsk) in flush_ptrace_hw_breakpoint() argument
425 struct thread_struct *t = &tsk->thread; in flush_ptrace_hw_breakpoint()
456 static struct perf_event *ptrace_hbp_create(struct task_struct *tsk, int type) in ptrace_hbp_create() argument
469 tsk); in ptrace_hbp_create()
472 static int ptrace_gethbpregs(struct task_struct *tsk, long num, in ptrace_gethbpregs() argument
489 bp = tsk->thread.debug.hbp[idx]; in ptrace_gethbpregs()
518 static int ptrace_sethbpregs(struct task_struct *tsk, long num, in ptrace_sethbpregs() argument
545 bp = tsk->thread.debug.hbp[idx]; in ptrace_sethbpregs()
547 bp = ptrace_hbp_create(tsk, implied_type); in ptrace_sethbpregs()
552 tsk->thread.debug.hbp[idx] = bp; in ptrace_sethbpregs()