Home
last modified time | relevance | path

Searched refs:SysEvent (Results 1 – 25 of 93) sorted by relevance

1234

/ohos5.0/base/hiviewdfx/hiview/base/
H A Dsys_event.cpp103 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::HiviewDFX::SysEvent
121 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::HiviewDFX::SysEvent
127 SysEvent::SysEvent(const std::string& sender, PipelineEventProducer* handler, in SysEvent() function in OHOS::HiviewDFX::SysEvent
140 SysEvent::~SysEvent() in ~SysEvent()
153 void SysEvent::InitialMembers() in InitialMembers()
171 bool SysEvent::InitBuilder() in InitBuilder()
218 int64_t SysEvent::GetSeq() const in GetSeq()
233 int32_t SysEvent::GetPid() const in GetPid()
238 int32_t SysEvent::GetTid() const in GetTid()
248 int16_t SysEvent::GetTz() const in GetTz()
[all …]
H A Dlibhiviewbase.map41 "OHOS::HiviewDFX::SysEvent::totalCount_";
42 "OHOS::HiviewDFX::SysEvent::totalSize_";
69 "OHOS::HiviewDFX::SysEvent::GetPid() const";
73 "OHOS::HiviewDFX::SysEvent::GetSeq() const";
76 "OHOS::HiviewDFX::SysEvent::GetUid() const";
77 "OHOS::HiviewDFX::SysEvent::GetTid() const";
112 "OHOS::HiviewDFX::SysEvent::~SysEvent()";
125 "OHOS::HiviewDFX::SysEvent::SetSeq(long)";
172 vtable?for?OHOS::HiviewDFX::SysEvent;
178 "OHOS::HiviewDFX::SysEvent::AsJsonStr()";
[all …]
/ohos5.0/base/security/asset/services/core_service/src/
H A Dsys_event.rs29 struct SysEvent<'a> { struct
34 impl<'a> SysEvent<'a> { argument
68 SysEvent::new(EventType::Statistic) in upload_statistic_system_event()
69 .set_param(build_str_param!(SysEvent::FUNCTION, func_name)) in upload_statistic_system_event()
70 .set_param(build_number_param!(SysEvent::USER_ID, calling_info.user_id())) in upload_statistic_system_event()
71 .set_param(build_str_param!(SysEvent::CALLER, owner_info.clone())) in upload_statistic_system_event()
92 SysEvent::new(EventType::Fault) in upload_fault_system_event()
93 .set_param(build_str_param!(SysEvent::FUNCTION, func_name)) in upload_fault_system_event()
95 .set_param(build_str_param!(SysEvent::CALLER, owner_info.clone())) in upload_fault_system_event()
96 .set_param(build_number_param!(SysEvent::ERROR_CODE, e.code as i32)) in upload_fault_system_event()
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/include/
H A Devent_logger.h119 void StartFfrtDump(std::shared_ptr<SysEvent> event);
120 void CollectMemInfo(int fd, std::shared_ptr<SysEvent> event);
121 void SaveDbToFile(const std::shared_ptr<SysEvent>& event);
122 void StartLogCollect(std::shared_ptr<SysEvent> event);
124 bool JudgmentRateLimiting(std::shared_ptr<SysEvent> event);
125 bool WriteCommonHead(int fd, std::shared_ptr<SysEvent> event);
126 void GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event,
137 bool IsHandleAppfreeze(std::shared_ptr<SysEvent> event);
138 void CheckEventOnContinue(std::shared_ptr<SysEvent> event);
146 void WriteCallStack(std::shared_ptr<SysEvent> event, int fd);
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/
H A Devent_logger_test.cpp71 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("EventLoggerTest_001",
82 std::shared_ptr<SysEvent> sysEvent1 = std::make_shared<SysEvent>("GESTURE_NAVIGATION_BACK",
112 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>(testName,
143 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("EventLoggerTest_003",
254 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>(testName,
371 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>(testName,
398 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>(testName,
429 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>(testName,
459 std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>(testName,
528 std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>(testName,
[all …]
H A Devent_logger_plugin_test.cpp118 … std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>("Eventlogger004", nullptr, jsonStr);
137 … std::shared_ptr<SysEvent> event = std::make_shared<SysEvent>("Eventlogger005", nullptr, jsonStr);
/ohos5.0/base/hiviewdfx/hiview/plugins/crash_validator/
H A Dcrash_validator.h41 void AddEventToMap(int32_t pid, std::shared_ptr<SysEvent> sysEvent);
42 void ReportMatchEvent(std::string eventName, std::shared_ptr<SysEvent> sysEvent);
43 void ReportDisMatchEvent(std::shared_ptr<SysEvent> sysEvent);
45 std::shared_ptr<SysEvent> Convert2SysEvent(std::shared_ptr<Event>& event);
48 std::map<int32_t, std::shared_ptr<SysEvent>> processExitEvents_;
49 std::map<int32_t, std::shared_ptr<SysEvent>> cppCrashEvents_;
50 std::map<int32_t, std::shared_ptr<SysEvent>> cppCrashExceptionEvents_;
H A Dcrash_validator.cpp75 std::shared_ptr<SysEvent> CrashValidator::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent()
85 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
140 void CrashValidator::AddEventToMap(int32_t pid, std::shared_ptr<SysEvent> sysEvent) in AddEventToMap()
160 static bool IsNormalExitEvent(std::shared_ptr<SysEvent> sysEvent) in IsNormalExitEvent()
183 std::shared_ptr<SysEvent> sysEvent = Convert2SysEvent(event); in OnEvent()
225 void CrashValidator::ReportMatchEvent(std::string eventName, std::shared_ptr<SysEvent> sysEvent) in ReportMatchEvent()
254 void CrashValidator::ReportDisMatchEvent(std::shared_ptr<SysEvent> sysEvent) in ReportDisMatchEvent()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/utility/writer/include/
H A Dsys_event_doc_writer.h32 int Write(const std::shared_ptr<SysEvent>& sysEvent);
35 int WriteHeader(const std::shared_ptr<SysEvent>& sysEvent, uint32_t contentSize);
36 int WriteContent(const std::shared_ptr<SysEvent>& sysEvent, uint32_t contentSize);
39 int GetContentSize(const std::shared_ptr<SysEvent>& sysEvent, uint32_t& contentSize);
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/config/include/
H A Darea_policy.h34 bool IsAllowed(std::shared_ptr<SysEvent> event) const;
40 bool IsAllowedLevel(std::shared_ptr<SysEvent> event) const;
41 bool IsAllowedPrivacy(std::shared_ptr<SysEvent> event) const;
42 bool IsAllowedUe(std::shared_ptr<SysEvent> event) const;
/ohos5.0/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
H A Dsys_event_repeat_test.cpp75 SysEvent sysEvent("test", nullptr, sysEventCreator);
82 SysEvent repeatSysEvent("test", nullptr, sysEventCreator);
106 SysEvent sysEvent("test", nullptr, sysEventCreator);
114 SysEvent repeatSysEvent("test", nullptr, sysEventCreator);
125 SysEvent repackSysEvent("test", nullptr, sysEventCreator);
147 SysEvent sysEvent("test", nullptr, sysEventCreator);
154 SysEvent repeatSysEvent("test", nullptr, sysEventCreator);
H A Dsys_event_doc_test.cpp73 … std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
100 auto event = std::make_shared<SysEvent>("SysEventSource", nullptr, rawData);
106 auto eventMax = std::make_shared<SysEvent>("SysEventSource", nullptr, rawDataMax);
/ohos5.0/base/hiviewdfx/hiview/plugins/sys_dispatcher/
H A Dsys_dispatcher.cpp41 void SysEventDispatcher::DispatchEvent(std::shared_ptr<SysEvent>& sysEvent) in DispatchEvent()
53 std::shared_ptr<SysEvent> SysEventDispatcher::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent()
63 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/include/
H A Dsys_event_doc.h36 int Insert(const std::shared_ptr<SysEvent>& sysEvent);
40 int InitWriter(const std::shared_ptr<SysEvent>& sysEvent);
48 int UpdateCurFile(const std::shared_ptr<SysEvent>& sysEvent);
49 int CreateCurFile(const std::string& dir, const std::shared_ptr<SysEvent>& sysEvent);
H A Dsys_event_repeat_guard.h59 static void Check(SysEvent& event);
63 static bool IsEventRepeat(SysEvent& event);
65 static bool GetEventUniqueId(SysEvent& event, std::string& uniqueId);
/ohos5.0/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
H A Ddata_publisher.h44 void OnSysEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event);
52 void HandleAppUninstallEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event);
53 void HandleAppStartEvent(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event);
54 void HandleSubscribeTask(std::shared_ptr<OHOS::HiviewDFX::SysEvent> &event,
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/test/unittest/common/mock/
H A Dmock_function_jumble.cpp71 int64_t SysEvent::GetEventIntValue(const std::string& key) in GetEventIntValue()
76 int32_t SysEvent::GetUid() const in GetUid()
81 int32_t SysEvent::GetPid() const in GetPid()
86 std::string SysEvent::GetEventValue(const std::string& key) in GetEventValue()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Dplatform_monitor.cpp92 if (maxTotalCount_ < SysEvent::totalCount_) { in CollectPerfProfiler()
93 maxTotalCount_.store(SysEvent::totalCount_); in CollectPerfProfiler()
95 if (maxTotalSize_ < SysEvent::totalSize_) { in CollectPerfProfiler()
96 maxTotalSize_.store(SysEvent::totalSize_); in CollectPerfProfiler()
99 totalCount_ = SysEvent::totalCount_; in CollectPerfProfiler()
100 totalSize_ = static_cast<uint32_t>(SysEvent::totalSize_); in CollectPerfProfiler()
326 uint32_t curTotalCount_ = SysEvent::totalCount_; in ReportBreakProfile()
327 uint32_t curTotalSize_ = static_cast<uint32_t>(SysEvent::totalSize_); in ReportBreakProfile()
371 if (SysEvent::totalSize_ <= totalSizeBenchMark_) { in Breaking()
375 HIVIEW_LOGE("break as event reach critical size %{public}" PRId64, SysEvent::totalSize_.load()); in Breaking()
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
H A Dfold_event_cacher.h34 void ProcessEvent(std::shared_ptr<SysEvent> event);
37 void ProcessForegroundEvent(std::shared_ptr<SysEvent> event, AppEventRecord& appEventRecord);
38 void ProcessBackgroundEvent(std::shared_ptr<SysEvent> event, AppEventRecord& appEventRecord);
39 void ProcessSceenStatusChangedEvent(std::shared_ptr<SysEvent> event);
/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/test/unittest/
H A Dfold_app_usage_test.cpp183 auto sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
192 auto sysEvent1 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
196 auto sysEvent2 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
207 auto sysEvent3 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator2);
215 auto sysEvent4 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator3);
235 auto sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
244 auto sysEvent1 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
248 auto sysEvent2 = std::make_shared<SysEvent>("test", nullptr, sysEventCreator1);
/ohos5.0/base/hiviewdfx/hiview/base/include/
H A Dsys_event.h60 class SysEvent : public PipelineEvent {
62 SysEvent(const std::string& sender, PipelineEventProducer* handler,
65 SysEvent(const std::string& sender, PipelineEventProducer* handler,
67SysEvent(const std::string& sender, PipelineEventProducer* handler, std::shared_ptr<EventRaw::RawD…
68SysEvent(const std::string& sender, PipelineEventProducer* handler, SysEventCreator& sysEventCreat…
69 SysEvent(const std::string& sender, PipelineEventProducer* handler, const std::string& jsonStr);
70 ~SysEvent();
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/
H A Dsys_event_store.cpp82 std::shared_ptr<SysEvent> SysEventStore::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent()
92 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
106 std::shared_ptr<SysEvent> sysEvent = Convert2SysEvent(event); in OnEvent()
/ohos5.0/base/hiviewdfx/hiview/plugins/performance/
H A DEvtParser.h210 using SysEvent = OHOS::HiviewDFX::SysEvent; variable
216 static unsigned int ExtractLogIdFromEvt(const SysEvent &sysEvent) in ExtractLogIdFromEvt()
223 static std::shared_ptr <XperfEvt> FromHivewEvt(const SysEvent &e) in FromHivewEvt()
232 static XperfEvt ConvertToXperfEvent(const SysEvent &event) in ConvertToXperfEvent()
234 SysEvent &sysEvent = (SysEvent &) event; in ConvertToXperfEvent()
277 static void ConvertToXperfAnimatorEvent(XperfEvt &evt, SysEvent &sysEvent) in ConvertToXperfAnimatorEvent()
306 static void Validate(const SysEvent &event) in Validate()
308 SysEvent &sysEvent = (SysEvent &) event; in Validate()
/ohos5.0/base/hiviewdfx/hiview/base/test/unittest/common/
H A Dsys_event_test.cpp110 … std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
135 … std::shared_ptr<SysEvent> sysEvent = std::make_shared<SysEvent>("test", nullptr, sysEventCreator);
168 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
211 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
246 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
274 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
320 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
361 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
396 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, jsonStr);
426 auto sysEvent = std::make_shared<SysEvent>("SysEventSource", nullptr, GetOriginTestString());
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/
H A Devent_logger.cpp75 auto sysEvent = Event::DownCastTo<SysEvent>(event); in IsInterestedPipelineEvent()
89 long EventLogger::GetEventPid(std::shared_ptr<SysEvent> &sysEvent) in GetEventPid()
114 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(onEvent); in OnEvent()
185 void EventLogger::StartFfrtDump(std::shared_ptr<SysEvent> event) in StartFfrtDump()
271 void EventLogger::CollectMemInfo(int fd, std::shared_ptr<SysEvent> event) in CollectMemInfo()
295 void EventLogger::SaveDbToFile(const std::shared_ptr<SysEvent>& event) in SaveDbToFile()
318 void EventLogger::StartLogCollect(std::shared_ptr<SysEvent> event) in StartLogCollect()
510 void EventLogger::WriteCallStack(std::shared_ptr<SysEvent> event, int fd) in WriteCallStack()
727 bool EventLogger::JudgmentRateLimiting(std::shared_ptr<SysEvent> event) in JudgmentRateLimiting()
782 bool EventLogger::IsHandleAppfreeze(std::shared_ptr<SysEvent> event) in IsHandleAppfreeze()
[all …]

1234