Home
last modified time | relevance | path

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

12

/art/tools/runtime_memusage/
Dsanitizer_logcat_analysis.sh185 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/
Dcfi.cc72 pid_t pid = fork(); in Java_Main_startSecondaryProcess() local
73 if (pid < 0) { in Java_Main_startSecondaryProcess()
75 } else if (pid == 0) { in Java_Main_startSecondaryProcess()
79 return pid; in Java_Main_startSecondaryProcess()
120 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument
121 printf("Secondary pid is %d\n", pid); in MoreErrorInfo()
123 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo()
126 int res = kill(pid, SIGQUIT); in MoreErrorInfo()
207 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local
210 if (ptrace(PTRACE_SEIZE, pid, 0, 0)) { in Java_Main_unwindOtherProcess()
[all …]
/art/tools/jvmti-agents/field-null-percent/
Dcheck-null-fields.py90 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 …]
DREADME.md41 > `kill -SIGQUIT $(pid com.littleinc.orm_benchmark)`
/art/tools/
Dteardown-buildbot-device.sh49 local pid=$(basename "$dir")
51 $action "$pid" "$cmdline"
59 local pid=$1
61 echo "$cmdline (PID: $pid)"
134 local pid=$1
136 echo "Killing $cmdline (PID: $pid)"
137 adb shell kill -9 "$pid"
/art/runtime/
Dexec_utils.cc49 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()
Dnative_stack_dump.cc96 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe()
97 : in(in_fd, false), out(out_fd, false), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe()
125 pid_t pid = fork(); in Connect() local
126 if (pid == -1) { in Connect()
134 if (pid == 0) { in Connect()
151 pid); in Connect()
/art/tools/hiddenapi/
Dfind_api_violations.pl108 my ($pid, $tid, $class, $tag, $msg) = ($1, $2, $3, $4, $5);
121 my $package = $procmap->{$pid} || "unknown($pid)";
/art/tools/timeout_dumper/
Dtimeout_dumper.cc136 Addr2linePipe(int in_fd, int out_fd, const std::string& file_name, pid_t pid) in Addr2linePipe()
137 : in(in_fd), out(out_fd), file(file_name), child_pid(pid), odd(true) {} in Addr2linePipe()
165 pid_t pid = fork(); in Connect() local
166 if (pid == -1) { in Connect()
174 if (pid == 0) { in Connect()
191 pid); in Connect()
334 std::set<pid_t> PtraceSiblings(pid_t pid) { in PtraceSiblings() argument
336 std::string task_path = android::base::StringPrintf("/proc/%d/task", pid); in PtraceSiblings()
359 if (tid == pid) { in PtraceSiblings()
487 bool WaitForSigStopped(pid_t pid, uint32_t max_wait_micros) { in WaitForSigStopped() argument
[all …]
/art/test/676-resolve-field-type/src-ex/
DChildClass.java42 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/
DSigQuit.java22 private final static int pid; field in SigQuit
45 pid = pidTemp;
52 kill.invoke(null, pid, sigquit); in perform()
/art/test/137-cfi/src/
DMain.java78 int pid = startSecondaryProcess(); in unwind() local
80 String result = unwindOtherProcess(pid) ? "PASS" : "FAIL"; in unwind()
88 public static native boolean unwindOtherProcess(int pid); in unwindOtherProcess() argument
/art/test/678-quickening/src-art/
DMain.java49 private final static int pid; field in Main.SigQuit
70 pid = pidTemp;
76 kill.invoke(null, pid, sigquit); in doKill()
/art/runtime/jdwp/
Djdwp_adb.cc245 int32_t pid = getpid(); in Accept() local
274 ret = TEMP_FAILURE_RETRY(send(control_sock, &pid, sizeof(pid), 0)); in Accept()
275 if (ret == sizeof(pid)) { in Accept()
276 VLOG(jdwp) << "PID " << pid << " sent to ADB"; in Accept()
/art/test/etc/
Drun-test-jar1154 $cmdline "$@" 2>&1 & pid=$!
1155 wait $pid
1165 $cmdline "$@" 2>&1 & pid=$!
1169 ( gdb -q -p $pid --eval-command="info thread" --eval-command="thread apply all bt" \
1171 kill $pid )) 2> /dev/null & watcher=$!
1172 wait $pid
/art/tools/jvmti-agents/titrace/
DREADME.md54 > `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/
Ddexdiag.cc487 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/
DREADME.md16 > `kill -3 <pid>`
/art/tools/bisection_search/
DREADME.md30 will fail if pid of the process started by raw-cmd is different than pid of runtime.
/art/libartbase/base/
Dcommon_art_test.cc537 pid_t pid = fork(); in ForkAndExec() local
538 if (pid == -1) { in ForkAndExec()
542 if (pid == 0) { in ForkAndExec()
573 if (waitpid(pid, &result.status_code, 0) == -1) { in ForkAndExec()
/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/tools/jvmti-agents/jit-load/
DREADME.md32 > `kill -SIGQUIT $(pid com.example.android.displayingbitmaps)`
/art/adbconnection/
Dadbconnection.cc500 int32_t pid = getpid(); in SetupAdbConnection() local
525 ret = TEMP_FAILURE_RETRY(send(sock, &pid, sizeof(pid), 0)); in SetupAdbConnection()
526 if (ret == sizeof(pid)) { in SetupAdbConnection()
527 VLOG(jdwp) << "PID " << pid << " sent to adb"; in SetupAdbConnection()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc355 pid_t pid = getpid(); in ZygoteHooks_nativePostForkChild() local
356 proc_name = StringPrintf("%u", static_cast<uint32_t>(pid)); in ZygoteHooks_nativePostForkChild()
/art/imgdiag/
Dimgdiag.cc1148 auto open_proc_maps = [&os](pid_t pid, /*out*/ std::unique_ptr<BacktraceMap>* proc_maps) { in Init() argument
1150 proc_maps->reset(BacktraceMap::Create(pid)); in Init()
1152 os << "Could not read backtrace maps for " << pid; in Init()
1165 auto open_mem_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* mem_file) { in Init() argument
1168 StringPrintf("/proc/%ld/mem", static_cast<long>(pid)); // NOLINT [runtime/int] in Init()
1171 auto open_pagemap_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* pagemap_file) { in Init() argument
1174 "/proc/%ld/pagemap", static_cast<long>(pid)); // NOLINT [runtime/int] in Init()
1746 void PrintPidLine(const std::string& kind, pid_t pid) { in PrintPidLine() argument
1747 if (pid < 0) { in PrintPidLine()
1750 *os_ << kind << " DIFF PID (" << pid << "): "; in PrintPidLine()

12