/system/core/init/ |
D | sigchld_handler.cpp | 43 siginfo_t siginfo = {}; in ReapOneProcess() local 46 if (TEMP_FAILURE_RETRY(waitid(P_ALL, 0, &siginfo, WEXITED | WNOHANG | WNOWAIT)) != 0) { in ReapOneProcess() 51 auto pid = siginfo.si_pid; in ReapOneProcess() 84 if (siginfo.si_code == CLD_EXITED) { in ReapOneProcess() 85 LOG(INFO) << name << " exited with status " << siginfo.si_status << wait_string; in ReapOneProcess() 87 LOG(INFO) << name << " received signal " << siginfo.si_status << wait_string; in ReapOneProcess() 92 service->Reap(siginfo); in ReapOneProcess()
|
D | init.cpp | 495 static void HandleSigtermSignal(const signalfd_siginfo& siginfo) { in HandleSigtermSignal() argument 496 if (siginfo.ssi_pid != 0) { in HandleSigtermSignal() 498 LOG(DEBUG) << "Ignoring SIGTERM from pid " << siginfo.ssi_pid; in HandleSigtermSignal() 506 signalfd_siginfo siginfo; in HandleSignalFd() local 507 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(signal_fd, &siginfo, sizeof(siginfo))); in HandleSignalFd() 508 if (bytes_read != sizeof(siginfo)) { in HandleSignalFd() 513 switch (siginfo.ssi_signo) { in HandleSignalFd() 518 HandleSigtermSignal(siginfo); in HandleSignalFd() 521 PLOG(ERROR) << "signal_fd: received unexpected signal " << siginfo.ssi_signo; in HandleSignalFd()
|
D | service.h | 90 void Reap(const siginfo_t& siginfo); 98 void AddReapCallback(std::function<void(const siginfo_t& siginfo)> callback) { in AddReapCallback() 247 std::vector<std::function<void(const siginfo_t& siginfo)>> reap_callbacks_;
|
D | builtins.cpp | 1105 service->AddReapCallback([reboot_reason](const siginfo_t& siginfo) { in ExecWithRebootOnFailure() argument 1106 if (siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) { in ExecWithRebootOnFailure()
|
D | service.cpp | 342 void Service::Reap(const siginfo_t& siginfo) { in Reap() argument 352 f(siginfo); in Reap()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 98 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo, in debuggerd_fallback_tombstone() argument 105 engrave_tombstone_ucontext(output_fd, reinterpret_cast<uintptr_t>(abort_message), siginfo, in debuggerd_fallback_tombstone() 269 siginfo_t siginfo = {}; in trace_handler() local 270 siginfo.si_code = SI_QUEUE; in trace_handler() 271 siginfo.si_value.sival_ptr = kDebuggerdFallbackSivalPtrRequestDump; in trace_handler() 272 siginfo.si_pid = getpid(); in trace_handler() 273 siginfo.si_uid = getuid(); in trace_handler() 275 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, DEBUGGER_SIGNAL, &siginfo) != 0) { in trace_handler()
|
D | debuggerd_handler.cpp | 296 siginfo_t* siginfo; member 310 if (thread_info->siginfo->si_signo == DEBUGGER_SIGNAL && in get_dump_type() 311 thread_info->siginfo->si_value.sival_int) { in get_dump_type() 354 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread() 432 if (thread_info->siginfo->si_signo != DEBUGGER_SIGNAL) { in debuggerd_dispatch_pseudothread() 471 struct siginfo dummy_info = {}; in debuggerd_signal_handler() 530 .siginfo = info, in debuggerd_signal_handler()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 255 static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, in ReadCrashInfo() argument 292 *siginfo = crash_info->data.v1.siginfo; in ReadCrashInfo() 447 siginfo_t siginfo; in main() local 478 ReadCrashInfo(input_pipe, &siginfo, &info.registers, &abort_msg_address, in main() 480 info.siginfo = &siginfo; in main() 481 info.signo = info.siginfo->si_signo; in main() 514 if (siginfo.si_signo == DEBUGGER_SIGNAL) { in main() 557 int signo = siginfo.si_signo; in main() 565 int si_val = siginfo.si_value.sival_int; in main()
|
D | protocol.h | 89 siginfo_t siginfo; member
|
D | debuggerd_test.cpp | 721 siginfo_t siginfo; in raise_debugger_signal() local 722 siginfo.si_code = SI_QUEUE; in raise_debugger_signal() 723 siginfo.si_pid = getpid(); in raise_debugger_signal() 724 siginfo.si_uid = getuid(); in raise_debugger_signal() 730 siginfo.si_value.sival_int = dump_type == kDebuggerdNativeBacktrace; in raise_debugger_signal() 732 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), gettid(), DEBUGGER_SIGNAL, &siginfo) != 0) { in raise_debugger_signal()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 121 if (signal_has_si_addr(thread_info.siginfo)) { in dump_signal_info() 122 void* addr = thread_info.siginfo->si_addr; in dump_signal_info() 123 if (thread_info.siginfo->si_signo == SIGILL) { in dump_signal_info() 135 if (signal_has_sender(thread_info.siginfo, thread_info.pid)) { in dump_signal_info() 136 get_signal_sender(sender_desc, sizeof(sender_desc), thread_info.siginfo); in dump_signal_info() 140 thread_info.siginfo->si_signo, get_signame(thread_info.siginfo), in dump_signal_info() 141 thread_info.siginfo->si_code, get_sigcode(thread_info.siginfo), sender_desc, addr_desc); in dump_signal_info() 448 if (thread_info.siginfo) { in dump_thread() 450 dump_probable_cause(log, thread_info.siginfo, unwinder->GetMaps()); in dump_thread() 479 siginfo_t* si = thread_info.siginfo; in dump_thread() [all …]
|
/system/core/libmemunreachable/ |
D | HeapWalker.h | 67 SIGSEGV, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) { 68 this->HandleSegFault(handler, signal, siginfo, uctx); 71 SIGBUS, [=](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) { 72 this->HandleSegFault(handler, signal, siginfo, uctx);
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | types.h | 36 siginfo_t* siginfo = nullptr; member
|
D | tombstone.h | 52 void engrave_tombstone_ucontext(int tombstone_fd, uint64_t abort_msg_address, siginfo_t* siginfo,
|