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