Home
last modified time | relevance | path

Searched refs:siginfo (Results 1 – 15 of 15) sorted by relevance

/system/core/init/
Dsigchld_handler.cpp46 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()
Dinit.cpp528 static void HandleSigtermSignal(const signalfd_siginfo& siginfo) { in HandleSigtermSignal() argument
529 if (siginfo.ssi_pid != 0) { in HandleSigtermSignal()
531 LOG(DEBUG) << "Ignoring SIGTERM from pid " << siginfo.ssi_pid; in HandleSigtermSignal()
539 signalfd_siginfo siginfo; in HandleSignalFd() local
540 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(signal_fd, &siginfo, sizeof(siginfo))); in HandleSignalFd()
541 if (bytes_read != sizeof(siginfo)) { in HandleSignalFd()
546 switch (siginfo.ssi_signo) { in HandleSignalFd()
551 HandleSigtermSignal(siginfo); in HandleSignalFd()
554 PLOG(ERROR) << "signal_fd: received unexpected signal " << siginfo.ssi_signo; in HandleSignalFd()
Dservice.h91 void Reap(const siginfo_t& siginfo);
99 void AddReapCallback(std::function<void(const siginfo_t& siginfo)> callback) { in AddReapCallback()
204 std::vector<std::function<void(const siginfo_t& siginfo)>> reap_callbacks_;
Dservice.cpp257 void Service::Reap(const siginfo_t& siginfo) { in Reap() argument
278 f(siginfo); in Reap()
281 if ((siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) && on_failure_reboot_target_) { in Reap()
Dbuiltins.cpp1126 (*service)->AddReapCallback([function](const siginfo_t& siginfo) { in ExecWithFunctionOnFailure() argument
1127 if (siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) { in ExecWithFunctionOnFailure()
1128 function(StringPrintf("Exec service failed, status %d", siginfo.si_status)); in ExecWithFunctionOnFailure()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp99 static void debuggerd_fallback_tombstone(int output_fd, ucontext_t* ucontext, siginfo_t* siginfo, in debuggerd_fallback_tombstone() argument
106 engrave_tombstone_ucontext(output_fd, reinterpret_cast<uintptr_t>(abort_message), siginfo, in debuggerd_fallback_tombstone()
270 siginfo_t siginfo = {}; in trace_handler() local
271 siginfo.si_code = SI_QUEUE; in trace_handler()
272 siginfo.si_value.sival_ptr = kDebuggerdFallbackSivalPtrRequestDump; in trace_handler()
273 siginfo.si_pid = getpid(); in trace_handler()
274 siginfo.si_uid = getuid(); in trace_handler()
276 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in trace_handler()
Ddebuggerd_handler.cpp298 siginfo_t* siginfo; member
314 if (thread_info->siginfo->si_signo == BIONIC_SIGNAL_DEBUGGER && in get_dump_type()
315 thread_info->siginfo->si_value.sival_int) { in get_dump_type()
358 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread()
438 if (thread_info->siginfo->si_signo != BIONIC_SIGNAL_DEBUGGER) { in debuggerd_dispatch_pseudothread()
477 struct siginfo dummy_info = {}; in debuggerd_signal_handler()
544 .siginfo = info, in debuggerd_signal_handler()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp159 if (signal_has_si_addr(thread_info.siginfo)) { in dump_signal_info()
160 void* addr = thread_info.siginfo->si_addr; in dump_signal_info()
161 if (thread_info.siginfo->si_signo == SIGILL) { in dump_signal_info()
173 if (signal_has_sender(thread_info.siginfo, thread_info.pid)) { in dump_signal_info()
174 get_signal_sender(sender_desc, sizeof(sender_desc), thread_info.siginfo); in dump_signal_info()
178 thread_info.siginfo->si_signo, get_signame(thread_info.siginfo), in dump_signal_info()
179 thread_info.siginfo->si_code, get_sigcode(thread_info.siginfo), sender_desc, addr_desc); in dump_signal_info()
387 if (thread_info.siginfo) { in dump_thread()
393 } else if (thread_info.siginfo) { in dump_thread()
394 dump_probable_cause(log, thread_info.siginfo, unwinder->GetMaps(), in dump_thread()
[all …]
Dgwp_asan.cpp76 if (signal_has_si_addr(thread_info.siginfo)) { in GwpAsanCrashData()
77 crash_address_ = reinterpret_cast<uintptr_t>(thread_info.siginfo->si_addr); in GwpAsanCrashData()
/system/core/debuggerd/
Dcrash_dump.cpp256 static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, in ReadCrashInfo() argument
304 *siginfo = crash_info->data.v1.siginfo; in ReadCrashInfo()
461 siginfo_t siginfo; in main() local
492 ReadCrashInfo(input_pipe, &siginfo, &info.registers, &abort_msg_address, in main()
494 info.siginfo = &siginfo; in main()
495 info.signo = info.siginfo->si_signo; in main()
528 if (siginfo.si_signo == BIONIC_SIGNAL_DEBUGGER) { in main()
571 int signo = siginfo.si_signo; in main()
579 int si_val = siginfo.si_value.sival_int; in main()
Dprotocol.h89 siginfo_t siginfo; member
Ddebuggerd_test.cpp727 siginfo_t siginfo; in raise_debugger_signal() local
728 siginfo.si_code = SI_QUEUE; in raise_debugger_signal()
729 siginfo.si_pid = getpid(); in raise_debugger_signal()
730 siginfo.si_uid = getuid(); in raise_debugger_signal()
736 siginfo.si_value.sival_int = dump_type == kDebuggerdNativeBacktrace; in raise_debugger_signal()
738 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), gettid(), BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in raise_debugger_signal()
/system/memory/libmemunreachable/
DHeapWalker.h67 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/
Dtypes.h36 siginfo_t* siginfo = nullptr; member
Dtombstone.h52 void engrave_tombstone_ucontext(int tombstone_fd, uint64_t abort_msg_address, siginfo_t* siginfo,