Home
last modified time | relevance | path

Searched refs:jsonFd (Results 1 - 22 of 22) sorted by relevance

/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/test/unittest/common/
H A Devent_logger_catcher_test.cpp262 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 Dpeer_binder_catcher.h32 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 Dmemory_catcher.h28 int Catch(int fd, int jsonFd) override;
H A Dbinder_catcher.h28 int Catch(int fd, int jsonFd) override;
H A Dopen_stacktrace_catcher.h28 int Catch(int fd, int jsonFd) override;
H A Dffrt_catcher.h28 int Catch(int fd, int jsonFd) override;
H A Devent_log_catcher.h35 virtual int Catch(int fd, int jsonFd);
H A Ddmesg_catcher.h32 int Catch(int fd, int jsonFd) override;
H A Dshell_catcher.h32 int Catch(int fd, int jsonFd) override;
H A Devent_log_task.h44 EventLogTask(int fd, int jsonFd, std::shared_ptr<SysEvent> event);
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dvendor.cpp190 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 Dpeer_binder_catcher.cpp76 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 Dffrt_catcher.cpp35 int FfrtCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Dbinder_catcher.cpp43 int BinderCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Dmemory_catcher.cpp37 int MemoryCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Dopen_stacktrace_catcher.cpp67 int OpenStacktraceCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Devent_log_catcher.cpp60 int EventLogCatcher::Catch(int fd __UNUSED, int jsonFd __UNUSED) in Catch()
H A Ddmesg_catcher.cpp127 int DmesgCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Dshell_catcher.cpp195 int ShellCatcher::Catch(int fd, int jsonFd) in Catch() argument
H A Devent_log_task.cpp52 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 Devent_logger.cpp306 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 Devent_logger.h94 void GetAppFreezeStack(int jsonFd, std::shared_ptr<SysEvent> event,
101 bool WriteFreezeJsonInfo(int fd, int jsonFd, std::shared_ptr<SysEvent> event,

Completed in 9 milliseconds