/system/core/init/ |
D | sigchld_handler.cpp | 46 siginfo_t siginfo = {}; in ReapOneProcess() local 49 if (TEMP_FAILURE_RETRY(waitid(P_ALL, 0, &siginfo, WEXITED | WNOHANG | WNOWAIT)) != 0) { in ReapOneProcess() 54 auto pid = siginfo.si_pid; in ReapOneProcess() 92 if (siginfo.si_code == CLD_EXITED) { in ReapOneProcess() 93 LOG(INFO) << name << " exited with status " << siginfo.si_status << wait_string; in ReapOneProcess() 95 LOG(INFO) << name << " received signal " << siginfo.si_status << wait_string; in ReapOneProcess() 100 service->Reap(siginfo); in ReapOneProcess()
|
D | init.cpp | 571 static void HandleSigtermSignal(const signalfd_siginfo& siginfo) { in HandleSigtermSignal() argument 572 if (siginfo.ssi_pid != 0) { in HandleSigtermSignal() 574 LOG(DEBUG) << "Ignoring SIGTERM from pid " << siginfo.ssi_pid; in HandleSigtermSignal() 582 signalfd_siginfo siginfo; in HandleSignalFd() local 583 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(signal_fd, &siginfo, sizeof(siginfo))); in HandleSignalFd() 584 if (bytes_read != sizeof(siginfo)) { in HandleSignalFd() 589 switch (siginfo.ssi_signo) { in HandleSignalFd() 594 HandleSigtermSignal(siginfo); in HandleSignalFd() 597 PLOG(ERROR) << "signal_fd: received unexpected signal " << siginfo.ssi_signo; in HandleSignalFd()
|
D | service.h | 91 void Reap(const siginfo_t& siginfo); 99 void AddReapCallback(std::function<void(const siginfo_t& siginfo)> callback) { in AddReapCallback() 208 std::vector<std::function<void(const siginfo_t& siginfo)>> reap_callbacks_;
|
D | service.cpp | 256 void Service::Reap(const siginfo_t& siginfo) { in Reap() argument 277 f(siginfo); in Reap() 280 if ((siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) && on_failure_reboot_target_) { in Reap()
|
D | builtins.cpp | 1185 (*service)->AddReapCallback([function](const siginfo_t& siginfo) { in ExecWithFunctionOnFailure() argument 1186 if (siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) { in ExecWithFunctionOnFailure() 1187 function(StringPrintf("Exec service failed, status %d", siginfo.si_status)); in ExecWithFunctionOnFailure()
|
/system/core/debuggerd/handler/ |
D | debuggerd_fallback.cpp | 102 siginfo_t* siginfo, void* abort_message) { in debuggerd_fallback_tombstone() argument 109 siginfo, ucontext); in debuggerd_fallback_tombstone() 275 siginfo_t siginfo = {}; in trace_handler() local 276 siginfo.si_code = SI_QUEUE; in trace_handler() 277 siginfo.si_value.sival_ptr = kDebuggerdFallbackSivalPtrRequestDump; in trace_handler() 278 siginfo.si_pid = getpid(); in trace_handler() 279 siginfo.si_uid = getuid(); in trace_handler() 281 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in trace_handler()
|
D | debuggerd_handler.cpp | 297 siginfo_t* siginfo; member 310 if (thread_info->siginfo->si_signo == BIONIC_SIGNAL_DEBUGGER && in get_dump_type() 311 thread_info->siginfo->si_value.sival_int) { in get_dump_type() 349 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread() 451 if (thread_info->siginfo->si_signo != BIONIC_SIGNAL_DEBUGGER) { in debuggerd_dispatch_pseudothread() 493 struct siginfo dummy_info = {}; in debuggerd_signal_handler() 550 .siginfo = info, in debuggerd_signal_handler()
|
/system/core/debuggerd/ |
D | crash_dump.cpp | 268 static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, in ReadCrashInfo() argument 312 *siginfo = crash_info->data.s.siginfo; in ReadCrashInfo() 313 if (signal_has_si_addr(siginfo)) { in ReadCrashInfo() 315 process_info->maybe_tagged_fault_address = reinterpret_cast<uintptr_t>(siginfo->si_addr); in ReadCrashInfo() 317 untag_address(reinterpret_cast<uintptr_t>(siginfo->si_addr)); in ReadCrashInfo() 469 siginfo_t siginfo; in main() local 513 ReadCrashInfo(input_pipe, &siginfo, &info.registers, &process_info); in main() 514 info.siginfo = &siginfo; in main() 515 info.signo = info.siginfo->si_signo; in main() 552 if (siginfo.si_signo == BIONIC_SIGNAL_DEBUGGER) { in main() [all …]
|
D | protocol.h | 89 siginfo_t siginfo; member
|
D | debuggerd_test.cpp | 1294 siginfo_t siginfo; in raise_debugger_signal() local 1295 siginfo.si_code = SI_QUEUE; in raise_debugger_signal() 1296 siginfo.si_pid = getpid(); in raise_debugger_signal() 1297 siginfo.si_uid = getuid(); in raise_debugger_signal() 1303 siginfo.si_value.sival_int = dump_type == kDebuggerdNativeBacktrace; in raise_debugger_signal() 1305 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), gettid(), BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in raise_debugger_signal()
|
/system/memory/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/ |
D | tombstone.cpp | 160 if (thread_info.siginfo->si_signo == SIGILL) { in dump_signal_info() 172 if (signal_has_sender(thread_info.siginfo, thread_info.pid)) { in dump_signal_info() 173 get_signal_sender(sender_desc, sizeof(sender_desc), thread_info.siginfo); in dump_signal_info() 177 thread_info.siginfo->si_signo, get_signame(thread_info.siginfo), in dump_signal_info() 178 thread_info.siginfo->si_code, get_sigcode(thread_info.siginfo), sender_desc, addr_desc); in dump_signal_info() 388 if (thread_info.siginfo) { in dump_thread() 403 } else if (thread_info.siginfo && !(primary_thread && scudo_crash_data->CrashIsMine())) { in dump_thread() 404 dump_probable_cause(log, thread_info.siginfo, unwinder->GetMaps(), thread_info.registers.get()); in dump_thread() 563 siginfo_t* siginfo, ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument 592 .siginfo = siginfo, in engrave_tombstone_ucontext()
|
D | tombstone_proto.cpp | 201 const siginfo *si = main_thread.siginfo; in dump_probable_cause() 637 if (!main_thread.siginfo) { in engrave_tombstone_proto() 643 sig.set_name(get_signame(main_thread.siginfo)); in engrave_tombstone_proto() 644 sig.set_code(main_thread.siginfo->si_code); in engrave_tombstone_proto() 645 sig.set_code_name(get_sigcode(main_thread.siginfo)); in engrave_tombstone_proto() 647 if (signal_has_sender(main_thread.siginfo, main_thread.pid)) { in engrave_tombstone_proto() 649 sig.set_sender_uid(main_thread.siginfo->si_uid); in engrave_tombstone_proto() 650 sig.set_sender_pid(main_thread.siginfo->si_pid); in engrave_tombstone_proto()
|
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/ |
D | types.h | 40 siginfo_t* siginfo = nullptr; member
|
D | tombstone.h | 61 siginfo_t* siginfo, ucontext_t* ucontext);
|
/system/bt/vendor_libs/test_vendor_lib/desktop/ |
D | root_canal_main.cc | 54 int signal_number = ctx->siginfo.si_signo; in crash_callback()
|
/system/bt/gd/facade/ |
D | facade_main.cc | 72 int signal_number = ctx->siginfo.si_signo; in crash_callback()
|