/art/tools/runtime_memusage/ |
D | sanitizer_logcat_analysis.sh | 185 for pid in "${unique_pids[@]}" 188 echo "Current pid: $pid" 190 pid_dir=$OUT_DIR/$pid 193 DO_REDO[$pid]=true 201 [[ "${DO_REDO[$pid]}" = true ]] || \ 203 DO_REDO[$pid]=true 204 awk "{if(\$3 == $pid) print \$0}" "$LOGCAT_FILE" > "$logcat_pid_file" 209 DO_REDO[$pid]=true 216 [[ "${DO_REDO[$pid]}" = true ]] || \ 218 DO_REDO[$pid]=true [all …]
|
/art/test/137-cfi/ |
D | cfi.cc | 85 pid_t pid = fork(); in Java_Main_startSecondaryProcess() local 86 if (pid < 0) { in Java_Main_startSecondaryProcess() 88 } else if (pid == 0) { in Java_Main_startSecondaryProcess() 92 return pid; in Java_Main_startSecondaryProcess() 135 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument 136 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo() 139 int res = kill(pid, SIGQUIT); in MoreErrorInfo() 224 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local 227 if (ptrace(PTRACE_SEIZE, pid, 0, 0)) { in Java_Main_unwindOtherProcess() 231 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess() [all …]
|
/art/tools/jvmti-agents/field-null-percent/ |
D | check-null-fields.py | 90 if len(out.pid) == 0: 97 ppe.submit(kill_it, p.pid).result() 98 out.pid = p.communicate()[0].strip().split() 100 print(out.pid) 105 for p in out.pid: 117 def check_single_process(pid, device, bit32, bit64): argument 120 device.shell(['am', 'attach-agent', str(pid), bit32]) 121 device.shell(['am', 'attach-agent', str(pid), bit64]) 123 device.shell('kill -3 {}'.format(pid).split()) 127 lc_cmd = "logcat -d -b main --pid={} -e '^\\t.*\\t[0-9]*\\t[0-9]*$'".format(pid).split(' ') [all …]
|
/art/tools/ |
D | buildbot-teardown-device.sh | 52 local pid=$(basename "$dir") 54 $action "$pid" "$cmdline" 62 local pid=$1 64 echo "$cmdline (PID: $pid)" 140 local pid=$1 142 echo "Killing $cmdline (PID: $pid)" 143 adb shell kill -9 "$pid"
|
/art/tools/jvmti-agents/field-counts/ |
D | count-fields.py | 90 if len(out.pid) == 0: 97 ppe.submit(kill_it, p.pid).result() 98 out.pid = p.communicate()[0].strip().split() 100 print(out.pid) 105 for p in out.pid: 117 def check_single_process(pid, device, mkcmd, bit32, bit64): argument 120 name = device.shell('cat /proc/{}/cmdline'.format(pid).split())[0].strip('\0') 133 device.shell(['am', 'attach-agent', str(pid), mkcmd(target32)]) 134 device.shell(['am', 'attach-agent', str(pid), mkcmd(target64)]) 136 device.shell('kill -3 {}'.format(pid).split()) [all …]
|
/art/runtime/ |
D | exec_utils.cc | 49 pid_t pid = fork(); in ExecAndReturnCode() local 50 if (pid == 0) { in ExecAndReturnCode() 68 if (pid == -1) { in ExecAndReturnCode() 76 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in ExecAndReturnCode() 77 if (got_pid != pid) { in ExecAndReturnCode() 80 command_line.c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode()
|
D | native_stack_dump.cc | 95 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe() 96 : in(in_fd, false), out(out_fd, false), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe() 124 pid_t pid = fork(); in Connect() local 125 if (pid == -1) { in Connect() 133 if (pid == 0) { in Connect() 150 pid); in Connect()
|
/art/runtime/jit/ |
D | jit_memory_region_test.cc | 158 pid_t pid = fork(); in TestUnmapWritableAfterFork() local 159 if (pid == 0) { in TestUnmapWritableAfterFork() 196 CHECK_EQ(waitpid(pid, &status, 0), pid); in TestUnmapWritableAfterFork() 256 pid_t pid = fork(); in TestMadviseDontFork() local 257 if (pid == 0) { in TestMadviseDontFork() 285 CHECK_EQ(waitpid(pid, &status, 0), pid); in TestMadviseDontFork() 343 pid_t pid = fork(); in TestFromSharedToPrivate() local 344 if (pid == 0) { in TestFromSharedToPrivate() 351 CHECK_EQ(waitpid(pid, &status, 0), pid); in TestFromSharedToPrivate() 360 pid = fork(); in TestFromSharedToPrivate() [all …]
|
/art/tools/signal_dumper/ |
D | signal_dumper.cc | 133 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe() 134 : in(in_fd), out(out_fd), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe() 162 pid_t pid = fork(); in Connect() local 163 if (pid == -1) { in Connect() 171 if (pid == 0) { in Connect() 188 pid); in Connect() 331 std::set<pid_t> PtraceSiblings(pid_t pid) { in PtraceSiblings() argument 333 std::string task_path = android::base::StringPrintf("/proc/%d/task", pid); in PtraceSiblings() 356 if (tid == pid) { in PtraceSiblings() 466 bool WaitForSigStopped(pid_t pid, uint32_t max_wait_micros) { in WaitForSigStopped() argument [all …]
|
/art/tools/hiddenapi/ |
D | find_api_violations.pl | 108 my ($pid, $tid, $class, $tag, $msg) = ($1, $2, $3, $4, $5); 121 my $package = $procmap->{$pid} || "unknown($pid)";
|
/art/test/676-resolve-field-type/src-ex/ |
D | ChildClass.java | 42 private final static int pid; field in ChildClass.SigQuit 63 pid = pidTemp; 69 kill.invoke(null, pid, sigquit); in doKill()
|
/art/test/144-static-field-sigquit/src/ |
D | SigQuit.java | 22 private final static int pid; field in SigQuit 45 pid = pidTemp; 52 kill.invoke(null, pid, sigquit); in perform()
|
/art/test/678-quickening/src-art/ |
D | Main.java | 49 private final static int pid; field in Main.SigQuit 70 pid = pidTemp; 76 kill.invoke(null, pid, sigquit); in doKill()
|
/art/test/137-cfi/src/ |
D | Main.java | 79 int pid = startSecondaryProcess(); in unwind() local 81 System.out.println(unwindOtherProcess(pid) ? "PASS" : "FAIL"); in unwind() 88 public static native boolean unwindOtherProcess(int pid); in unwindOtherProcess() argument
|
/art/test/etc/ |
D | run-test-jar | 1402 $cmdline "$@" 2>&1 & pid=$! 1403 wait $pid 1413 $cmdline "$@" 2>&1 & pid=$! 1417 ( gdb -q -p $pid --eval-command="info thread" --eval-command="thread apply all bt" \ 1419 kill $pid )) 2> /dev/null & watcher=$! 1420 wait $pid
|
/art/tools/jvmti-agents/titrace/ |
D | README.md | 54 > `adb shell am attach-agent $(pid com.littleinc.orm_benchmark) /data/data/com.littleinc.orm_bench… 59 > `kill -SIGQUIT $(pid com.littleinc.orm_benchmark)`
|
/art/dexlayout/ |
D | dexdiag.cc | 487 pid_t pid; in DexDiagMain() local 489 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); in DexDiagMain() 490 if (*endptr != '\0' || kill(pid, 0) != 0) { in DexDiagMain() 496 ProcMemInfo proc(pid); in DexDiagMain()
|
/art/tools/jvmti-agents/dump-jvmti-state/ |
D | README.md | 16 > `kill -3 <pid>`
|
/art/tools/bisection_search/ |
D | README.md | 30 will fail if pid of the process started by raw-cmd is different than pid of runtime.
|
/art/test/141-class-unload/src/ |
D | Main.java | 57 private static void testOatFilesUnloaded(int pid) throws Exception { in testOatFilesUnloaded() argument 64 BufferedReader reader = new BufferedReader(new FileReader ("/proc/" + pid + "/maps")); in testOatFilesUnloaded()
|
/art/libartbase/base/ |
D | common_art_test.cc | 594 pid_t pid = fork(); in ForkAndExec() local 595 if (pid == -1) { in ForkAndExec() 599 if (pid == 0) { in ForkAndExec() 630 if (waitpid(pid, &result.status_code, 0) == -1) { in ForkAndExec()
|
/art/perfetto_hprof/ |
D | perfetto_hprof.cc | 186 for (auto pid_it = cfg->pid(); pid_it; ++pid_it) { in OnSetup() 479 pid_t pid = fork(); in DumpPerfetto() local 480 if (pid == -1) { in DumpPerfetto() 485 if (pid != 0) { in DumpPerfetto() 489 if (waitpid(pid, &stat_loc, 0) != -1 || errno != EINTR) { in DumpPerfetto()
|
/art/tools/jvmti-agents/jit-load/ |
D | README.md | 32 > `kill -SIGQUIT $(pid com.example.android.displayingbitmaps)`
|
/art/test/testrunner/ |
D | testrunner.py | 640 for pid in pidof.stdout.decode("ascii").split(): 642 print_text("Backtrace of %s at %s\n" % (pid, time.monotonic())) 643 subprocess.run(["adb", "shell", "debuggerd", pid]) 645 task_dir = "/proc/%s/task" % pid 655 os.killpg(proc.pid, signal.SIGKILL)
|
/art/imgdiag/ |
D | imgdiag.cc | 1154 auto open_proc_maps = [&os](pid_t pid, /*out*/ std::unique_ptr<BacktraceMap>* proc_maps) { in Init() argument 1156 proc_maps->reset(BacktraceMap::Create(pid)); in Init() 1158 os << "Could not read backtrace maps for " << pid; in Init() 1171 auto open_mem_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* mem_file) { in Init() argument 1174 StringPrintf("/proc/%ld/mem", static_cast<long>(pid)); // NOLINT [runtime/int] in Init() 1177 auto open_pagemap_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* pagemap_file) { in Init() argument 1180 "/proc/%ld/pagemap", static_cast<long>(pid)); // NOLINT [runtime/int] in Init() 1762 void PrintPidLine(const std::string& kind, pid_t pid) { in PrintPidLine() argument 1763 if (pid < 0) { in PrintPidLine() 1766 *os_ << kind << " DIFF PID (" << pid << "): "; in PrintPidLine()
|