/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/ |
H A D | event_logger_catcher_test.cpp | 262 int jsonFd = 1; in HWTEST_F() local 263 EXPECT_TRUE(ffrtCatcher->Catch(fd, jsonFd) > 0); in HWTEST_F() 301 int jsonFd = 1; in HWTEST_F() local 302 EXPECT_TRUE(dmesgCatcher->Catch(fd, jsonFd) > 0); in HWTEST_F() 305 EXPECT_TRUE(dmesgCatcher->Catch(fd, jsonFd) > 0); in HWTEST_F() 308 printf("dmesgCatcher result: %d\n", dmesgCatcher->Catch(fd, jsonFd)); in HWTEST_F() 311 printf("dmesgCatcher result: %d\n", dmesgCatcher->Catch(fd, jsonFd)); in HWTEST_F() 356 int jsonFd = 1; in HWTEST_F() local 357 bool ret = openStackCatcher->Catch(fd, jsonFd); in HWTEST_F() 361 ret = openStackCatcher->Catch(fd, jsonFd); in HWTEST_F() 405 int jsonFd = 1; HWTEST_F() local 603 int jsonFd = 1; HWTEST_F() local 648 int jsonFd = 1; HWTEST_F() local [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/include/ |
H A D | peer_binder_catcher.h | 32 int Catch(int fd, int jsonFd) override; 53 int fd, int jsonFd) const; 60 std::set<int> GetBinderPeerPids(int fd, int jsonFd) const; 64 void AddBinderJsonInfo(std::list<OutputBinderInfo> outputBinderInfoList, int jsonFd) const;
|
H A D | memory_catcher.h | 28 int Catch(int fd, int jsonFd) override;
|
H A D | binder_catcher.h | 28 int Catch(int fd, int jsonFd) override;
|
H A D | open_stacktrace_catcher.h | 28 int Catch(int fd, int jsonFd) override;
|
H A D | ffrt_catcher.h | 28 int Catch(int fd, int jsonFd) override;
|
H A D | event_log_catcher.h | 35 virtual int Catch(int fd, int jsonFd);
|
H A D | dmesg_catcher.h | 32 int Catch(int fd, int jsonFd) override;
|
H A D | shell_catcher.h | 32 int Catch(int fd, int jsonFd) override;
|
H A D | event_log_task.h | 44 EventLogTask(int fd, int jsonFd, std::shared_ptr<SysEvent> event);
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | vendor.cpp | 190 int jsonFd = FreezeJsonUtil::GetFd(mergeFilePath); in MergeFreezeJsonFile() local 191 if (jsonFd < 0) { in MergeFreezeJsonFile() 192 HIVIEW_LOGE("fail to open FreezeJsonFile! jsonFd: %{public}d", jsonFd); in MergeFreezeJsonFile() 195 HIVIEW_LOGI("success to open FreezeJsonFile! jsonFd: %{public}d", jsonFd); in MergeFreezeJsonFile() 198 FileUtil::SaveStringToFd(jsonFd, oss.str()); in MergeFreezeJsonFile() 199 FreezeJsonUtil::WriteKeyValue(jsonFd, "domain", watchPoint.GetDomain()); in MergeFreezeJsonFile() 200 FreezeJsonUtil::WriteKeyValue(jsonFd, "stringId", watchPoint.GetStringId()); in MergeFreezeJsonFile() 201 FreezeJsonUtil::WriteKeyValue(jsonFd, "timestam in MergeFreezeJsonFile() [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/ |
H A D | peer_binder_catcher.cpp | 76 int PeerBinderCatcher::Catch(int fd, int jsonFd) in Catch() argument 90 std::set<int> pids = GetBinderPeerPids(fd, jsonFd); in Catch() 120 void PeerBinderCatcher::AddBinderJsonInfo(std::list<OutputBinderInfo> outputBinderInfoList, int jsonFd) const in AddBinderJsonInfo() 122 if (jsonFd < 0) { in AddBinderJsonInfo() 157 FreezeJsonUtil::WriteKeyValue(jsonFd, "peer_binder", binderInfoJsonStr); in AddBinderJsonInfo() 161 std::ifstream& fin, int fd, int jsonFd) const in BinderInfoParser() 168 AddBinderJsonInfo(outputBinderInfoList, jsonFd); in BinderInfoParser() 245 std::set<int> PeerBinderCatcher::GetBinderPeerPids(int fd, int jsonFd) const in GetBinderPeerPids() 258 std::map<int, std::list<PeerBinderCatcher::BinderInfo>> manager = BinderInfoParser(fin, fd, jsonFd); in GetBinderPeerPids()
|
H A D | ffrt_catcher.cpp | 35 int FfrtCatcher::Catch(int fd, int jsonFd) in Catch() argument
|
H A D | binder_catcher.cpp | 43 int BinderCatcher::Catch(int fd, int jsonFd) in Catch() argument
|
H A D | memory_catcher.cpp | 37 int MemoryCatcher::Catch(int fd, int jsonFd) in Catch() argument
|
H A D | open_stacktrace_catcher.cpp | 67 int OpenStacktraceCatcher::Catch(int fd, int jsonFd) in Catch() argument
|
H A D | event_log_catcher.cpp | 60 int EventLogCatcher::Catch(int fd __UNUSED, int jsonFd __UNUSED) in Catch()
|
H A D | dmesg_catcher.cpp | 127 int DmesgCatcher::Catch(int fd, int jsonFd)
in Catch() argument
|
H A D | shell_catcher.cpp | 195 int ShellCatcher::Catch(int fd, int jsonFd)
in Catch() argument
|
H A D | event_log_task.cpp | 52 EventLogTask::EventLogTask(int fd, int jsonFd, std::shared_ptr<SysEvent> event) in EventLogTask() argument 54 targetJsonFd_(jsonFd), in EventLogTask()
|
/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 306 int jsonFd = -1; in StartLogCollect() local 310 jsonFd = FreezeJsonUtil::GetFd(jsonFilePath); in StartLogCollect() 317 WriteFreezeJsonInfo(fd, jsonFd, event, binderPids); in StartLogCollect() 322 std::unique_ptr<EventLogTask> logTask = std::make_unique<EventLogTask>(fd, jsonFd, event); in StartLogCollect() 342 if (jsonFd >= 0) { in StartLogCollect() 343 close(jsonFd); in StartLogCollect() 589 void EventLogger::GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event, in GetAppFreezeStack() argument 614 if (jsonFd >= 0) { in GetAppFreezeStack() 615 HIVIEW_LOGI("success to open FreezeJsonFile! jsonFd: %{public}d", jsonFd); in GetAppFreezeStack() 679 WriteFreezeJsonInfo(int fd, int jsonFd, std::shared_ptr<SysEvent> event, std::vector<std::string>& binderPids) WriteFreezeJsonInfo() argument [all...] |
/base/hiviewdfx/hiview/plugins/eventlogger/include/ |
H A D | event_logger.h | 94 void GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event, 101 bool WriteFreezeJsonInfo(int fd, int jsonFd, std::shared_ptr<SysEvent> event,
|