Lines Matching defs:target
156 static void abort_handler(pid_t target, const bool& tombstoned_connected,
162 if (!tombstoned_connect(target, &tombstoned_socket, &output_fd)) {
170 if (target != 1) {
171 dprintf(output_fd.get(), " %d: %s\n", target, abort_msg);
198 pid_t target = getppid();
205 abort_handler(target, tombstoned_connected, tombstoned_socket, output_fd, abort_msg);
234 if (target == 1) {
235 LOG(FATAL) << "target died before we could attach (received main tid = " << main_tid << ")";
240 LOG(FATAL) << "failed to fetch process info for target " << main_tid;
243 if (main_tid != target_info.tid || target != target_info.pid) {
244 LOG(FATAL) << "target info mismatch, expected pid " << target << ", tid " << main_tid
249 std::string target_proc_path = "/proc/" + std::to_string(target);
256 if (getppid() != target) {
286 if (!android::procinfo::GetProcessTids(target, &siblings)) {
312 populate_open_files_list(target, &open_files);
321 tombstoned_connected = tombstoned_connect(target, &tombstoned_socket, &output_fd);
326 PLOG(ERROR) << "failed to communicate to target process";
339 LOG(INFO) << "performing dump of process " << target << " (target tid = " << main_tid << ")";
374 dump_backtrace(output_fd.get(), backtrace_map.get(), target, main_tid, process_name, threads, 0);
376 engrave_tombstone(output_fd.get(), backtrace_map.get(), &open_files, target, main_tid,
397 if (tgkill(target, main_tid, wait_for_gdb ? SIGSTOP : signo) != 0) {
412 target, main_tid);
418 activity_manager_notify(target, signo, amfd_data);