Home
last modified time | relevance | path

Searched refs:logType (Results 1 - 25 of 28) sorted by relevance

12

/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlog_formatter_unittest.cpp37 int32_t logType = FaultLogType::APP_FREEZE; in HWTEST_F() local
38 auto summary = FaultLogger::GetSummaryByType(logType, sections); in HWTEST_F()
40 logType = FaultLogType::CPP_CRASH; in HWTEST_F()
41 summary = FaultLogger::GetSummaryByType(logType, sections); in HWTEST_F()
43 logType = FaultLogType::ADDR_SANITIZER; in HWTEST_F()
44 summary = FaultLogger::GetSummaryByType(logType, sections); in HWTEST_F()
/base/hiviewdfx/hiview/interfaces/js/napi/src/
H A Dhiview_service_agent.cpp40 int32_t HiviewServiceAgent::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument
48 return proxy.List(logType, fileInfos); in List()
51 int32_t HiviewServiceAgent::Copy(const std::string& logType, const std::string& logName, const std::string& dest) in Copy() argument
53 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
56 int32_t HiviewServiceAgent::Move(const std::string& logType, const std::string& logName, const std::string& dest) in Move() argument
58 return CopyOrMoveFile(logType, logName, dest, true); in Move()
62 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile()
74 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile()
77 int32_t HiviewServiceAgent::Remove(const std::string& logType, cons argument
61 CopyOrMoveFile( const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) CopyOrMoveFile() argument
[all...]
H A Dnapi_hiview_js.cpp50 std::string logType; in List() local
51 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType)) { in List()
55 int32_t retCode = HiviewServiceAgent::GetInstance().List(logType, fileInfos); in List()
83 std::string logType; in CopyOrMoveFile() local
86 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in CopyOrMoveFile()
92 logType.c_str(), StringUtil::HideSnInfo(logName).c_str(), destDir.c_str()); in CopyOrMoveFile()
98 HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile()
151 std::string logType; in Remove() local
[all...]
H A Dhiview_napi_adapter.cpp42 params->result = HiviewServiceAgent::GetInstance().Copy(params->logType, params->logName, params->destDir); in CopyFileExecution()
57 params->result = HiviewServiceAgent::GetInstance().Move(params->logType, params->logName, params->destDir); in MoveFileExecution()
/base/hiviewdfx/hiview/interfaces/js/napi/include/
H A Dhiview_napi_adapter.h25 HiviewFileParams(const std::string& logType, const std::string& logName, const std::string& destDir) in HiviewFileParams()
26 : logType(logType), logName(logName), destDir(destDir) {}; in HiviewFileParams()
31 std::string logType; member
H A Dhiview_service_agent.h30 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos);
31 int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest);
32 int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest);
33 int32_t Remove(const std::string& logType, const std::string& logName);
43 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlog_formatter.h25 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections);
28 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections);
31 void LimitCppCrashLog(int32_t fd, int32_t logType);
H A Dfaultlog_formatter.cpp113 std::list<const char* const*> GetLogParseList(int32_t logType) in GetLogParseList() argument
115 switch (logType) { in GetLogParseList()
135 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections) in GetSummaryByType() argument
138 switch (logType) { in GetSummaryByType()
226 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections) in WriteFaultLogToFile() argument
228 auto seq = GetLogParseList(logType); in WriteFaultLogToFile()
358 void LimitCppCrashLog(int32_t fd, int32_t logType) in LimitCppCrashLog() argument
360 if ((fd < 0) || (logType != FaultLogType::CPP_CRASH) || !IsFaultLogLimit()) { in LimitCppCrashLog()
/base/hiviewdfx/hiview/adapter/service/common/include/
H A Dihiview_service_ability.h35 virtual int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) = 0;
36 virtual int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) = 0;
37 virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) = 0;
38 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
/base/hiviewdfx/hiview/adapter/service/server/src/
H A Dhiview_service_ability.cpp159 int32_t HiviewServiceAbility::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument
161 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in List()
163 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in List()
192 int32_t HiviewServiceAbility::Copy(const std::string& logType, const std::string& logName, const std::string& dest) in Copy() argument
194 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
197 int32_t HiviewServiceAbility::Move(const std::string& logType, const std::string& logName, const std::string& dest) in Move() argument
199 return CopyOrMoveFile(logType, logName, dest, true); in Move()
203 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile()
209 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in CopyOrMoveFile()
211 HIVIEW_LOGI("invalid logtype: %{public}s", logType in CopyOrMoveFile()
202 CopyOrMoveFile( const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) CopyOrMoveFile() argument
234 Remove(const std::string& logType, const std::string& logName) Remove() argument
[all...]
H A Dhiview_service_ability_stub.cpp268 std::string logType; in HandleListRequest() local
269 if (!data.ReadString(logType)) { in HandleListRequest()
274 int32_t ret = List(logType, fileInfos); in HandleListRequest()
313 std::string logType; in HandleCopyOrMoveRequest() local
314 if (!data.ReadString(logType)) { in HandleCopyOrMoveRequest()
332 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest()
341 std::string logType; in HandleRemoveRequest() local
342 if (!data.ReadString(logType)) { in HandleRemoveRequest()
351 int32_t ret = Remove(logType, logNam in HandleRemoveRequest()
[all...]
/base/hiviewdfx/hiview/adapter/service/client/src/
H A Dhiview_service_ability_proxy.cpp28 int32_t HiviewServiceAbilityProxy::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument
30 HIVIEW_LOGI("type = %{public}s.", logType.c_str()); in List()
38 || !data.WriteString(logType)) { in List()
72 int32_t HiviewServiceAbilityProxy::Copy(const std::string& logType, const std::string& logName, in Copy() argument
75 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
78 int32_t HiviewServiceAbilityProxy::Move(const std::string& logType, const std::string& logName, in Move() argument
81 return CopyOrMoveFile(logType, logName, dest, true); in Move()
85 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile()
94 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile()
115 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, cons argument
84 CopyOrMoveFile( const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) CopyOrMoveFile() argument
[all...]
/base/hiviewdfx/hiview/adapter/service/client/include/
H A Dhiview_service_ability_proxy.h34 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
35 int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) override;
36 int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) override;
37 int32_t Remove(const std::string& logType, const std::string& logName) override;
53 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
/base/hiviewdfx/hiview/adapter/service/server/include/
H A Dhiview_service_ability.h47 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
48 int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) override;
49 int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) override;
50 int32_t Remove(const std::string& logType, const std::string& logName) override;
88 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
/base/hiviewdfx/hilog/services/hilogd/include/
H A Dlog_buffer.h48 int32_t Delete(uint16_t logType);
52 int64_t GetBuffLen(uint16_t logType);
53 int32_t SetBuffLen(uint16_t logType, uint64_t buffSize);
H A Dlog_persister_rotator.h61 int SetInfo(const LogPersistStartMsg& pMsg, uint16_t logType, uint8_t logLevel);
H A Dlog_persister.h42 uint16_t logType; member
/base/hiviewdfx/hilog/test/moduletest/common/
H A Dadapter_test.cpp119 static const std::array<uint16_t, 7> logType = {-1, 0, 1, 3, 4, 5, 100}; in HWTEST_F() local
123 for (size_t i = 0; i < logType.size(); ++i) { in HWTEST_F()
124 SetBufferSize(logType[i], false, size); in HWTEST_F()
125 EXPECT_EQ(GetBufferSize(logType[i], false), expectedSize[i]); in HWTEST_F()
/base/hiviewdfx/hilog/services/hilogd/
H A Dlog_buffer.cpp36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType);
271 int32_t HilogBuffer::Delete(uint16_t logType) in Delete() argument
273 if (logType >= LOG_TYPE_MAX) { in Delete()
283 if ((*it).type != logType) { in Delete()
377 int64_t HilogBuffer::GetBuffLen(uint16_t logType) in GetBuffLen() argument
379 if (logType >= LOG_TYPE_MAX) { in GetBuffLen()
382 uint64_t buffSize = g_maxBufferSizeByType[logType]; in GetBuffLen()
386 int32_t HilogBuffer::SetBuffLen(uint16_t logType, uint64_t buffSize) in SetBuffLen() argument
388 if (logType >= LOG_TYPE_MAX) { in SetBuffLen()
395 g_maxBufferSizeByType[logType] in SetBuffLen()
414 GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType) GenerateHilogMsgInside() argument
[all...]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
H A Dfaultlogger_client.h95 * @param logType the type of fault log.
100 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summary);
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
H A Dfaultlogger_client.cpp106 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summary) in AddFaultLog() argument
118 infoOhos.faultLogType = logType; in AddFaultLog()
/base/hiviewdfx/hiview/plugins/faultlogger/common/
H A Dfaultlog_util.h32 int32_t GetRawEventIdByType(int32_t logType);
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
H A Dnapi_faultlogger.cpp233 int32_t logType; in AddFaultLog() local
234 napi_get_value_int32(env, parameters[TWO_PARAMETER - 1], &logType); in AddFaultLog()
241 AddFaultLog(now * SEC_TO_MILLISEC, logType, module, summary); in AddFaultLog()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
H A Dlog_utils.h72 std::string LogType2Str(uint16_t logType);
/base/hiviewdfx/hilog/services/hilogtool/
H A Dlog_display.cpp220 static inline void HiLogShowProcInfo(const std::string& logType, uint32_t pid, const std::string& processName, in HiLogShowProcInfo() argument
223 cout << setw(LOGTYPE_W) << logType << colCmd; in HiLogShowProcInfo()

Completed in 10 milliseconds

12