Home
last modified time | relevance | path

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

/base/startup/init/services/init/standard/
Dinit_signal_handler.c27 static void ProcessSignal(const struct signalfd_siginfo *siginfo) in ProcessSignal() argument
29 switch (siginfo->ssi_signo) { in ProcessSignal()
53 sigPID, siginfo->ssi_uid, procStat); in ProcessSignal()
67 INIT_LOGI("SigHandler, unsupported signal %d.", siginfo->ssi_signo); in ProcessSignal()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/
Dsignal_info.cpp24 void SignalInfo::FormatSignalInfo(std::stringstream &ss, const siginfo_t &siginfo) in FormatSignalInfo() argument
26 int32_t signo = siginfo.si_signo; in FormatSignalInfo()
27 int32_t code = siginfo.si_code; in FormatSignalInfo()
30 …ss << "@" << std::setw(8) << std::setfill('0') << std::hex << siginfo.si_addr << " "; // 8 : bit w… in FormatSignalInfo()
33 if (SI_FROMUSER(&siginfo) && (siginfo.si_pid != 0)) { in FormatSignalInfo()
34 ss << "form:" << std::to_string(siginfo.si_pid) << ":" << std::to_string(siginfo.si_uid); in FormatSignalInfo()
Dsignal_info.h24 static void FormatSignalInfo(std::stringstream &ss, const siginfo_t &siginfo);
/base/hiviewdfx/faultloggerd/tools/process_dump/
Dcppcrash_reporter.h32 CppCrashReporter(uint64_t time, siginfo_t siginfo, std::shared_ptr<DfxProcess> process) \ in CppCrashReporter() argument
33 : time_(time), siginfo_(siginfo), process_(process) in CppCrashReporter()
Ddfx_dump_request.h63 void SetSiginfo(const siginfo_t &siginfo);
97 siginfo_t siginfo; member
Ddfx_dump_request.cpp136 void ProcessDumpRequest::SetSiginfo(const siginfo_t &siginfo) in SetSiginfo() argument
138 siginfo_ = siginfo; in SetSiginfo()
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_standard_test.cpp49 void SignalHandler(const struct signalfd_siginfo *siginfo);
353 struct signalfd_siginfo siginfo = {}; variable
354 siginfo.ssi_signo = SIGCHLD;
355 siginfo.ssi_pid = 111; // 111 is pid
356 SignalHandler(&siginfo);
358 siginfo.ssi_signo = SIGTERM;
359 siginfo.ssi_pid = 111; // 111 is pid
360 SignalHandler(&siginfo);
362 siginfo.ssi_signo = 0;
363 siginfo.ssi_pid = 111; // 111 is pid
[all …]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/include/
Ddfx_signal_handler.h35 siginfo_t siginfo; member
/base/startup/init/test/unittest/init/
DSignalInitUnitTest.cpp30 static void ProcessSignal(const struct signalfd_siginfo *siginfo) in ProcessSignal() argument
/base/startup/appspawn/standard/
Dappspawn_service.c195 APPSPAWN_STATIC void SignalHandler(const struct signalfd_siginfo *siginfo) in SignalHandler() argument
197 APPSPAWN_LOGI("SignalHandler signum %d", siginfo->ssi_signo); in SignalHandler()
198 switch (siginfo->ssi_signo) { in SignalHandler()
204 HandleDiedPid(pid, siginfo->ssi_uid, status); in SignalHandler()
207 HandleDiedPid(siginfo->ssi_pid, siginfo->ssi_uid, 0); in SignalHandler()
219 APPSPAWN_LOGI("SigHandler, unsupported signal %d.", siginfo->ssi_signo); in SignalHandler()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/signal_handler/
Ddfx_signal_local_handler.c90 int ret = memcpy_s(&(g_request.siginfo), sizeof(siginfo_t), si, sizeof(siginfo_t)); in DFX_SignalHandler()
Ddfx_crash_local_handler.c214 PrintLog(fd, "Reason:Signal(%d)\n", request->siginfo.si_signo); in CrashLocalHandlerFd()
Ddfx_signal_handler.c504 memcpy(&(g_request.siginfo), si, sizeof(siginfo_t)); in DFX_SignalHandler()
/base/startup/init/services/loopevent/include/
Dloop_event.h162 typedef void (*LE_ProcessSignal)(const struct signalfd_siginfo *siginfo);