Home
last modified time | relevance | path

Searched refs:eventInfos (Results 1 - 11 of 11) sorted by relevance

/base/hiviewdfx/hiview/plugins/faultlogger/common/
H A Dlog_analyzer.cpp30 std::map<std::string, std::string>& eventInfos) in GetFingerRawString()
33 info.reason.compare("SERVICE_TIMEOUT") == 0) && !eventInfos["TIME_OUT"].empty()) { in GetFingerRawString()
34 eventInfos["LAST_FRAME"] = eventInfos["TIME_OUT"]; in GetFingerRawString()
37 if (info.reason.compare("SERVICE_BLOCK") == 0 && !eventInfos["QUEUE_NAME"].empty()) { in GetFingerRawString()
38 eventInfos["LAST_FRAME"] = eventInfos["QUEUE_NAME"]; in GetFingerRawString()
43 eventInfos["FIRST_FRAME"] + eventInfos["SECOND_FRAME"] + eventInfos["LAST_FRAM in GetFingerRawString()
29 GetFingerRawString(std::string& fingerRawString, const FaultLogInfo& info, std::map<std::string, std::string>& eventInfos) GetFingerRawString() argument
47 AnalysisFaultlog(const FaultLogInfo& info, std::map<std::string, std::string>& eventInfos) AnalysisFaultlog() argument
[all...]
H A Dlog_analyzer.h23 bool AnalysisFaultlog(const FaultLogInfo& info, std::map<std::string, std::string>& eventInfos);
/base/hiviewdfx/hiview/utility/smart_parser/test/moduletest/common/
H A Dsmart_parser_module_test.cpp70 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "CPP_CRASH"); in HWTEST_F() local
76 EXPECT_STREQ(eventInfos["PNAME"].c_str(), "com.ohos.launcher"); in HWTEST_F()
77 EXPECT_EQ(eventInfos["END_STACK"].size() > 0, true); in HWTEST_F()
81 StringUtil::SplitStr(eventInfos["END_STACK"], LogUtil::SPLIT_PATTERN, trace, false, false); in HWTEST_F()
110 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "JS_ERROR"); in HWTEST_F() local
116 EXPECT_STREQ(eventInfos["PNAME"].c_str(), "com.example.jsinject"); in HWTEST_F()
117 EXPECT_EQ(eventInfos["END_STACK"].size() > 0, true); in HWTEST_F()
121 StringUtil::SplitStr(eventInfos["END_STACK"], LogUtil::SPLIT_PATTERN, trace, false, false); in HWTEST_F()
150 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "APP_FREEZE"); in HWTEST_F() local
156 EXPECT_EQ(eventInfos["END_STAC in HWTEST_F()
198 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "PANIC"); HWTEST_F() local
233 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "HWWATCHDOG"); HWTEST_F() local
264 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "HWWATCHDOG"); HWTEST_F() local
282 auto eventInfos = SmartParser::Analysis("", "/system/etc/hiview/reliability", "TEST"); HWTEST_F() local
317 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "RUST_PANIC"); HWTEST_F() local
754 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "BOOTFAIL"); HWTEST_F() local
789 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "PANIC"); HWTEST_F() local
824 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "PANIC"); HWTEST_F() local
855 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "BOOTFAIL"); HWTEST_F() local
879 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "SENSORHUBCRASH"); HWTEST_F() local
903 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "MODEMCRASH"); HWTEST_F() local
927 auto eventInfos = SmartParser::Analysis(faultFile, TEST_CONFIG, "PANIC"); HWTEST_F() local
[all...]
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/
H A Dbbox_detector_plugin.cpp122 auto eventInfos = SmartParser::Analysis(dynamicPaths, LOGPARSECONFIG, name); in HandleBBoxEvent() local
123 Tbox::FilterTrace(eventInfos); in HandleBBoxEvent()
125 sysEvent->SetEventValue("FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : in HandleBBoxEvent()
126 StringUtil::EscapeJsonStringValue(eventInfos["FIRST_FRAME"])); in HandleBBoxEvent()
127 sysEvent->SetEventValue("SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : in HandleBBoxEvent()
128 StringUtil::EscapeJsonStringValue(eventInfos["SECOND_FRAME"])); in HandleBBoxEvent()
129 sysEvent->SetEventValue("LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/ " : in HandleBBoxEvent()
130 StringUtil::EscapeJsonStringValue(eventInfos["LAST_FRAME"])); in HandleBBoxEvent()
131 sysEvent->SetEventValue("FINGERPRINT", Tbox::CalcFingerPrint(event + module + eventInfos["FIRST_FRAME"] + in HandleBBoxEvent()
132 eventInfos["SECOND_FRAM in HandleBBoxEvent()
[all...]
/base/hiviewdfx/hiview/utility/analysis_faultlog/
H A Danalysis_faultlog.cpp47 auto eventInfos = OHOS::HiviewDFX::SmartParser::Analysis(eventPath, SMART_PARSER_PATH, eventType); in SmartParser() local
52 PrintEventInfo(eventInfos, "SmartParser::Analysis result:"); in SmartParser()
54 return eventInfos; in SmartParser()
97 auto eventInfos = SmartParser(logPath, eventType); in main() local
98 Tbox(eventInfos, eventType); in main()
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/unittest/
H A Dbbox_detector_unit_test.cpp122 std::map<std::string, std::string> eventInfos; in HWTEST_F() local
123 eventInfos.insert(std::pair("END_STACK", stack)); in HWTEST_F()
124 eventInfos.insert(std::pair("PNAME", "PANIC")); in HWTEST_F()
125 eventInfos.insert(std::pair("Eventid", "901000002")); in HWTEST_F()
126 Tbox::FilterTrace(eventInfos); in HWTEST_F()
128 EXPECT_STREQ(eventInfos["FIRST_FRAME"].c_str(), "sysrq_handle_term+0x0/0x94"); in HWTEST_F()
129 EXPECT_STREQ(eventInfos["SECOND_FRAME"].c_str(), "__handle_sysrq+0x15c/0x184"); in HWTEST_F()
/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/
H A Dutility_common_utils_test.cpp235 std::map<std::string, std::string> eventInfos; in HWTEST_F()
236 eventInfos.insert(std::pair("END_STACK", stack)); in HWTEST_F()
237 eventInfos.insert(std::pair("PNAME", "foundation")); in HWTEST_F()
238 Tbox::FilterTrace(eventInfos); in HWTEST_F()
240 EXPECT_STREQ(eventInfos["FIRST_FRAME"].c_str(), "/system/lib64/libbms.z.so(3256be1e0b8fdc2b4e25a28f1c2086eb)"); in HWTEST_F()
241 EXPECT_STREQ(eventInfos["SECOND_FRAME"].c_str(), "/system/lib64/libbms.z.so(3256be1e0b8fdc2b4e25a28f1c2086eb)"); in HWTEST_F()
242 EXPECT_STREQ(eventInfos["LAST_FRAME"].c_str(), in HWTEST_F()
273 std::map<std::string, std::string> eventInfos; in HWTEST_F()
274 eventInfos.insert(std::pair("END_STACK", stack)); in HWTEST_F()
275 eventInfos in HWTEST_F()
[all...]
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dapp_event_processor_proxy.cpp63 std::vector<AppEventInfo> eventInfos; in OnEvents()
66 eventInfos.emplace_back(CreateAppEventInfo(event)); in OnEvents()
69 if (proxyPtr->processor_->OnReport(observerSeq, userIds, userProperties, eventInfos) == 0) { in OnEvents()
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlogger.cpp500 std::map<std::string, std::string> eventInfos; in UpdateSysEvent() local
501 if (AnalysisFaultlog(info, eventInfos)) { in UpdateSysEvent()
506 sysEvent.SetEventValue("FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : in UpdateSysEvent()
507 StringUtil::EscapeJsonStringValue(eventInfos["FIRST_FRAME"])); in UpdateSysEvent()
508 sysEvent.SetEventValue("SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : in UpdateSysEvent()
509 StringUtil::EscapeJsonStringValue(eventInfos["SECOND_FRAME"])); in UpdateSysEvent()
510 sysEvent.SetEventValue("LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/" : in UpdateSysEvent()
511 StringUtil::EscapeJsonStringValue(eventInfos["LAST_FRAME"])); in UpdateSysEvent()
514 sysEvent.SetEventValue("FINGERPRINT", eventInfos["fingerPrint"]); in UpdateSysEvent()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_util.cpp622 napi_value eventInfos = CreateArray(env); in CreateEventGroups() local
624 SetElement(env, eventInfos, i, CreateEventInfo(env, it->second[i])); in CreateEventGroups()
628 SetNamedProperty(env, obj, EVENT_INFOS_PROPERTY, eventInfos); in CreateEventGroups()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlogger_unittest.cpp544 std::map<std::string, std::string> eventInfos; in HWTEST_F() local
545 ASSERT_EQ(AnalysisFaultlog(info, eventInfos), false); in HWTEST_F()
546 ASSERT_EQ(!eventInfos["fingerPrint"].empty(), true); in HWTEST_F()
567 std::map<std::string, std::string> eventInfos; in HWTEST_F() local
568 ASSERT_EQ(AnalysisFaultlog(info, eventInfos), false); in HWTEST_F()
569 ASSERT_EQ(!eventInfos["fingerPrint"].empty(), true); in HWTEST_F()

Completed in 13 milliseconds