Lines Matching refs:tsk

114 void flush_ptrace_hw_breakpoint(struct task_struct *tsk)  in flush_ptrace_hw_breakpoint()  argument
117 struct thread_struct *t = &tsk->thread; in flush_ptrace_hw_breakpoint()
134 void ptrace_hw_copy_thread(struct task_struct *tsk) in ptrace_hw_copy_thread() argument
136 memset(&tsk->thread.debug, 0, sizeof(struct debug_info)); in ptrace_hw_copy_thread()
140 struct task_struct *tsk, in ptrace_hbp_get_event() argument
148 bp = tsk->thread.debug.hbp_break[idx]; in ptrace_hbp_get_event()
152 bp = tsk->thread.debug.hbp_watch[idx]; in ptrace_hbp_get_event()
160 struct task_struct *tsk, in ptrace_hbp_set_event() argument
169 tsk->thread.debug.hbp_break[idx] = bp; in ptrace_hbp_set_event()
175 tsk->thread.debug.hbp_watch[idx] = bp; in ptrace_hbp_set_event()
185 struct task_struct *tsk, in ptrace_hbp_create() argument
214 bp = register_user_hw_breakpoint(&attr, ptrace_hbptriggered, NULL, tsk); in ptrace_hbp_create()
218 err = ptrace_hbp_set_event(note_type, tsk, idx, bp); in ptrace_hbp_create()
283 struct task_struct *tsk, in ptrace_hbp_get_ctrl() argument
287 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_ctrl()
297 struct task_struct *tsk, in ptrace_hbp_get_addr() argument
301 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_addr()
311 struct task_struct *tsk, in ptrace_hbp_get_initialised_bp() argument
314 struct perf_event *bp = ptrace_hbp_get_event(note_type, tsk, idx); in ptrace_hbp_get_initialised_bp()
317 bp = ptrace_hbp_create(note_type, tsk, idx); in ptrace_hbp_get_initialised_bp()
323 struct task_struct *tsk, in ptrace_hbp_set_ctrl() argument
332 bp = ptrace_hbp_get_initialised_bp(note_type, tsk, idx); in ptrace_hbp_set_ctrl()
348 struct task_struct *tsk, in ptrace_hbp_set_addr() argument
356 bp = ptrace_hbp_get_initialised_bp(note_type, tsk, idx); in ptrace_hbp_set_addr()
941 static int compat_ptrace_read_user(struct task_struct *tsk, compat_ulong_t off, in compat_ptrace_read_user() argument
950 tmp = tsk->mm->start_code; in compat_ptrace_read_user()
952 tmp = tsk->mm->start_data; in compat_ptrace_read_user()
954 tmp = tsk->mm->end_code; in compat_ptrace_read_user()
956 return copy_regset_to_user(tsk, &user_aarch32_view, in compat_ptrace_read_user()
967 static int compat_ptrace_write_user(struct task_struct *tsk, compat_ulong_t off, in compat_ptrace_write_user() argument
980 ret = copy_regset_from_user(tsk, &user_aarch32_view, in compat_ptrace_write_user()
1026 struct task_struct *tsk, in compat_ptrace_hbp_get() argument
1036 err = ptrace_hbp_get_addr(note_type, tsk, idx, &addr); in compat_ptrace_hbp_get()
1039 err = ptrace_hbp_get_ctrl(note_type, tsk, idx, &ctrl); in compat_ptrace_hbp_get()
1047 struct task_struct *tsk, in compat_ptrace_hbp_set() argument
1058 err = ptrace_hbp_set_addr(note_type, tsk, idx, addr); in compat_ptrace_hbp_set()
1061 err = ptrace_hbp_set_ctrl(note_type, tsk, idx, ctrl); in compat_ptrace_hbp_set()
1067 static int compat_ptrace_gethbpregs(struct task_struct *tsk, compat_long_t num, in compat_ptrace_gethbpregs() argument
1077 ret = compat_ptrace_hbp_get(NT_ARM_HW_WATCH, tsk, num, &kdata); in compat_ptrace_gethbpregs()
1083 ret = compat_ptrace_hbp_get(NT_ARM_HW_BREAK, tsk, num, &kdata); in compat_ptrace_gethbpregs()
1093 static int compat_ptrace_sethbpregs(struct task_struct *tsk, compat_long_t num, in compat_ptrace_sethbpregs() argument
1109 ret = compat_ptrace_hbp_set(NT_ARM_HW_WATCH, tsk, num, &kdata); in compat_ptrace_sethbpregs()
1111 ret = compat_ptrace_hbp_set(NT_ARM_HW_BREAK, tsk, num, &kdata); in compat_ptrace_sethbpregs()