/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
D | log_analyzer.cpp | 23 bool AnalysisFaultlog(const FaultLogInfo& info, std::map<std::string, std::string>& eventInfos) in AnalysisFaultlog() argument 26 eventInfos = SmartParser::Analysis(info.logPath, SMART_PARSER_PATH, eventType); in AnalysisFaultlog() 27 if (eventInfos.empty()) { in AnalysisFaultlog() 28 … eventInfos.insert(std::make_pair("fingerPrint", Tbox::CalcFingerPrint(info.module + info.reason + in AnalysisFaultlog() 33 Tbox::FilterTrace(eventInfos); in AnalysisFaultlog() 34 …std::string fingerPrint = Tbox::CalcFingerPrint(info.module + info.reason + eventInfos["FIRST_FRAM… in AnalysisFaultlog() 35 eventInfos["SECOND_FRAME"] + eventInfos["LAST_FRAME"], 0, FP_BUFFER); in AnalysisFaultlog() 36 eventInfos["fingerPrint"] = fingerPrint; in AnalysisFaultlog()
|
D | log_analyzer.h | 23 bool AnalysisFaultlog(const FaultLogInfo& info, std::map<std::string, std::string>& eventInfos);
|
/base/hiviewdfx/hiview/utility/smart_parser/test/moduletest/common/ |
D | smart_parser_module_test.cpp | 66 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "CPP_CRASH"); variable 72 EXPECT_STREQ(eventInfos["PNAME"].c_str(), "com.ohos.launcher"); 73 EXPECT_EQ(eventInfos["END_STACK"].size() > 0, true); 77 StringUtil::SplitStr(eventInfos["END_STACK"], LogUtil::SPLIT_PATTERN, trace, false, false); 106 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "JS_ERROR"); variable 112 EXPECT_STREQ(eventInfos["PNAME"].c_str(), "com.example.jsinject"); 113 EXPECT_EQ(eventInfos["END_STACK"].size() > 0, true); 117 StringUtil::SplitStr(eventInfos["END_STACK"], LogUtil::SPLIT_PATTERN, trace, false, false); 146 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "APP_FREEZE"); variable 152 EXPECT_EQ(eventInfos["END_STACK"].size() > 0, true); [all …]
|
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
D | bbox_detector_plugin.cpp | 102 …auto eventInfos = SmartParser::Analysis(dynamicPaths, logParseConfig_, sysEvent->GetEventValue("na… in HandleBBoxEvent() local 103 Tbox::FilterTrace(eventInfos); in HandleBBoxEvent() 105 sysEvent->SetEventValue("FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : in HandleBBoxEvent() 106 StringUtil::EscapeJsonStringValue(eventInfos["FIRST_FRAME"])); in HandleBBoxEvent() 107 sysEvent->SetEventValue("SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : in HandleBBoxEvent() 108 StringUtil::EscapeJsonStringValue(eventInfos["SECOND_FRAME"])); in HandleBBoxEvent() 109 sysEvent->SetEventValue("LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/ " : in HandleBBoxEvent() 110 StringUtil::EscapeJsonStringValue(eventInfos["LAST_FRAME"])); in HandleBBoxEvent() 111 …sysEvent->SetEventValue("FINGERPRINT", Tbox::CalcFingerPrint(event + module + eventInfos["FIRST_FR… in HandleBBoxEvent() 112 eventInfos["SECOND_FRAME"] + eventInfos["LAST_FRAME"], 0, FP_BUFFER)); in HandleBBoxEvent()
|
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/unittest/ |
D | bbox_detector_unit_test.cpp | 93 std::map<std::string, std::string> eventInfos; variable 94 eventInfos.insert(std::pair("END_STACK", stack)); 95 eventInfos.insert(std::pair("PNAME", "PANIC")); 96 eventInfos.insert(std::pair("Eventid", "901000002")); 97 Tbox::FilterTrace(eventInfos); 99 EXPECT_STREQ(eventInfos["FIRST_FRAME"].c_str(), "vfs_write+0x184/0x380"); 100 EXPECT_STREQ(eventInfos["SECOND_FRAME"].c_str(), "ksys_write+0x74/0xc8");
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_database.cpp | 74 std::map<std::string, std::string> eventInfos; in SaveFaultLogInfo() local 75 AnalysisFaultlog(info, eventInfos); in SaveFaultLogInfo() 86 "PNAME", eventInfos["PNAME"].empty() ? "/" : eventInfos["PNAME"], in SaveFaultLogInfo() 87 "FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : eventInfos["FIRST_FRAME"], in SaveFaultLogInfo() 88 "SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : eventInfos["SECOND_FRAME"], in SaveFaultLogInfo() 89 "LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/" : eventInfos["LAST_FRAME"], in SaveFaultLogInfo() 90 "FINGERPRINT", eventInfos["fingerPrint"].empty() ? "/" : eventInfos["fingerPrint"] in SaveFaultLogInfo()
|
D | faultlogger.cpp | 389 std::map<std::string, std::string> eventInfos; in OnEvent() local 390 if (AnalysisFaultlog(info, eventInfos)) { in OnEvent() 391 … sysEvent->SetEventValue("PNAME", eventInfos["PNAME"].empty() ? "/" : eventInfos["PNAME"]); in OnEvent() 392 sysEvent->SetEventValue("FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : in OnEvent() 393 … StringUtil::EscapeJsonStringValue(eventInfos["FIRST_FRAME"])); in OnEvent() 394 … sysEvent->SetEventValue("SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : in OnEvent() 395 … StringUtil::EscapeJsonStringValue(eventInfos["SECOND_FRAME"])); in OnEvent() 396 sysEvent->SetEventValue("LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/" : in OnEvent() 397 … StringUtil::EscapeJsonStringValue(eventInfos["LAST_FRAME"])); in OnEvent() 399 sysEvent->SetEventValue("FINGERPRINT", eventInfos["fingerPrint"]); in OnEvent()
|
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
D | faultlogger_unittest.cpp | 177 std::map<std::string, std::string> eventInfos; variable 178 ASSERT_EQ(AnalysisFaultlog(info, eventInfos), false); 179 ASSERT_EQ(!eventInfos["fingerPrint"].empty(), true);
|