Lines Matching refs:DfxCrasher
90 {"SIGFPE", "raise a SIGFPE", &DfxCrasher::RaiseFloatingPointException},
91 {"SIGILL", "raise a SIGILL", &DfxCrasher::RaiseIllegalInstructionException},
92 {"SIGSEGV", "raise a SIGSEGV", &DfxCrasher::RaiseSegmentFaultException},
93 {"SIGTRAP", "raise a SIGTRAP", &DfxCrasher::RaiseTrapException},
94 {"SIGABRT", "raise a SIGABRT", &DfxCrasher::RaiseAbort},
95 {"SIGBUS", "raise a SIGBUS", &DfxCrasher::RaiseBusError},
97 {"triSIGILL", "trigger a SIGILL", &DfxCrasher::IllegalInstructionException},
98 {"triSIGSEGV", "trigger a SIGSEGV", &DfxCrasher::SegmentFaultException},
99 {"triSIGTRAP", "trigger a SIGTRAP", &DfxCrasher::TriggerTrapException},
100 {"triSIGABRT", "trigger a SIGABRT", &DfxCrasher::Abort},
102 {"Loop", "trigger a ForeverLoop", &DfxCrasher::Loop},
103 {"MaxStack", "trigger SIGSEGV after 64 function call", &DfxCrasher::MaxStackDepth},
105 &DfxCrasher::MaxMethodNameTest12345678901234567890123456789012345678901234567890ABC},
107 {"STACKOF", "trigger a stack overflow", &DfxCrasher::StackOverflow},
108 {"OOM", "trigger out of memory", &DfxCrasher::Oom},
109 {"PCZero", "trigger a crash with pc equal zero", &DfxCrasher::ProgramCounterZero},
110 {"MTCrash", "trigger a multi-thread crash", &DfxCrasher::MultiThreadCrash},
111 {"StackOver64", "trigger SIGSEGV after 70 function call", &DfxCrasher::StackOver64},
112 {"StackTop", "trigger SIGSEGV to make sure stack top", &DfxCrasher::StackTop},
113 {"DumpCrash", "trigger a SIGDUMP", &DfxCrasher::DoDumpCrash},
114 {"CrashInLambda", "trigger a crash in lambda", &DfxCrasher::CrashInLambda},
115 {"ExitHook", "trigger a process exit using exit(0)", &DfxCrasher::TestExitHook},
116 {"SigHook", "register sigsegv signal handler", &DfxCrasher::TestSigHook},
117 {"StackCorruption", "reset values stored on stack", &DfxCrasher::StackCorruption},
118 …{"StackCorruption2", "reset values stored in the middle of the stack", &DfxCrasher::StackCorruptio…
137 &DfxCrasher::PrintFatalMessageInLibc},
139 &DfxCrasher::TestGetCrashObj},
142 &DfxCrasher::AsyncStacktrace},
145 &DfxCrasher::TestDeadlock},
151 &DfxCrasher::CrashInFFRT},
153 &DfxCrasher::CrashInLibuvWork},
155 &DfxCrasher::CrashInLibuvTimer},
157 &DfxCrasher::CrashInLibuvWorkDone},
164 DfxCrasher::DfxCrasher() {} in DfxCrasher() function in DfxCrasher
165 DfxCrasher::~DfxCrasher() {} in ~DfxCrasher()
167 DfxCrasher &DfxCrasher::GetInstance() in GetInstance()
169 static DfxCrasher instance; in GetInstance()
173 int DfxCrasher::TestDeadlock() in TestDeadlock()
225 NOINLINE int DfxCrasher::StackCorruption() in StackCorruption()
232 NOINLINE int DfxCrasher::StackCorruption2() in StackCorruption2()
239 NOINLINE int DfxCrasher::RaiseFloatingPointException() in RaiseFloatingPointException()
245 NOINLINE int DfxCrasher::RaiseIllegalInstructionException() in RaiseIllegalInstructionException()
251 NOINLINE int DfxCrasher::RaiseSegmentFaultException() in RaiseSegmentFaultException()
258 NOINLINE int DfxCrasher::RaiseTrapException() in RaiseTrapException()
264 NOINLINE int DfxCrasher::RaiseAbort() in RaiseAbort()
271 NOINLINE int DfxCrasher::RaiseBusError() in RaiseBusError()
277 NOINLINE int DfxCrasher::IllegalInstructionException(void) in IllegalInstructionException()
291 NOINLINE int DfxCrasher::TriggerSegmentFaultException() in TriggerSegmentFaultException()
300 NOINLINE int DfxCrasher::TriggerTrapException() in TriggerTrapException()
308 NOINLINE int DfxCrasher::Abort(void) in Abort()
315 NOINLINE int DfxCrasher::SegmentFaultException(void) in SegmentFaultException()
322 NOINLINE int DfxCrasher::MaxStackDepth() in MaxStackDepth()
327 NOINLINE int DfxCrasher::MaxMethodNameTest12345678901234567890123456789012345678901234567890ABC() in MaxMethodNameTest12345678901234567890123456789012345678901234567890ABC()
346 NOINLINE int DfxCrasher::StackOverflow() in StackOverflow()
365 NOINLINE int DfxCrasher::Oom() in Oom()
405 NOINLINE int DfxCrasher::ProgramCounterZero() in ProgramCounterZero()
422 NOINLINE int DfxCrasher::MultiThreadCrash() in MultiThreadCrash()
439 NOINLINE int DfxCrasher::StackOver64() in StackOver64()
456 NOINLINE int DfxCrasher::StackTop() in StackTop()
484 void DfxCrasher::PrintUsage() const in PrintUsage()
497 NOINLINE int DfxCrasher::CrashInLambda() in CrashInLambda()
504 NOINLINE int DfxCrasher::DoDumpCrash() in DoDumpCrash()
514 NOINLINE int DfxCrasher::TestExitHook() in TestExitHook()
525 NOINLINE int DfxCrasher::TestSigHook() in TestSigHook()
531 NOINLINE int DfxCrasher::PrintFatalMessageInLibc() in PrintFatalMessageInLibc()
551 NOINLINE int DfxCrasher::TestGetCrashObj() in TestGetCrashObj()
577 NOINLINE int DfxCrasher::AsyncStacktrace() in AsyncStacktrace()
614 NOINLINE int DfxCrasher::CrashInFFRT(const std::string &debug) in CrashInFFRT()
647 NOINLINE int DfxCrasher::CrashInLibuvWork(const std::string &debug) in CrashInLibuvWork()
669 NOINLINE int DfxCrasher::CrashInLibuvTimer(const std::string &debug) in CrashInLibuvTimer()
696 NOINLINE int DfxCrasher::CrashInLibuvWorkDone(const std::string &debug) in CrashInLibuvWorkDone()
710 void* DfxCrasher::DoCrashInThread(void * inputArg) in DoCrashInThread()
714 return reinterpret_cast<void*>(DfxCrasher::GetInstance().ParseAndDoCrash(arg)); in DoCrashInThread()
717 uint64_t DfxCrasher::DoActionOnSubThread(const char *arg) const in DoActionOnSubThread()
720 pthread_create(&t, nullptr, DfxCrasher::DoCrashInThread, const_cast<char*>(arg)); in DoActionOnSubThread()
726 int DfxCrasher::Loop() in Loop()
736 uint64_t DfxCrasher::ParseAndDoCrash(const char *arg) const in ParseAndDoCrash()
775 DfxCrasher::GetInstance().PrintUsage(); in main()
778 DfxCrasher::GetInstance().PrintUsage(); in main()
782 …std::cout << "ParseAndDoCrash done:" << DfxCrasher::GetInstance().ParseAndDoCrash(argv[1]) << "!\n… in main()