Lines Matching refs:regs

56 	struct pt_regs regs;  in test_ptrace_syscall_restart()  local
96 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
103 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
104 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
105 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
106 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
108 (unsigned long)regs.user_syscall_nr, in test_ptrace_syscall_restart()
109 (unsigned long)regs.user_arg0, in test_ptrace_syscall_restart()
110 (unsigned long)regs.user_arg1, in test_ptrace_syscall_restart()
111 (unsigned long)regs.user_arg2, in test_ptrace_syscall_restart()
112 (unsigned long)regs.user_arg3, in test_ptrace_syscall_restart()
113 (unsigned long)regs.user_arg4, in test_ptrace_syscall_restart()
114 (unsigned long)regs.user_arg5); in test_ptrace_syscall_restart()
120 (unsigned long)regs.user_ip); in test_ptrace_syscall_restart()
126 regs.user_ip -= 4; in test_ptrace_syscall_restart()
127 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
134 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
137 if (regs.user_syscall_nr != SYS_gettid || in test_ptrace_syscall_restart()
138 regs.user_arg0 != 10 || regs.user_arg1 != 11 || in test_ptrace_syscall_restart()
139 regs.user_arg2 != 12 || regs.user_arg3 != 13 || in test_ptrace_syscall_restart()
140 regs.user_arg4 != 14 || regs.user_arg5 != 15) { in test_ptrace_syscall_restart()
142 (unsigned long)regs.user_syscall_nr, in test_ptrace_syscall_restart()
143 (unsigned long)regs.user_arg0, in test_ptrace_syscall_restart()
144 (unsigned long)regs.user_arg1, in test_ptrace_syscall_restart()
145 (unsigned long)regs.user_arg2, in test_ptrace_syscall_restart()
146 (unsigned long)regs.user_arg3, in test_ptrace_syscall_restart()
147 (unsigned long)regs.user_arg4, in test_ptrace_syscall_restart()
148 (unsigned long)regs.user_arg5); in test_ptrace_syscall_restart()
155 (unsigned long)regs.user_ip); in test_ptrace_syscall_restart()
161 regs.user_syscall_nr = SYS_getpid; in test_ptrace_syscall_restart()
162 regs.user_arg0 = 20; in test_ptrace_syscall_restart()
163 regs.user_arg1 = 21; in test_ptrace_syscall_restart()
164 regs.user_arg2 = 22; in test_ptrace_syscall_restart()
165 regs.user_arg3 = 23; in test_ptrace_syscall_restart()
166 regs.user_arg4 = 24; in test_ptrace_syscall_restart()
167 regs.user_arg5 = 25; in test_ptrace_syscall_restart()
168 regs.user_ip -= 4; in test_ptrace_syscall_restart()
170 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
177 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
185 if (regs.user_syscall_nr != SYS_getpid in test_ptrace_syscall_restart()
186 || regs.user_arg0 != 20 || regs.user_arg1 != 21 in test_ptrace_syscall_restart()
187 || regs.user_arg2 != 22 || regs.user_arg3 != 23 in test_ptrace_syscall_restart()
188 || regs.user_arg4 != 24 || regs.user_arg5 != 25) { in test_ptrace_syscall_restart()
191 (unsigned long)regs.user_syscall_nr, in test_ptrace_syscall_restart()
192 (unsigned long)regs.user_arg0, in test_ptrace_syscall_restart()
193 (unsigned long)regs.user_arg1, in test_ptrace_syscall_restart()
194 (unsigned long)regs.user_arg2, in test_ptrace_syscall_restart()
195 (unsigned long)regs.user_arg3, in test_ptrace_syscall_restart()
196 (unsigned long)regs.user_arg4, in test_ptrace_syscall_restart()
197 (unsigned long)regs.user_arg5); in test_ptrace_syscall_restart()