backtrace_test.cpp | 96 void WaitForStop(pid_t pid) { 100 while (ptrace(PTRACE_GETSIGINFO, pid, 0, &si) < 0 && (errno == EINTR || errno == ESRCH)) { 255 void VerifyProcTest(pid_t pid, pid_t tid, bool share_map, 260 ptrace_tid = pid; 274 map.reset(BacktraceMap::Create(pid)); 276 UniquePtr<Backtrace> backtrace(Backtrace::Create(pid, tid, map.get())); 292 pid_t pid; local 293 if ((pid = fork()) == 0) { 297 VerifyProcTest(pid, BACKTRACE_CURRENT_THREAD, false, ReadyLevelBacktrace, VerifyLevelDump); 299 kill(pid, SIGKILL) 301 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 305 pid_t pid; local 315 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 319 pid_t pid; local 328 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 344 pid_t pid; local 353 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 381 pid_t pid; local 419 ASSERT_EQ(waitpid(pid, &status, 0), pid); local 789 pid_t pid; local 809 ASSERT_EQ(waitpid(pid, NULL, 0), pid); local 861 pid_t pid; local 880 ASSERT_EQ(waitpid(pid, NULL, 0), pid); local [all...] |