/base/hiviewdfx/hiview/utility/common_utils/include/ |
H A 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) const; 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) const; 47 bool GetValidStack(int num, std::stack<std::string>& inStack, std::stack<std::string>& outStack) const; 48 void MatchIgnoreLibrary(std::stack<std::string> inStack, std::stack<st [all...] |
H A D | tbox.h | 20 #include <stack>
|
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/ |
H A D | thread_sampler_test.cpp | 141 char* stack = new char[STACK_LENGTH]; in HWTEST_F() local 142 auto collectHandler = [&stack, collectFunc]() { in HWTEST_F() 144 collectFunc(stack, STACK_LENGTH, treeFormat); in HWTEST_F() 155 ASSERT_NE(stack, ""); in HWTEST_F() 156 printf("stack:\n%s", stack); in HWTEST_F() 157 delete[] stack; in HWTEST_F() 187 char* stack = new char[STACK_LENGTH]; in HWTEST_F() local 188 auto collectHandler = [&stack, collectFunc]() { in HWTEST_F() 190 collectFunc(stack, STACK_LENGT in HWTEST_F() 232 char* stack = new char[STACK_LENGTH]; HWTEST_F() local 295 char* stack = new char[STACK_LENGTH]; HWTEST_F() local [all...] |
H A D | watchdog_inner_test.cpp | 303 std::string stack = "";
local 307 WatchdogInner::GetInstance().CollectStack(stack);
308 printf("stack:\n%s", stack.c_str());
343 std::string stack = "";
in HWTEST_F() local 344 WatchdogInner::GetInstance().CollectStack(stack);
in HWTEST_F() 345 printf("stack:\n%s", stack.c_str());
in HWTEST_F() 383 std::string stack = "STACK";
in HWTEST_F() local 384 ret = WriteStackToFd(getprocpid(), path, stack, "tes in HWTEST_F() [all...] |
/base/hiviewdfx/hiview/interfaces/innerkits/xpower_event/src/ |
H A 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()
|
H A 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/hiview/utility/common_utils/ |
H A 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<strin in StackToMultipart() 288 SetFrame(std::stack<std::string>& stack, std::map<std::string, std::string>& eventInfo) const SetFrame() argument [all...] |
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | sample_stack_printer.cpp | 124 std::string stack("");
in GetFullStack() 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()
|
H A D | thread_sampler_api.cpp | 35 int ThreadSamplerCollect(char* stack, size_t size, int treeFormat) in ThreadSamplerCollect() argument 41 if (strncpy_s(stack, size, stk.c_str(), len + 1) != EOK) { in ThreadSamplerCollect()
|
H A D | thread_sampler.cpp | 112 XCOLLIE_LOGE("limit stack\n");
in AccessMem() 219 XCOLLIE_LOGE("Failed to get stack range\n");
in InitUnwinder() 427 /* for print full stack */
in ProcessStackBuffer() 431 /* for print tree format stack */
in ProcessStackBuffer() 482 bool ThreadSampler::CollectStack(std::string& stack, bool treeFormat)
in CollectStack() argument 490 stack.clear();
in CollectStack() 492 if (!LoadStringFromFile("/proc/self/wchan", stack)) {
in CollectStack() 495 if (stack.empty()) {
in CollectStack() 496 stack += "empty";
in CollectStack() 498 stack in CollectStack() [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 564 bool EventLogger::IsKernelStack(const std::string& stack) in IsKernelStack() argument 566 return (!stack.empty() && stack.find("Stack backtrace") != std::string::npos); in IsKernelStack() 569 void EventLogger::GetNoJsonStack(std::string& stack, std::string& contentStack, in GetNoJsonStack() argument 573 stack = contentStack; in GetNoJsonStack() 575 } else if (DfxJsonFormatter::FormatKernelStack(contentStack, stack, isFormat)) { in GetNoJsonStack() 577 contentStack = stack; in GetNoJsonStack() 578 stack = ""; in GetNoJsonStack() 579 if (!isFormat || !DfxJsonFormatter::FormatJsonStack(contentStack, stack)) { in GetNoJsonStack() 580 stack in GetNoJsonStack() 589 GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event, std::string& stack, const std::string& msg, std::string& kernelStack) GetAppFreezeStack() argument 666 std::string stack; ParsePeerStack() local 683 std::string stack; WriteFreezeJsonInfo() local 729 GetFailedDumpStackMsg(std::string& stack, std::shared_ptr<SysEvent> event) GetFailedDumpStackMsg() argument [all...] |
/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
H A D | faultlog_util.cpp | 195 std::string stack; in GetThreadStack() local 197 return stack; in GetThreadStack() 201 return stack; in GetThreadStack() 204 return stack; in GetThreadStack() 209 return stack; in GetThreadStack() 225 stack.append(line + "\n"); in GetThreadStack() 233 return stack; in GetThreadStack()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dwarf_cfa_instructions.h | 21 #include <stack>
43 std::stack<RegLocState> saveRsStates_;
|
/base/update/updater/services/log/ |
H A D | dump.cpp | 25 thread_local std::stack<std::string> g_stageStack; 44 std::stack<std::string> &DumpStageHelper::GetDumpStack() in GetDumpStack()
|
/base/update/packaging_tools/ |
H A D | gigraph_process.py | 49 action_stack = topo_logical.stack() 156 self.stack = [] 167 self.stack.insert(0, index) 172 return self.stack 186 def stack(self): member in TopoLogical
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | fault_stack_test.cpp | 77 * @tc.desc: check whether fault stack and register can be print out 108 std::unique_ptr<FaultStack> stack = std::make_unique<FaultStack>(childPid); in HWTEST_F() local 109 stack->CollectStackInfo(frames); in HWTEST_F() 110 stack->CollectRegistersBlock(reg, maps); in HWTEST_F() 111 stack->Print(); in HWTEST_F()
|
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/ |
H A D | event_logger_test.cpp | 568 std::string stack = "";
569 bool result = eventLogger->IsKernelStack(stack);
571 stack = "Stack backtrace";
572 result = eventLogger->IsKernelStack(stack);
584 std::string stack = "TEST\\nTEST\\nTEST";
593 sysEvent->SetEventValue("STACK", stack);
594 sysEvent->SetEventValue("MSG", stack);
597 eventLogger->GetAppFreezeStack(1, sysEvent, stack, "msg", kernelStack);
599 eventLogger->GetNoJsonStack(stack, contentStack, kernelStack, false);
601 stack [all...] |
/base/hiviewdfx/hicollie/interfaces/ndk/ |
H A D | report_data.cpp | 65 if (!parcel.WriteString(errorObject.stack)) { in Marshalling() 66 XCOLLIE_LOGE("Stack [%{public}s] write string failed.", errorObject.stack.c_str()); in Marshalling()
|
/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
H A D | event_logger.h | 95 std::string& stack, const std::string& msg, std::string& kernelStack); 96 bool IsKernelStack(const std::string& stack); 97 void GetNoJsonStack(std::string& stack, std::string& contentStack, std::string& kernelStack, bool isFormat); 113 void GetFailedDumpStackMsg(std::string& stack, std::shared_ptr<SysEvent> event);
|
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | thread_sampler_api.h | 30 /* To start sample stack with thread sampler. */ 33 /* To collect the stack infomation collected by thread sampler in string. 34 * stack: the string to save the stack infomation. 35 * size: the length of stack. 36 * treeFormat: collect stack infomation in tree format or not. 1 for tree format and 0 for not. 39 int ThreadSamplerCollect(char* stack, size_t size, int treeFormat = 1);
|
/base/update/updater/services/include/log/ |
H A D | dump.h | 24 #include <stack> 81 static std::stack<std::string> &GetDumpStack();
|
/base/hiviewdfx/hicollie/frameworks/native/ |
H A D | watchdog_task.cpp | 241 std::string stack = ""; in SendEvent() local 242 GetBacktraceStringByTid(stack, watchdogTid, 0, true); in SendEvent() 245 "PROCESS_NAME", GetSelfProcName(), "MSG", sendMsg, "STACK", stack); in SendEvent() 271 XCOLLIE_LOGD("DumpUserStack dump init stack start"); in SendXCollieEvent() 275 XCOLLIE_LOGD("DumpUserStack dump init stack end"); in SendXCollieEvent() 280 std::string stack = ""; in SendXCollieEvent() local 284 stack = GetProcessStacktrace(); in SendXCollieEvent() 285 } else if (!GetBacktraceStringByTid(stack, watchdogTid, 0, true)) { in SendXCollieEvent() 291 "MSG", sendMsg, "STACK", stack + "\n"+ userStack); in SendXCollieEvent()
|
/base/hiviewdfx/hiview/base/logstore/ |
H A D | log_file.cpp | 18 #include <stack>
|
/base/hiviewdfx/hicollie/interfaces/ndk/include/ |
H A D | report_data.h | 28 std::string stack = ""; member
|
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
H A D | freeze_json_generator_unittest.cpp | 108 std::string stack = "[]";
in HWTEST_F() local 129 .InitThreads(stack)
in HWTEST_F()
|