Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 35) 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/runtime/
Dexec_utils.cc53 pid_t pid = fork(); in ExecWithoutWait() local
54 if (pid == 0) { in ExecWithoutWait()
72 return pid; in ExecWithoutWait()
79 pid_t pid = ExecWithoutWait(arg_vector); in ExecAndReturnCode() local
80 if (pid == -1) { in ExecAndReturnCode()
88 pid_t got_pid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in ExecAndReturnCode()
89 if (got_pid != pid) { in ExecAndReturnCode()
92 ToCommandLine(arg_vector).c_str(), pid, got_pid, strerror(errno)); in ExecAndReturnCode()
108 pid_t pid = ExecWithoutWait(arg_vector); in ExecAndReturnCode() local
109 if (pid == -1) { in ExecAndReturnCode()
[all …]
Dnative_stack_dump.cc95 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/test/137-cfi/
Dcfi.cc85 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()
152 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument
153 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo()
156 int res = kill(pid, SIGQUIT); in MoreErrorInfo()
241 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local
244 if (ptrace(PTRACE_SEIZE, pid, 0, 0)) { in Java_Main_unwindOtherProcess()
248 kill(pid, SIGKILL); 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 …]
/art/tools/jvmti-agents/field-counts/
Dcount-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, 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/tools/
Dbuildbot-teardown-device.sh52 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/runtime/jit/
Djit_memory_region_test.cc158 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/
Dsignal_dumper.cc133 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/
Dfind_api_violations.pl108 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/
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/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/test/137-cfi/src/
DMain.java79 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/testrunner/
Dtestrunner.py176 self.procs[proc.pid] = proc
178 os.killpg(proc.pid, signal.SIGKILL) # kill_all has already been called.
186 del self.procs[proc.pid]
191 for pid in self.procs:
192 os.killpg(pid, signal.SIGKILL)
703 for pid in pidof.stdout.decode("ascii").split():
705 print_text("Backtrace of %s at %s\n" % (pid, time.monotonic()))
706 subprocess.run(["adb", "shell", "debuggerd", pid])
708 task_dir = "/proc/%s/task" % pid
718 os.killpg(proc.pid, signal.SIGKILL)
/art/test/etc/
Drun-test-jar1404 $cmdline "$@" & pid=$!
1405 wait $pid
1415 $cmdline "$@" & pid=$!
1419 ( gdb -q -p $pid --eval-command="info thread" --eval-command="thread apply all bt" \
1421 kill $pid )) 2> /dev/null & watcher=$!
1422 wait $pid
/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/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/tools/bisection_search/
DREADME.md30 will fail if pid of the process started by raw-cmd is different than pid of runtime.
/art/tools/jvmti-agents/dump-jvmti-state/
DREADME.md16 > `kill -3 <pid>`
/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/odsign/test-src/com/android/tests/odsign/
DOnDeviceSigningHostTest.java101 private Set<String> getMappedArtifacts(String pid, String grepPattern) throws Exception { in getMappedArtifacts() argument
102 final String grepCommand = String.format("grep \"%s\" /proc/%s/maps", grepPattern, pid); in getMappedArtifacts()
/art/libartbase/base/
Dcommon_art_test.cc626 pid_t pid = fork(); in ForkAndExec() local
627 if (pid == -1) { in ForkAndExec()
631 if (pid == 0) { in ForkAndExec()
662 if (waitpid(pid, &result.status_code, 0) == -1) { in ForkAndExec()
/art/tools/jvmti-agents/jit-load/
DREADME.md32 > `kill -SIGQUIT $(pid com.example.android.displayingbitmaps)`
/art/imgdiag/
Dimgdiag.cc1155 auto open_proc_maps = [&os](pid_t pid, /*out*/ std::unique_ptr<BacktraceMap>* proc_maps) { in Init() argument
1157 proc_maps->reset(BacktraceMap::Create(pid)); in Init()
1159 os << "Could not read backtrace maps for " << pid; in Init()
1172 auto open_mem_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* mem_file) { in Init() argument
1175 StringPrintf("/proc/%ld/mem", static_cast<long>(pid)); // NOLINT [runtime/int] in Init()
1178 auto open_pagemap_file = [&open_file](pid_t pid, /*out*/ std::unique_ptr<File>* pagemap_file) { in Init() argument
1181 "/proc/%ld/pagemap", static_cast<long>(pid)); // NOLINT [runtime/int] in Init()
1763 void PrintPidLine(const std::string& kind, pid_t pid) { in PrintPidLine() argument
1764 if (pid < 0) { in PrintPidLine()
1767 *os_ << kind << " DIFF PID (" << pid << "): "; in PrintPidLine()

12