Home
last modified time | relevance | path

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

/system/core/init/
Dsigchld_handler.cpp50 siginfo_t siginfo = {}; in ReapOneProcess() local
53 if (TEMP_FAILURE_RETRY(waitid(P_ALL, 0, &siginfo, WEXITED | WNOHANG | WNOWAIT)) != 0) { in ReapOneProcess()
58 const pid_t pid = siginfo.si_pid; in ReapOneProcess()
60 DCHECK_EQ(siginfo.si_signo, 0); in ReapOneProcess()
64 DCHECK_EQ(siginfo.si_signo, SIGCHLD); in ReapOneProcess()
101 if (siginfo.si_code == CLD_EXITED) { in ReapOneProcess()
102 LOG(INFO) << name << " exited with status " << siginfo.si_status << wait_string; in ReapOneProcess()
104 LOG(INFO) << name << " received signal " << siginfo.si_status << wait_string; in ReapOneProcess()
112 service->Reap(siginfo); in ReapOneProcess()
142 signalfd_siginfo siginfo; in HandleSignal() local
[all …]
Dinit.cpp706 static void HandleSigtermSignal(const signalfd_siginfo& siginfo) { in HandleSigtermSignal() argument
707 if (siginfo.ssi_pid != 0) { in HandleSigtermSignal()
709 LOG(DEBUG) << "Ignoring SIGTERM from pid " << siginfo.ssi_pid; in HandleSigtermSignal()
717 signalfd_siginfo siginfo; in HandleSignalFd() local
719 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(signal_fd, &siginfo, sizeof(siginfo))); in HandleSignalFd()
720 if (bytes_read != sizeof(siginfo)) { in HandleSignalFd()
725 switch (siginfo.ssi_signo) { in HandleSignalFd()
730 HandleSigtermSignal(siginfo); in HandleSignalFd()
733 LOG(ERROR) << "signal_fd: received unexpected signal " << siginfo.ssi_signo; in HandleSignalFd()
Dservice.h96 void Reap(const siginfo_t& siginfo);
104 void AddReapCallback(std::function<void(const siginfo_t& siginfo)> callback) { in AddReapCallback()
243 std::vector<std::function<void(const siginfo_t& siginfo)>> reap_callbacks_;
Dservice.cpp260 void Service::Reap(const siginfo_t& siginfo) { in Reap() argument
284 f(siginfo); in Reap()
287 if ((siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) && on_failure_reboot_target_) { in Reap()
304 was_last_exit_ok_ = siginfo.si_code == CLD_EXITED && siginfo.si_status == 0; in Reap()
336 bool should_upgrade_mte = siginfo.si_code != CLD_EXITED && in Reap()
337 siginfo.si_status == BIONIC_SIGNAL_ART_PROFILER && !upgraded_mte_; in Reap()
Dbuiltins.cpp1138 (*service)->AddReapCallback([function](const siginfo_t& siginfo) { in ExecWithFunctionOnFailure() argument
1139 if (siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) { in ExecWithFunctionOnFailure()
1140 function(StringPrintf("Exec service failed, status %d", siginfo.si_status)); in ExecWithFunctionOnFailure()
/system/core/debuggerd/handler/
Ddebuggerd_fallback.cpp86 siginfo_t* siginfo, void* abort_message) { in debuggerd_fallback_tombstone() argument
93 siginfo, ucontext); in debuggerd_fallback_tombstone()
236 siginfo_t siginfo = {}; in trace_handler() local
237 siginfo.si_code = SI_QUEUE; in trace_handler()
238 siginfo.si_value.sival_ptr = kDebuggerdFallbackSivalPtrRequestDump; in trace_handler()
239 siginfo.si_pid = getpid(); in trace_handler()
240 siginfo.si_uid = getuid(); in trace_handler()
242 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), tid, BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in trace_handler()
Ddebuggerd_handler.cpp316 siginfo_t* siginfo; member
329 if (thread_info->siginfo->si_signo == BIONIC_SIGNAL_DEBUGGER && in get_dump_type()
330 thread_info->siginfo->si_value.sival_int) { in get_dump_type()
368 {.iov_base = thread_info->siginfo, .iov_len = sizeof(siginfo_t)}, in debuggerd_dispatch_pseudothread()
495 if (thread_info->siginfo->si_signo != BIONIC_SIGNAL_DEBUGGER) { in debuggerd_dispatch_pseudothread()
537 struct siginfo dummy_info = {}; in debuggerd_signal_handler()
647 .siginfo = info, in debuggerd_signal_handler()
/system/core/debuggerd/
Dcrash_dump.cpp297 static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo, in ReadCrashInfo() argument
346 *siginfo = crash_info->data.s.siginfo; in ReadCrashInfo()
347 if (signal_has_si_addr(siginfo)) { in ReadCrashInfo()
349 process_info->maybe_tagged_fault_address = reinterpret_cast<uintptr_t>(siginfo->si_addr); in ReadCrashInfo()
351 untag_address(reinterpret_cast<uintptr_t>(siginfo->si_addr)); in ReadCrashInfo()
613 siginfo_t siginfo; in main() local
667 ReadCrashInfo(input_pipe, &siginfo, &info.registers, &process_info, &recoverable_crash); in main()
668 info.siginfo = &siginfo; in main()
669 info.signo = info.siginfo->si_signo; in main()
707 if (siginfo.si_signo == BIONIC_SIGNAL_DEBUGGER) { in main()
[all …]
Dprotocol.h89 siginfo_t siginfo; member
Ddebuggerd_test.cpp1586 siginfo_t siginfo; in raise_debugger_signal() local
1587 siginfo.si_code = SI_QUEUE; in raise_debugger_signal()
1588 siginfo.si_pid = getpid(); in raise_debugger_signal()
1589 siginfo.si_uid = getuid(); in raise_debugger_signal()
1595 siginfo.si_value.sival_int = dump_type == kDebuggerdNativeBacktrace; in raise_debugger_signal()
1597 if (syscall(__NR_rt_tgsigqueueinfo, getpid(), gettid(), BIONIC_SIGNAL_DEBUGGER, &siginfo) != 0) { in raise_debugger_signal()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp55 siginfo_t* siginfo, ucontext_t* ucontext) { in engrave_tombstone_ucontext() argument
79 .selinux_label = std::move(selinux_label), .siginfo = siginfo, .signo = siginfo->si_signo, in engrave_tombstone_ucontext()
Dtombstone_proto.cpp222 const siginfo *si = target_thread.siginfo; in dump_probable_cause()
732 CHECK(target_thread.siginfo != nullptr); in engrave_tombstone_proto()
754 if (!target_thread.siginfo) { in engrave_tombstone_proto()
760 sig.set_name(get_signame(target_thread.siginfo)); in engrave_tombstone_proto()
761 sig.set_code(target_thread.siginfo->si_code); in engrave_tombstone_proto()
762 sig.set_code_name(get_sigcode(target_thread.siginfo)); in engrave_tombstone_proto()
764 if (signal_has_sender(target_thread.siginfo, target_thread.pid)) { in engrave_tombstone_proto()
766 sig.set_sender_uid(target_thread.siginfo->si_uid); in engrave_tombstone_proto()
767 sig.set_sender_pid(target_thread.siginfo->si_pid); in engrave_tombstone_proto()
/system/memory/libmemunreachable/
DHeapWalker.h67 SIGSEGV, [this](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
68 this->HandleSegFault(handler, signal, siginfo, uctx);
71 SIGBUS, [this](ScopedSignalHandler& handler, int signal, siginfo_t* siginfo, void* uctx) {
72 this->HandleSegFault(handler, signal, siginfo, uctx);
/system/core/debuggerd/libdebuggerd/include/libdebuggerd/
Dtypes.h41 siginfo_t* siginfo = nullptr; member
Dtombstone.h62 siginfo_t* siginfo, ucontext_t* ucontext);
/system/unwinding/libunwindstack/offline_files/offset_arm/
Doutput.txt4 #03 pc 0032fed3 libunwindstack_test (unwindstack::SignalCallerHandler(int, siginfo*, void*)+26)
/system/unwinding/libunwindstack/offline_files/signal_fde_x86_64/
Doutput.txt4 …#03 pc 000000000058ac77 libunwindstack_test (unwindstack::SignalCallerHandler(int, siginfo*, void…
/system/unwinding/libunwindstack/offline_files/signal_load_bias_arm/
Doutput.txt4 …#03 pc 002a280b libunwindstack_unit_test (unwindstack::SignalCallerHandler(int, siginfo*, void*)+…
/system/unwinding/libunwindstack/offline_files/signal_fde_x86/
Doutput.txt4 #03 pc 0079af62 libunwindstack_test (unwindstack::SignalCallerHandler(int, siginfo*, void*)+50)