Home
last modified time | relevance | path

Searched refs:siginfo (Results 1 – 19 of 19) 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.cpp557 static void HandleSigtermSignal(const signalfd_siginfo& siginfo) { in HandleSigtermSignal() argument
558 if (siginfo.ssi_pid != 0) { in HandleSigtermSignal()
560 LOG(DEBUG) << "Ignoring SIGTERM from pid " << siginfo.ssi_pid; in HandleSigtermSignal()
568 signalfd_siginfo siginfo; in HandleSignalFd() local
569 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(signal_fd, &siginfo, sizeof(siginfo))); in HandleSignalFd()
570 if (bytes_read != sizeof(siginfo)) { in HandleSignalFd()
575 switch (siginfo.ssi_signo) { in HandleSignalFd()
580 HandleSigtermSignal(siginfo); in HandleSignalFd()
583 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.cpp259 void Service::Reap(const siginfo_t& siginfo) { in Reap() argument
280 f(siginfo); in Reap()
283 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.cpp299 siginfo_t* siginfo; member
312 if (thread_info->siginfo->si_signo == BIONIC_SIGNAL_DEBUGGER && in get_dump_type()
313 thread_info->siginfo->si_value.sival_int) { in get_dump_type()
351 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread()
453 if (thread_info->siginfo->si_signo != BIONIC_SIGNAL_DEBUGGER) { in debuggerd_dispatch_pseudothread()
495 struct siginfo dummy_info = {}; in debuggerd_signal_handler()
552 .siginfo = info, in debuggerd_signal_handler()
/system/core/debuggerd/
Dcrash_dump.cpp256 static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, in ReadCrashInfo() argument
299 *siginfo = crash_info->data.s.siginfo; in ReadCrashInfo()
300 if (signal_has_si_addr(siginfo)) { in ReadCrashInfo()
305 process_info->fault_address = get_fault_address(siginfo, &ucontext); in ReadCrashInfo()
460 siginfo_t siginfo; in main() local
491 ReadCrashInfo(input_pipe, &siginfo, &info.registers, &process_info); in main()
492 info.siginfo = &siginfo; in main()
493 info.signo = info.siginfo->si_signo; in main()
526 if (siginfo.si_signo == BIONIC_SIGNAL_DEBUGGER) { in main()
569 int signo = siginfo.si_signo; in main()
[all …]
Dprotocol.h89 siginfo_t siginfo; member
Ddebuggerd_test.cpp1028 siginfo_t siginfo; in raise_debugger_signal() local
1029 siginfo.si_code = SI_QUEUE; in raise_debugger_signal()
1030 siginfo.si_pid = getpid(); in raise_debugger_signal()
1031 siginfo.si_uid = getuid(); in raise_debugger_signal()
1037 siginfo.si_value.sival_int = dump_type == kDebuggerdNativeBacktrace; in raise_debugger_signal()
1039 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), gettid(), BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in raise_debugger_signal()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp155 if (thread_info.siginfo->si_signo == SIGILL) { in dump_signal_info()
167 if (signal_has_sender(thread_info.siginfo, thread_info.pid)) { in dump_signal_info()
168 get_signal_sender(sender_desc, sizeof(sender_desc), thread_info.siginfo); in dump_signal_info()
172 thread_info.siginfo->si_signo, get_signame(thread_info.siginfo), in dump_signal_info()
173 thread_info.siginfo->si_code, get_sigcode(thread_info.siginfo), sender_desc, addr_desc); in dump_signal_info()
380 if (thread_info.siginfo) { in dump_thread()
395 } else if (thread_info.siginfo && !(primary_thread && scudo_crash_data->CrashIsMine())) { in dump_thread()
396 dump_probable_cause(log, thread_info.siginfo, unwinder->GetMaps(), in dump_thread()
433 siginfo_t* si = thread_info.siginfo; in dump_thread()
553 void engrave_tombstone_ucontext(int tombstone_fd, uint64_t abort_msg_address, siginfo_t* siginfo, in engrave_tombstone_ucontext() argument
[all …]
Dgwp_asan.cpp75 if (signal_has_si_addr(thread_info.siginfo)) { in GwpAsanCrashData()
76 crash_address_ = reinterpret_cast<uintptr_t>(thread_info.siginfo->si_addr); in GwpAsanCrashData()
Dutility.cpp465 uintptr_t get_fault_address(const siginfo_t* siginfo, const ucontext_t* ucontext) { in get_fault_address() argument
490 return reinterpret_cast<uintptr_t>(siginfo->si_addr); in get_fault_address()
/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,
Dutility.h94 uintptr_t get_fault_address(const siginfo_t* siginfo, const ucontext_t* ucontext);
/system/bt/vendor_libs/test_vendor_lib/desktop/
Droot_canal_main.cc43 int signal_number = ctx->siginfo.si_signo; in crash_callback()
/system/bt/gd/facade/
Dfacade_main.cc63 int signal_number = ctx->siginfo.si_signo; in crash_callback()