Lines Matching refs:sysEvent

422     auto sysEvent = std::static_pointer_cast<SysEvent>(event);  in JudgmentRateLimiting()  local
423 long pid = sysEvent->GetPid(); in JudgmentRateLimiting()
440 sysEvent->eventId_, sysEvent->eventName_.c_str(), eventPid.c_str(), interval); in JudgmentRateLimiting()
447 sysEvent->eventId_, sysEvent->eventName_.c_str(), eventPid.c_str(), interval); in JudgmentRateLimiting()
481 auto sysEvent = std::static_pointer_cast<SysEvent>(event); in OnEvent() local
483 sysEvent->AsJsonStr().c_str()); in OnEvent()
485 info.time = sysEvent->happenTime_; in OnEvent()
486 info.id = sysEvent->GetUid(); in OnEvent()
487 info.pid = sysEvent->GetPid(); in OnEvent()
493 …info.module = isJsError ? sysEvent->GetEventValue("PACKAGE_NAME") : sysEvent->GetEventValue("MODUL… in OnEvent()
494 info.reason = sysEvent->GetEventValue("REASON"); in OnEvent()
495 auto summary = sysEvent->GetEventValue("SUMMARY"); in OnEvent()
496 auto pName = isJsError ? sysEvent->GetEventValue("PNAME") : info.module; in OnEvent()
498 info.sectionMap = sysEvent->GetKeyValuePairs(); in OnEvent()
500 sysEvent->SetEventValue("FAULT_TYPE", std::to_string(info.faultLogType)); in OnEvent()
501 sysEvent->SetEventValue("MODULE", info.module); in OnEvent()
502 sysEvent->SetEventValue("LOG_PATH", info.logPath); in OnEvent()
503 sysEvent->SetEventValue("HAPPEN_TIME", sysEvent->happenTime_); in OnEvent()
504 sysEvent->SetEventValue("tz_", TimeUtil::GetTimeZone()); in OnEvent()
505 sysEvent->SetEventValue("VERSION", info.sectionMap["VERSION"]); in OnEvent()
506 sysEvent->SetEventValue("VERSION_CODE", info.sectionMap["VERSION_CODE"]); in OnEvent()
507 sysEvent->SetEventValue("PRE_INSTALL", info.sectionMap["PRE_INSTALL"]); in OnEvent()
508 sysEvent->SetEventValue("FOREGROUND", info.sectionMap["FOREGROUND"]); in OnEvent()
511 sysEvent->SetEventValue("PNAME", pName.empty() ? "/" : pName); in OnEvent()
512 sysEvent->SetEventValue("FIRST_FRAME", eventInfos["FIRST_FRAME"].empty() ? "/" : in OnEvent()
514 sysEvent->SetEventValue("SECOND_FRAME", eventInfos["SECOND_FRAME"].empty() ? "/" : in OnEvent()
516 sysEvent->SetEventValue("LAST_FRAME", eventInfos["LAST_FRAME"].empty() ? "/" : in OnEvent()
519 sysEvent->SetEventValue("FINGERPRINT", eventInfos["FINGERPRINT"]); in OnEvent()
521 ReportJsErrorToAppEvent(sysEvent); in OnEvent()
526 ReportSanitizerToAppEvent(sysEvent); in OnEvent()
549 void Faultlogger::ReportJsErrorToAppEvent(std::shared_ptr<SysEvent> sysEvent) const in ReportJsErrorToAppEvent()
551 std::string summary = StringUtil::UnescapeJsonStringValue(sysEvent->GetEventValue("SUMMARY")); in ReportJsErrorToAppEvent()
555 params["time"] = sysEvent->happenTime_; in ReportJsErrorToAppEvent()
557 std::string foreground = sysEvent->GetEventValue("FOREGROUND"); in ReportJsErrorToAppEvent()
564 std::string logPath = sysEvent->GetEventValue("LOG_PATH"); in ReportJsErrorToAppEvent()
569 params["bundle_version"] = sysEvent->GetEventValue("VERSION"); in ReportJsErrorToAppEvent()
570 params["bundle_name"] = sysEvent->GetEventValue("PACKAGE_NAME"); in ReportJsErrorToAppEvent()
571 params["pid"] = sysEvent->GetPid(); in ReportJsErrorToAppEvent()
572 params["uid"] = sysEvent->GetUid(); in ReportJsErrorToAppEvent()
573 params["uuid"] = sysEvent->GetEventValue("FINGERPRINT"); in ReportJsErrorToAppEvent()
574 params["app_running_unique_id"] = sysEvent->GetEventValue("APP_RUNNING_UNIQUE_ID"); in ReportJsErrorToAppEvent()
578 GetHilog(sysEvent->GetPid(), log); in ReportJsErrorToAppEvent()
583 sysEvent->GetUid(), paramsStr.c_str()); in ReportJsErrorToAppEvent()
594 …EventPublish::GetInstance().PushEvent(sysEvent->GetUid(), APP_CRASH_TYPE, HiSysEvent::EventType::F… in ReportJsErrorToAppEvent()
609 void Faultlogger::ReportSanitizerToAppEvent(std::shared_ptr<SysEvent> sysEvent) const in ReportSanitizerToAppEvent()
611 std::string summary = StringUtil::UnescapeJsonStringValue(sysEvent->GetEventValue("SUMMARY")); in ReportSanitizerToAppEvent()
615 params["time"] = sysEvent->happenTime_; in ReportSanitizerToAppEvent()
616 std::string reason = sysEvent->GetEventValue("REASON"); in ReportSanitizerToAppEvent()
619 std::string logPath = sysEvent->GetEventValue("LOG_PATH"); in ReportSanitizerToAppEvent()
624 params["bundle_version"] = sysEvent->GetEventValue("VERSION"); in ReportSanitizerToAppEvent()
625 params["bundle_name"] = sysEvent->GetEventValue("MODULE"); in ReportSanitizerToAppEvent()
626 params["pid"] = sysEvent->GetPid(); in ReportSanitizerToAppEvent()
627 params["uid"] = sysEvent->GetUid(); in ReportSanitizerToAppEvent()
630 sysEvent->GetUid(), paramsStr.c_str()); in ReportSanitizerToAppEvent()
631 EventPublish::GetInstance().PushEvent(sysEvent->GetUid(), "ADDRESS_SANITIZER", in ReportSanitizerToAppEvent()