| /base/hiviewdfx/hiview/ |
| D | kernel_vendor.yaml | 46 FIRST_FRAME: {type: STRING, desc: first stack info} 47 SECOND_FRAME: {type: STRING, desc: second stack info} 48 LAST_FRAME: {type: STRING, desc: last stack info} 60 FIRST_FRAME: {type: STRING, desc: first stack info} 61 SECOND_FRAME: {type: STRING, desc: second stack info} 62 LAST_FRAME: {type: STRING, desc: last stack info} 74 FIRST_FRAME: {type: STRING, desc: first stack info} 75 SECOND_FRAME: {type: STRING, desc: second stack info} 76 LAST_FRAME: {type: STRING, desc: last stack info} 88 FIRST_FRAME: {type: STRING, desc: first stack info} [all …]
|
| D | hisysevent.yaml | 24 STACK: {type: STRING, desc: app_freeze stack} 38 FIRST_FRAME: {type: STRING, desc: first stack info} 39 SECOND_FRAME: {type: STRING, desc: second stack info} 40 LAST_FRAME: {type: STRING, desc: last stack info} 52 STACK: {type: STRING, desc: sys_freeze stack} 63 FIRST_FRAME: {type: STRING, desc: first stack info} 64 SECOND_FRAME: {type: STRING, desc: second stack info} 65 LAST_FRAME: {type: STRING, desc: last stack info} 68 STACK: 70 PID: {type: INT32, desc: stack pid} [all …]
|
| /base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/ |
| D | thread_sampler_test.cpp | 141 char* stack = new char[STACK_LENGTH]; variable 142 auto collectHandler = [&stack, collectFunc]() { in __anon498355ff0202() 144 collectFunc(stack, STACK_LENGTH, treeFormat); in __anon498355ff0202() 155 ASSERT_NE(stack, ""); 156 printf("stack:\n%s", stack); 157 delete[] stack; 187 char* stack = new char[STACK_LENGTH]; variable 188 auto collectHandler = [&stack, collectFunc]() { in __anon498355ff0402() 190 collectFunc(stack, STACK_LENGTH, treeFormat); in __anon498355ff0402() 200 ASSERT_NE(stack, ""); [all …]
|
| /base/hiviewdfx/hiview/utility/common_utils/include/ |
| D | log_parse.h | 21 #include <stack> 35 …void SetFrame(std::stack<std::string>& stack, std::map<std::string, std::string>& eventInfo) const; 38 …std::stack<std::string> GetStackTop(const std::vector<std::string>& validStack, const size_t num) … 45 std::vector<std::string> GetValidStack(size_t num, std::stack<std::string>& inStack) const; 46 …std::list<std::vector<std::string>> StackToMultipart(std::stack<std::string>& inStack, size_t num)… 47 …bool GetValidStack(int num, std::stack<std::string>& inStack, std::stack<std::string>& outStack) c… 48 …void MatchIgnoreLibrary(std::stack<std::string> inStack, std::stack<std::string>& outStack, size_t… 49 …std::string GetValidBlock(std::stack<std::string> inStack, std::vector<std::string>& lastPart) con…
|
| /base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
| D | thread_sampler_api.h | 33 /* To start sample stack with thread sampler. */ 36 /* To collect the stack infomation collected by thread sampler in string. 37 * stack: the string to save the stack infomation. 38 * size: the length of stack. 39 * treeFormat: collect stack infomation in tree format or not. 1 for tree format and 0 for not. 42 int ThreadSamplerCollect(char* stack, size_t size, int treeFormat = 1);
|
| D | thread_sampler.h | 45 uint64_t snapshotTime {0}; // end of stack copy in signal handler 46 uint64_t processTime {0}; // end of unwind and unique stack 47 uint8_t buffer[STACK_BUFFER_SIZE] {0}; // 16K stack buffer 75 … // Collect stack info, can be formed into tree format or not. Unsafe in multi-thread environments 76 bool CollectStack(std::string& stack, bool treeFormat = true);
|
| /base/hiviewdfx/hiview/utility/common_utils/ |
| D | log_parse.cpp | 25 // some stack function is invalid, so it should be ignored 92 * outStack : filter stack 94 bool LogParse::GetValidStack(int num, stack<string>& inStack, stack<string>& outStack) const in GetValidStack() 98 // count < 1: indicate stack is empty in GetValidStack() 103 // Automatically checks if it is a stack in GetValidStack() 112 stack<string> LogParse::GetStackTop(const vector<string>& validStack, const size_t num) const in GetStackTop() 115 stack<string> stackTop; in GetStackTop() 124 list<vector<string>> LogParse::StackToMultipart(stack<string>& inStack, size_t num) const in StackToMultipart() 126 stack<string> partStack; in StackToMultipart() 139 partStack = stack<string>(); in StackToMultipart() [all …]
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/dump_catcher/include/ |
| D | dfx_dump_catcher.h | 37 * @brief Dump native stack by specify pid and tid 41 * @param msg message of native stack 43 * @param isJson whether message of native stack is json formatted 50 * @brief Dump native and js mixed-stack by specify pid and tid 54 * @param msg message of native and js mixed-stack 60 * @brief Dump native stack by specify pid and tid to file 72 * @brief Dump native stack by multi-pid 76 * @param msg message of native stack 81 * @brief Dump stack of process 84 * @param msg message of stack [all …]
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/formatter/include/ |
| D | dfx_json_formatter.h | 30 * @brief Format Json string to stack string 33 * @param outStackStr output the stack string 39 * @brief Format kernel stack 41 * @param kernelStack kernel stack 42 * @param formattedStack formatted stack, eg #00 pc xxxx xxxxx.so 43 * @param jsonFormat whether return json format stack, default false
|
| /base/hiviewdfx/faultloggerd/ |
| D | README.md | 24 * DumpCatcher: stack information capture tool, which provides the function of capturing stack infor… 25 …rary crash log management client, which receives requests for file descriptors and stack exporting. 26 …r capturing process information, which provides the function of capturing stack information of the… 36 …tempts to execute a data segment. This signal may also be generated in the case of stack overflow.| 42 | 16 | SIGSTKFLT | Stack overflow | The stack overflows. … 54 │ ├── dump_catcher # Stack information capture tool 84 …mpCatcher allows an application to capture call stack information. It provides the API for printin… 93 …* `true`: Dumping of stack information is successful. Related information is stored in the `msg` s… 94 * `false`: Dumping of stack information has failed. 96 …* `pid`: ID of the process for dumping stack information. If all threads in the process need to be… [all …]
|
| /base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/ |
| D | xpower_event_js.cpp | 40 std::string stack = ""; in ReportXPowerJsStackSysEvent() local 41 bool succ = engine->BuildJsStackTrace(stack); in ReportXPowerJsStackSysEvent() 46 HiSysEvent::EventType::STATISTIC, "TAGNAME", tagName, "INFO", info, "STACKTRACE", stack); in ReportXPowerJsStackSysEvent() 58 std::string stack = ""; in ReportXPowerJsStackSysEvent() local 59 bool succ = panda::DFXJSNApi::BuildJsStackTrace(vm, stack); in ReportXPowerJsStackSysEvent() 64 HiSysEvent::EventType::STATISTIC, "TAGNAME", tagName, "INFO", info, "STACKTRACE", stack); in ReportXPowerJsStackSysEvent()
|
| D | xpower_event.cpp | 30 std::string stack = ""; in ReportXPowerStackSysEvent() local 31 bool succ = GetBacktrace(stack, true); // true means fp stack in ReportXPowerStackSysEvent() 36 HiSysEvent::EventType::STATISTIC, "TAGNAME", tagName, "INFO", info, "STACKTRACE", stack); in ReportXPowerStackSysEvent()
|
| /base/hiviewdfx/faultloggerd/interfaces/common/ |
| D | dfx_exception.h | 49 CRASH_UNWIND_ESTACK, /* Stack corruption */ 51 CRASH_LOG_ESTACKLOS = 401, /* Crash thread stack not found */ 52 CRASH_LOG_ECHILDSTACK, /* Child thread stack not found */ 55 CRASH_LOG_ESTACKMEMLOS, /* Fault stack not found */ 88 {CRASH_UNWIND_ESTACK, "Stack corruption." }, 89 {CRASH_LOG_ESTACKLOS, "Crash thread stack not found." }, 90 {CRASH_LOG_ECHILDSTACK, "Child thread stack not found." }, 93 {CRASH_LOG_ESTACKMEMLOS, "Fault stack not found." },
|
| /base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/include/ |
| D | xpower_event_common.h | 27 // tag name for XPower stack trace 30 // the propertity is an integer and used to control report stack info to XPower 31 // if set to 1, then it will report c++ stack and js stack info
|
| D | xpower_event.h | 23 * Used to report stack info to XPower 25 * @param tagName tag name used to track the stack 29 * @return 2 when dump stack failed. see @ERR_DUMP_STACK_FAILED
|
| D | xpower_event_js.h | 26 * Used to report js stack info to XPower 28 * @param tagName tag name used to track the stack 32 * @return 2 when dump stack failed. see @ERR_DUMP_STACK_FAILED
|
| D | xpower_event_jsvm.h | 25 * Used to report js stack info to XPower 27 * @param tagName tag name used to track the stack 31 * @return 2 when dump stack failed. see @ERR_DUMP_STACK_FAILED
|
| /base/hiviewdfx/hiview/plugins/eventlogger/ |
| D | event_logger.cpp | 473 bool EventLogger::IsKernelStack(const std::string& stack) in IsKernelStack() argument 475 return (!stack.empty() && stack.find("Stack backtrace") != std::string::npos); in IsKernelStack() 478 void EventLogger::GetNoJsonStack(std::string& stack, std::string& contentStack, in GetNoJsonStack() argument 482 stack = contentStack; in GetNoJsonStack() 484 } else if (DfxJsonFormatter::FormatKernelStack(contentStack, stack, isFormat)) { in GetNoJsonStack() 486 contentStack = stack; in GetNoJsonStack() 487 stack = ""; in GetNoJsonStack() 488 if (!isFormat || !DfxJsonFormatter::FormatJsonStack(contentStack, stack)) { in GetNoJsonStack() 489 stack = contentStack; in GetNoJsonStack() 493 stack = "Failed to format kernel stack\n"; in GetNoJsonStack() [all …]
|
| /base/hiviewdfx/hicollie/ |
| D | hisysevent.yaml | 24 STACK: {type: STRING, desc: stacktrace of service process} 34 STACK: {type: STRING, desc: stacktrace of service process} 44 STACK: {type: STRING, desc: stacktrace of service process} 54 STACK: {type: STRING, desc: stacktrace of service process}
|
| /base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
| D | sample_stack_printer.cpp | 124 std::string stack(""); in GetFullStack() local 129 return stack; in GetFullStack() 131 stack += ("RequestTime:" + requestTimeStr + "\nSnapshotTime:" + snapshotTimeStr + "\n"); in GetFullStack() 136 stack += frameStr; in GetFullStack() 138 stack += "\n"; in GetFullStack() 140 return stack; in GetFullStack() 157 std::string stack = Print(); in GetTreeStack() local 158 return stack; in GetTreeStack()
|
| /base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
| D | fault_stack_test.cpp | 77 * @tc.desc: check whether fault stack and register can be print out 106 std::unique_ptr<FaultStack> stack = std::make_unique<FaultStack>(childPid); variable 107 stack->CollectStackInfo(frames); 108 stack->CollectRegistersBlock(reg, maps); 109 stack->Print();
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/include/ |
| D | backtrace_local.h | 35 * if you want to get stack of the caller thread, 51 * if you want to get stack of the caller thread, 56 * @param enableKernelStack if set to true, when failed to get user stack, try to get kernel stack. 102 * @param enableKernelStack if set to true, when failed to get user stack, try to get kernel stack.
|
| /base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
| D | event_logger_test.cpp | 120 sysEvent->SetEventValue("STACK", "TEST\\nTEST\\nTEST"); 507 std::string stack = ""; variable 508 bool result = eventLogger->IsKernelStack(stack); 510 stack = "Stack backtrace"; 511 result = eventLogger->IsKernelStack(stack); 523 std::string stack = "TEST\\nTEST\\nTEST"; variable 532 sysEvent->SetEventValue("STACK", stack); 533 sysEvent->SetEventValue("MSG", stack); 536 eventLogger->GetAppFreezeStack(1, sysEvent, stack, "msg", kernelStack); 538 eventLogger->GetNoJsonStack(stack, contentStack, kernelStack, false); [all …]
|
| /base/hiviewdfx/faultloggerd/tools/process_dump/ |
| D | dfx_unwind_async_thread.cpp | 40 // 1: get crash stack in UnwindStack() 64 // 3: merge two stack in UnwindStack() 95 DFXLOG_ERROR("%s::Can not find map of async stack table", __func__); in GetSubmitterStack() 179 DFXLOG_ERROR("%s : Failed to parse unwind stack.", __func__); in UnwindThreadByParseStackIfNeed() 184 …" Failed to unwind stack, try to get unreliable call stack from #%02zu by reparsing thread stack.", in UnwindThreadByParseStackIfNeed()
|
| /base/hiviewdfx/faultloggerd/interfaces/innerkits/async_stack/include/ |
| D | async_stack.h | 27 // set stack id to TLS 30 // get stack id from TLS
|