Lines Matching refs:regs

201 	struct user_regs_struct regs;  in test_ptrace_syscall_restart()  local
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
211 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
212 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
213 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
214 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
215regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_ptrace_syscall_restart()
222 (unsigned long)regs.user_ip); in test_ptrace_syscall_restart()
230 regs.user_ax = regs.user_syscall_nr; in test_ptrace_syscall_restart()
231 regs.user_ip -= 2; in test_ptrace_syscall_restart()
232 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
239 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
242 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
243 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
244 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
245 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
246regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_ptrace_syscall_restart()
253 (unsigned long)regs.user_ip); in test_ptrace_syscall_restart()
255 regs.user_ax = SYS_getpid; in test_ptrace_syscall_restart()
256 regs.user_arg0 = 20; in test_ptrace_syscall_restart()
257 regs.user_arg1 = 21; in test_ptrace_syscall_restart()
258 regs.user_arg2 = 22; in test_ptrace_syscall_restart()
259 regs.user_arg3 = 23; in test_ptrace_syscall_restart()
260 regs.user_arg4 = 24; in test_ptrace_syscall_restart()
261 regs.user_arg5 = 25; in test_ptrace_syscall_restart()
262 regs.user_ip -= 2; in test_ptrace_syscall_restart()
264 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
271 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
274 if (regs.user_syscall_nr != SYS_getpid || in test_ptrace_syscall_restart()
275 regs.user_arg0 != 20 || regs.user_arg1 != 21 || regs.user_arg2 != 22 || in test_ptrace_syscall_restart()
276 regs.user_arg3 != 23 || regs.user_arg4 != 24 || regs.user_arg5 != 25) { in test_ptrace_syscall_restart()
277regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_ptrace_syscall_restart()
322 struct user_regs_struct regs; in test_restart_under_ptrace() local
331 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_restart_under_ptrace()
334 if (regs.user_syscall_nr != SYS_pause || in test_restart_under_ptrace()
335 regs.user_arg0 != 0 || regs.user_arg1 != 0 || in test_restart_under_ptrace()
336 regs.user_arg2 != 0 || regs.user_arg3 != 0 || in test_restart_under_ptrace()
337 regs.user_arg4 != 0 || regs.user_arg5 != 0) { in test_restart_under_ptrace()
338regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_restart_under_ptrace()
353 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_restart_under_ptrace()
356 if (regs.user_syscall_nr != SYS_pause || in test_restart_under_ptrace()
357 regs.user_arg0 != 0 || regs.user_arg1 != 0 || in test_restart_under_ptrace()
358 regs.user_arg2 != 0 || regs.user_arg3 != 0 || in test_restart_under_ptrace()
359 regs.user_arg4 != 0 || regs.user_arg5 != 0) { in test_restart_under_ptrace()
360regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_restart_under_ptrace()
364 (long)regs.user_ax); in test_restart_under_ptrace()
368 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_restart_under_ptrace()
391 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_restart_under_ptrace()
394 if (regs.user_syscall_nr != SYS_pause || in test_restart_under_ptrace()
395 regs.user_arg0 != 0 || regs.user_arg1 != 0 || in test_restart_under_ptrace()
396 regs.user_arg2 != 0 || regs.user_arg3 != 0 || in test_restart_under_ptrace()
397 regs.user_arg4 != 0 || regs.user_arg5 != 0) { in test_restart_under_ptrace()
398regs.user_syscall_nr, (unsigned long)regs.user_arg0, (unsigned long)regs.user_arg1, (unsigned long… in test_restart_under_ptrace()