Home
last modified time | relevance | path

Searched full:stack (Results 1 – 25 of 153) sorted by relevance

1234567

/base/hiviewdfx/hiview/
Dkernel_vendor.yaml46 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 …]
Dhisysevent.yaml24 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/hiview/utility/common_utils/include/
Dlog_parse.h21 #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/faultloggerd/interfaces/innerkits/dump_catcher/include/
Ddfx_dump_catcher.h37 * @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/hicollie/frameworks/native/thread_sampler/include/
Dthread_sampler_api.h33 /* 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, char* heaviestStack, size_t stackSize, size_t heaviestSize, i…
Dthread_sampler.h46 std::atomic<uint64_t> snapshotTime {0}; // end of stack copy in signal handler
47 std::atomic<uint64_t> processTime {0}; // end of unwind and unique stack
48 uint8_t buffer[STACK_BUFFER_SIZE] {0}; // 16K stack buffer
76 … // Collect stack info, can be formed into tree format or not. Unsafe in multi-thread environments
77 bool CollectStack(std::string& stack, bool treeFormat = true);
/base/hiviewdfx/hiview/utility/common_utils/
Dlog_parse.cpp25 // 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/formatter/include/
Ddfx_json_formatter.h30 * @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/
DREADME.md24 * 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/hicollie/frameworks/native/test/unittest/common/
Dthread_sampler_test.cpp213 std::string stack = stk; variable
215 ASSERT_NE(stack, "");
216 printf("stack:\n%s\nheaviestStack:\n%s", stack.c_str(), heaviestStack.c_str());
258 std::string stack = stk; variable
260 ASSERT_NE(stack, "");
261 printf("stack:\n%s\nheaviestStack:\n%s", stack.c_str(), heaviestStack.c_str());
301 std::string stack = stk; variable
303 ASSERT_NE(stack, "");
304 printf("stack:\n%s\nheaviestStack:\n%s", stack.c_str(), heaviestStack.c_str());
313 stack = stk;
[all …]
/base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/
Dxpower_event_js.cpp40 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()
Dxpower_event.cpp30 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/
Ddfx_exception.h49 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/
Dxpower_event_common.h27 // 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
Dxpower_event.h23 * 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
Dxpower_event_js.h26 * 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
Dxpower_event_jsvm.h25 * 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/hicollie/frameworks/native/thread_sampler/
Dsample_stack_printer.cpp118 std::string stack(""); in GetFullStack() local
123 return stack; in GetFullStack()
125 stack += ("RequestTime:" + requestTimeStr + "\nSnapshotTime:" + snapshotTimeStr + "\n"); in GetFullStack()
130 stack += frameStr; in GetFullStack()
132 stack += "\n"; in GetFullStack()
134 return stack; in GetFullStack()
143 std::string stack(""); in GetTreeStack() local
152 heaviestStack = "heaviest stack: \nstack counts: " + std::to_string(it->count) + "\n"; in GetTreeStack()
162 stack += Print(); in GetTreeStack()
163 return stack; in GetTreeStack()
Dthread_sampler.cpp98 XCOLLIE_LOGE("limit stack\n"); in AccessMem()
199 XCOLLIE_LOGE("Failed to get stack range\n"); in InitUnwinder()
383 /* for print full stack */ in ProcessStackBuffer()
387 /* for print tree format stack */ in ProcessStackBuffer()
438 bool ThreadSampler::CollectStack(std::string& stack, bool treeFormat) in CollectStack() argument
446 stack.clear(); in CollectStack()
449 stack += "/proc/self/wchan: \n"; in CollectStack()
454 stack += fileStr; in CollectStack()
455 stack += "\n"; in CollectStack()
467 stack = printer->GetFullStack(timeAndFrameList_); in CollectStack()
[all …]
/base/hiviewdfx/hiview/plugins/eventlogger/
Devent_logger.cpp541 bool EventLogger::IsKernelStack(const std::string& stack) in IsKernelStack() argument
543 return (!stack.empty() && stack.find("Stack backtrace") != std::string::npos); in IsKernelStack()
546 void EventLogger::GetNoJsonStack(std::string& stack, std::string& contentStack, in GetNoJsonStack() argument
550 stack = contentStack; in GetNoJsonStack()
552 } else if (DfxJsonFormatter::FormatKernelStack(contentStack, stack, isFormat)) { in GetNoJsonStack()
554 contentStack = stack; in GetNoJsonStack()
555 stack = ""; in GetNoJsonStack()
556 if (!isFormat || !DfxJsonFormatter::FormatJsonStack(contentStack, stack)) { in GetNoJsonStack()
557 stack = contentStack; in GetNoJsonStack()
561 stack = "Failed to format kernel stack\n"; in GetNoJsonStack()
[all …]
/base/hiviewdfx/hicollie/
Dhisysevent.yaml24 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/faultloggerd/test/unittest/process_dump/
Dfault_stack_test.cpp77 * @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/
Dbacktrace_local.h35 * 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/
Devent_logger_test.cpp120 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/
Ddfx_unwind_async_thread.cpp40 // 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()

1234567