Lines Matching refs:thread
12 struct pt_regs *regs = task->thread.regs; in user_enable_single_step()
21 struct pt_regs *regs = task->thread.regs; in user_enable_block_step()
30 struct pt_regs *regs = task->thread.regs; in user_disable_single_step()
68 dabr_fake = ((child->thread.hw_brk[0].address & (~HW_BRK_TYPE_DABR)) | in ptrace_get_debugreg()
69 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR)); in ptrace_get_debugreg()
82 struct thread_struct *thread = &task->thread; in ptrace_set_debugreg() local
121 bp = thread->ptrace_bps[0]; in ptrace_set_debugreg()
125 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
142 thread->ptrace_bps[0] = bp; in ptrace_set_debugreg()
143 thread->hw_brk[0] = hw_brk; in ptrace_set_debugreg()
154 thread->ptrace_bps[0] = bp = register_user_hw_breakpoint(&attr, in ptrace_set_debugreg()
157 thread->ptrace_bps[0] = NULL; in ptrace_set_debugreg()
165 task->thread.hw_brk[0] = hw_brk; in ptrace_set_debugreg()
170 static int find_empty_ptrace_bp(struct thread_struct *thread) in find_empty_ptrace_bp() argument
175 if (!thread->ptrace_bps[i]) in find_empty_ptrace_bp()
182 static int find_empty_hw_brk(struct thread_struct *thread) in find_empty_hw_brk() argument
187 if (!thread->hw_brk[i].address) in find_empty_hw_brk()
198 struct thread_struct *thread = &child->thread; in ppc_set_hwdebug() local
233 i = find_empty_ptrace_bp(thread); in ppc_set_hwdebug()
244 thread->ptrace_bps[i] = bp; in ppc_set_hwdebug()
246 thread->ptrace_bps[i] = NULL; in ppc_set_hwdebug()
256 i = find_empty_hw_brk(&child->thread); in ppc_set_hwdebug()
263 child->thread.hw_brk[i] = brk; in ppc_set_hwdebug()
272 struct thread_struct *thread = &child->thread; in ppc_del_hwdebug() local
279 bp = thread->ptrace_bps[data - 1]; in ppc_del_hwdebug()
282 thread->ptrace_bps[data - 1] = NULL; in ppc_del_hwdebug()
288 if (!(child->thread.hw_brk[data - 1].flags & HW_BRK_FLAG_DISABLED) && in ppc_del_hwdebug()
289 child->thread.hw_brk[data - 1].address == 0) in ppc_del_hwdebug()
292 child->thread.hw_brk[data - 1].address = 0; in ppc_del_hwdebug()
293 child->thread.hw_brk[data - 1].type = 0; in ppc_del_hwdebug()
294 child->thread.hw_brk[data - 1].flags = 0; in ppc_del_hwdebug()