• Home
  • Raw
  • Download

Lines Matching refs:pid

48 do_ptrace(unsigned long request, unsigned long pid,  in do_ptrace()  argument
51 long rc = syscall(__NR_ptrace, request, pid, addr, data); in do_ptrace()
57 test_peeksiginfo(unsigned long pid, const unsigned long bad_request) in test_peeksiginfo() argument
59 do_ptrace(PTRACE_PEEKSIGINFO, pid, 0, bad_request); in test_peeksiginfo()
61 (unsigned) pid, bad_request, errstr); in test_peeksiginfo()
73 do_ptrace(PTRACE_PEEKSIGINFO, pid, (unsigned long) psi, bad_request); in test_peeksiginfo()
76 (unsigned) pid, psi->off, psi->nr, bad_request, errstr); in test_peeksiginfo()
78 pid = fork(); in test_peeksiginfo()
79 if ((pid_t) pid < 0) in test_peeksiginfo()
82 if (!pid) { in test_peeksiginfo()
120 kill(pid, SIGKILL); in test_peeksiginfo()
134 kill(pid, SIGKILL); in test_peeksiginfo()
139 long rc = do_ptrace(PTRACE_PEEKSIGINFO, pid, in test_peeksiginfo()
144 (unsigned) pid, psi->off, psi->nr, sigs, in test_peeksiginfo()
156 (unsigned) pid, psi->off, psi->nr, in test_peeksiginfo()
157 (unsigned) pid, (unsigned) uid, in test_peeksiginfo()
158 (unsigned) pid, (unsigned) uid, in test_peeksiginfo()
159 (unsigned) pid, (unsigned) uid, in test_peeksiginfo()
163 if (do_ptrace(PTRACE_CONT, pid, 0, 0)) { in test_peeksiginfo()
165 kill(pid, SIGKILL); in test_peeksiginfo()
169 printf("ptrace(PTRACE_CONT, %ld, NULL, SIG_0) = 0\n", pid); in test_peeksiginfo()
180 const unsigned long pid = in main() local
190 do_ptrace(bad_request, pid, 0, 0); in main()
192 bad_request, (unsigned) pid, errstr); in main()
194 do_ptrace(PTRACE_PEEKDATA, pid, bad_request, bad_data); in main()
197 (unsigned) pid, bad_request, errstr); in main()
200 (unsigned) pid, bad_request, bad_data, errstr); in main()
203 do_ptrace(PTRACE_PEEKTEXT, pid, bad_request, bad_data); in main()
206 (unsigned) pid, bad_request, errstr); in main()
209 (unsigned) pid, bad_request, bad_data, errstr); in main()
212 do_ptrace(PTRACE_PEEKUSER, pid, bad_request, bad_data); in main()
215 (unsigned) pid, bad_request, errstr); in main()
218 (unsigned) pid, bad_request, bad_data, errstr); in main()
221 do_ptrace(PTRACE_POKEUSER, pid, bad_request, bad_data); in main()
223 (unsigned) pid, bad_request, bad_data, errstr); in main()
225 do_ptrace(PTRACE_ATTACH, pid, 0, 0); in main()
226 printf("ptrace(PTRACE_ATTACH, %u) = %s\n", (unsigned) pid, errstr); in main()
228 do_ptrace(PTRACE_INTERRUPT, pid, 0, 0); in main()
229 printf("ptrace(PTRACE_INTERRUPT, %u) = %s\n", (unsigned) pid, errstr); in main()
231 do_ptrace(PTRACE_KILL, pid, 0, 0); in main()
232 printf("ptrace(PTRACE_KILL, %u) = %s\n", (unsigned) pid, errstr); in main()
234 do_ptrace(PTRACE_LISTEN, pid, 0, 0); in main()
235 printf("ptrace(PTRACE_LISTEN, %u) = %s\n", (unsigned) pid, errstr); in main()
242 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main()
244 (unsigned) pid, sigset_size, errstr); in main()
246 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main()
248 (unsigned) pid, sigset_size, k_set, errstr); in main()
250 do_ptrace(PTRACE_SECCOMP_GET_FILTER, pid, 42, 0); in main()
252 (unsigned) pid, errstr); in main()
254 do_ptrace(PTRACE_SECCOMP_GET_METADATA, pid, bad_data, 0); in main()
256 (unsigned) pid, bad_data, errstr); in main()
258 do_ptrace(PTRACE_SECCOMP_GET_METADATA, pid, 7, in main()
261 (unsigned) pid, filter_off, errstr); in main()
264 do_ptrace(PTRACE_SECCOMP_GET_METADATA, pid, bad_data, in main()
268 (unsigned) pid, bad_data, *filter_off, errstr); in main()
270 do_ptrace(PTRACE_GETEVENTMSG, pid, bad_request, bad_data); in main()
272 (unsigned) pid, bad_request, bad_data, errstr); in main()
280 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
283 (unsigned) pid, bad_request, errstr); in main()
293 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
297 (unsigned) pid, bad_request, sip->si_int, sip->si_ptr, in main()
306 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
309 (unsigned) pid, bad_request, sip->si_addr, errstr); in main()
317 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
320 (unsigned) pid, bad_request, sip->si_addr, errstr); in main()
328 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
331 (unsigned) pid, bad_request, sip->si_errno, sip->si_addr, in main()
342 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
345 (unsigned) pid, bad_request, sip->si_code, sip->si_errno, in main()
357 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
362 (unsigned) pid, bad_request, sip->si_call_addr, sip->si_syscall, in main()
370 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
375 (unsigned) pid, bad_request, sip->si_errno, sip->si_arch, in main()
388 do_ptrace(PTRACE_SETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
392 (unsigned) pid, bad_request, sip->si_timerid, sip->si_overrun, in main()
396 do_ptrace(PTRACE_GETSIGINFO, pid, bad_request, (unsigned long) sip); in main()
398 " = %s\n", (unsigned) pid, bad_request, sip, errstr); in main()
400 do_ptrace(PTRACE_CONT, pid, 0, SIGUSR1); in main()
402 (unsigned) pid, errstr); in main()
404 do_ptrace(PTRACE_DETACH, pid, 0, SIGUSR2); in main()
406 (unsigned) pid, errstr); in main()
408 do_ptrace(PTRACE_SYSCALL, pid, 0, SIGUSR1); in main()
410 (unsigned) pid, errstr); in main()
413 do_ptrace(PTRACE_SINGLESTEP, pid, 0, SIGUSR2); in main()
415 (unsigned) pid, errstr); in main()
419 do_ptrace(PTRACE_SINGLEBLOCK, pid, 0, SIGUSR1); in main()
421 (unsigned) pid, errstr); in main()
425 do_ptrace(PTRACE_SYSEMU, pid, 0, SIGUSR2); in main()
427 (unsigned) pid, errstr); in main()
430 do_ptrace(PTRACE_SYSEMU_SINGLESTEP, pid, 0, SIGUSR1); in main()
432 (unsigned) pid, errstr); in main()
436 pid, 0, PTRACE_O_TRACEFORK|PTRACE_O_TRACECLONE); in main()
439 (unsigned) pid, errstr); in main()
441 do_ptrace(PTRACE_SEIZE, pid, bad_request, PTRACE_O_TRACESYSGOOD); in main()
443 (unsigned) pid, bad_request, errstr); in main()
445 do_ptrace(PTRACE_SETREGSET, pid, 1, bad_request); in main()
447 (unsigned) pid, bad_request, errstr); in main()
449 do_ptrace(PTRACE_GETREGSET, pid, 3, bad_request); in main()
451 (unsigned) pid, bad_request, errstr); in main()
453 test_peeksiginfo(pid, bad_request); in main()