Lines Matching defs:thread
12 struct pt_regs *regs = task->thread.regs;
23 struct pt_regs *regs = task->thread.regs;
34 struct pt_regs *regs = task->thread.regs;
72 dabr_fake = ((child->thread.hw_brk[0].address & (~HW_BRK_TYPE_DABR)) |
73 (child->thread.hw_brk[0].type & HW_BRK_TYPE_DABR));
86 struct thread_struct *thread = &task->thread;
125 bp = thread->ptrace_bps[0];
129 thread->ptrace_bps[0] = NULL;
146 thread->ptrace_bps[0] = bp;
147 thread->hw_brk[0] = hw_brk;
158 thread->ptrace_bps[0] = bp = register_user_hw_breakpoint(&attr,
161 thread->ptrace_bps[0] = NULL;
169 task->thread.hw_brk[0] = hw_brk;
174 static int find_empty_ptrace_bp(struct thread_struct *thread)
179 if (!thread->ptrace_bps[i])
186 static int find_empty_hw_brk(struct thread_struct *thread)
191 if (!thread->hw_brk[i].address)
202 struct thread_struct *thread = &child->thread;
237 i = find_empty_ptrace_bp(thread);
248 thread->ptrace_bps[i] = bp;
250 thread->ptrace_bps[i] = NULL;
260 i = find_empty_hw_brk(&child->thread);
267 child->thread.hw_brk[i] = brk;
276 struct thread_struct *thread = &child->thread;
283 bp = thread->ptrace_bps[data - 1];
286 thread->ptrace_bps[data - 1] = NULL;
292 if (!(child->thread.hw_brk[data - 1].flags & HW_BRK_FLAG_DISABLED) &&
293 child->thread.hw_brk[data - 1].address == 0)
296 child->thread.hw_brk[data - 1].address = 0;
297 child->thread.hw_brk[data - 1].type = 0;
298 child->thread.hw_brk[data - 1].flags = 0;