Lines Matching refs:pid
17 kill_tracee(pid_t pid) in kill_tracee() argument
19 if (!pid) in kill_tracee()
24 int rc = kill(pid, SIGKILL); in kill_tracee()
31 sys_ptrace(int request, pid_t pid, unsigned long addr, unsigned long data) in sys_ptrace() argument
33 return syscall(__NR_ptrace, request, pid, addr, data); in sys_ptrace()
38 kill_tracee(pid); \
77 pid_t pid = fork(); in TEST() local
79 ASSERT_LE(0, pid) { in TEST()
83 if (pid == 0) { in TEST()
85 pid = getpid(); in TEST()
89 ASSERT_EQ(0, kill(pid, SIGSTOP)) { in TEST()
107 { 0, pid } /* gettid */ in TEST()
127 ASSERT_EQ(pid, wait(&status)) { in TEST()
132 pid = 0; /* the tracee is no more */ in TEST()
137 pid = 0; /* the tracee is no more */ in TEST()
151 ASSERT_EQ(0, sys_ptrace(PTRACE_SETOPTIONS, pid, 0, in TEST()
156 pid, size, in TEST()
179 pid, size, in TEST()
263 ASSERT_EQ(0, sys_ptrace(PTRACE_SYSCALL, pid, 0, 0)) { in TEST()