Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 16 of 16) sorted by relevance

/art/test/137-cfi/
Dcfi.cc91 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument
92 printf("Secondary pid is %d\n", pid); in MoreErrorInfo()
94 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo()
97 int res = kill(pid, SIGQUIT); in MoreErrorInfo()
215 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local
219 if (ptrace(PTRACE_ATTACH, pid, 0, 0)) { in Java_Main_unwindOtherProcess()
223 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess()
227 kill(pid, SIGSTOP); in Java_Main_unwindOtherProcess()
231 int signal = wait_for_sigstop(pid, &total_sleep_time_usec, &detach_failed); in Java_Main_unwindOtherProcess()
236 std::unique_ptr<Backtrace> bt(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)); in Java_Main_unwindOtherProcess()
[all …]
/art/runtime/
Dexec_utils.cc50 pid_t pid = fork(); in ExecAndReturnCode() local
51 if (pid == 0) { in ExecAndReturnCode()
69 if (pid == -1) { in ExecAndReturnCode()
77 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in ExecAndReturnCode()
78 if (got_pid != pid) { in ExecAndReturnCode()
81 command_line.c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode()
Dnative_stack_dump.cc75 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe()
76 : in(in_fd, false), out(out_fd, false), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe()
104 pid_t pid = fork(); in Connect() local
105 if (pid == -1) { in Connect()
113 if (pid == 0) { in Connect()
130 pid)); in Connect()
/art/test/144-static-field-sigquit/src/
DSigQuit.java22 private final static int pid; field in SigQuit
45 pid = pidTemp;
52 kill.invoke(null, pid, sigquit); in perform()
/art/test/
Drun-all-tests225 for pid in ${test_pids[@]}; do
226 wait $pid
229 failed_test_names="$failed_test_names ${test_names[$pid]}[pid=$pid]"
/art/test/137-cfi/src/
DMain.java98 int pid = getPid(p); in runPrimary() local
99 if (pid <= 0) { in runPrimary()
114 if (!unwindOtherProcess(fullSignatures, pid)) { in runPrimary()
201 public native boolean unwindOtherProcess(boolean fullSignatures, int pid); in unwindOtherProcess() argument
/art/test/etc/
Drun-test-jar814 $cmdline "$@" 2>&1 & pid=$!
815 wait $pid
823 $cmdline "$@" 2>&1 & pid=$!
827 ( gdb -q -p $pid --eval-command="info thread" --eval-command="thread apply all bt" \
829 kill $pid )) 2> /dev/null & watcher=$!
830 wait $pid
/art/oatdump/
Doatdump_test.cc131 const pid_t pid = fork(); in Exec() local
132 if (pid == -1) { in Exec()
137 if (pid == 0) { in Exec()
204 if (waitpid(pid, &status, 0) != -1) { in Exec()
/art/dexlayout/
Ddexdiag.cc469 pid_t pid; in DexDiagMain() local
471 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); in DexDiagMain()
472 if (*endptr != '\0' || kill(pid, 0) != 0) { in DexDiagMain()
486 if (pm_process_create(ker, pid, &proc) != 0) { in DexDiagMain()
488 << pid in DexDiagMain()
/art/tools/bisection_search/
DREADME.md30 will fail if pid of the process started by raw-cmd is different than pid of runtime.
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc292 pid_t pid = getpid(); in ZygoteHooks_nativePostForkChild() local
293 proc_name = StringPrintf("%u", static_cast<uint32_t>(pid)); in ZygoteHooks_nativePostForkChild()
/art/test/141-class-unload/src/
DMain.java57 private static void testOatFilesUnloaded(int pid) throws Exception { in testOatFilesUnloaded() argument
64 BufferedReader reader = new BufferedReader(new FileReader ("/proc/" + pid + "/maps")); in testOatFilesUnloaded()
/art/test/004-ThreadStress/src/
DMain.java78 private final static int pid; field in Main.SigQuit
99 pid = pidTemp;
107 kill.invoke(null, pid, sigquit); in perform()
/art/dex2oat/
Ddex2oat_test.cc197 pid_t pid = fork(); in Dex2Oat() local
198 if (pid == -1) { in Dex2Oat()
202 if (pid == 0) { in Dex2Oat()
227 if (waitpid(pid, &status, 0) != -1) { in Dex2Oat()
/art/test/913-heaps/src/art/
DTest913.java296 int pid = Integer.parseInt(new File("/proc/self").getCanonicalFile().getName()); in hasImage() local
297 BufferedReader reader = new BufferedReader(new FileReader("/proc/" + pid + "/maps")); in hasImage()
/art/tools/common/
Dcommon.py165 os.killpg(os.getpgid(proc.pid), signal.SIGTERM)