/base/hiviewdfx/hiview/adapter/service/idl/src/ |
D | hiview_service_agent.cpp | 40 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:… 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:… 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() argument 74 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile() 77 int32_t HiviewServiceAgent::Remove(const std::string& logType, const std::string& logName) in Remove() argument 85 return proxy.Remove(logType, logName); in Remove()
|
D | hiview_service_ability.cpp | 159 int32_t HiviewServiceAbility::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInf… 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 st… 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 st… 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() argument 209 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in CopyOrMoveFile() 211 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in CopyOrMoveFile() [all …]
|
D | hiview_service_ability_proxy.cpp | 28 int32_t HiviewServiceAbilityProxy::List(const std::string& logType, std::vector<HiviewFileInfo>& fi… 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() argument 94 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile() 115 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, const std::string& logName) in Remove() argument [all …]
|
D | hiview_service_ability_stub.cpp | 233 std::string logType; in HandleListRequest() local 234 if (!data.ReadString(logType)) { in HandleListRequest() 239 int32_t ret = List(logType, fileInfos); in HandleListRequest() 278 std::string logType; in HandleCopyOrMoveRequest() local 279 if (!data.ReadString(logType)) { in HandleCopyOrMoveRequest() 297 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest() 306 std::string logType; in HandleRemoveRequest() local 307 if (!data.ReadString(logType)) { in HandleRemoveRequest() 316 int32_t ret = Remove(logType, logName); in HandleRemoveRequest()
|
/base/hiviewdfx/hiview/interfaces/js/napi/src/ |
D | napi_hiview_js.cpp | 50 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 153 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in Remove() 157 …HIVIEW_LOGI("type: %{public}s, name: %{public}s", logType.c_str(), StringUtil::HideSnInfo(logName)… in Remove() [all …]
|
D | hiview_napi_adapter.cpp | 42 …params->result = HiviewServiceAgent::GetInstance().Copy(params->logType, params->logName, params->… in CopyFileExecution() 57 …params->result = HiviewServiceAgent::GetInstance().Move(params->logType, params->logName, params->… in MoveFileExecution()
|
/base/hiviewdfx/hiview/interfaces/js/napi/include/ |
D | hiview_napi_adapter.h | 25 …HiviewFileParams(const std::string& logType, const std::string& logName, const std::string& destDi… in HiviewFileParams() 26 : logType(logType), logName(logName), destDir(destDir) {}; in HiviewFileParams() 31 std::string logType; member
|
/base/hiviewdfx/hiview/adapter/service/idl/include/ |
D | hiview_service_agent.h | 30 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);
|
D | ihiview_service_ability.h | 35 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& de… 37 …virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& de… 38 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
|
D | hiview_service_ability_proxy.h | 34 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) over… 36 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 37 int32_t Remove(const std::string& logType, const std::string& logName) override; 52 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
D | hiview_service_ability.h | 47 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) over… 49 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over… 50 int32_t Remove(const std::string& logType, const std::string& logName) override; 87 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/ |
D | faultlog_formatter.h | 25 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);
|
D | faultlog_formatter.cpp | 105 std::list<const char **> GetLogParseList(int32_t logType) in GetLogParseList() argument 107 switch (logType) { in GetLogParseList() 125 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections) in GetSummaryByType() argument 128 switch (logType) { in GetSummaryByType() 214 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections) in WriteFaultLogToFile() argument 216 std::list<const char **> seq = GetLogParseList(logType); in WriteFaultLogToFile() 339 void LimitCppCrashLog(int32_t fd, int32_t logType) in LimitCppCrashLog() argument 341 if ((fd < 0) || (logType != FaultLogType::CPP_CRASH) || !IsFaultLogLimit()) { in LimitCppCrashLog()
|
/base/hiviewdfx/hilog/test/moduletest/common/ |
D | adapter_test.cpp | 119 static const std::array<uint16_t, 7> logType = {-1, 0, 1, 3, 4, 5, 100}; variable 123 for (size_t i = 0; i < logType.size(); ++i) { 124 SetBufferSize(logType[i], false, size); 125 EXPECT_EQ(GetBufferSize(logType[i], false), expectedSize[i]);
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_buffer.cpp | 36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType); 273 int32_t HilogBuffer::Delete(uint16_t logType) in Delete() argument 275 if (logType >= LOG_TYPE_MAX) { in Delete() 285 if ((*it).type != logType) { in Delete() 379 int64_t HilogBuffer::GetBuffLen(uint16_t logType) in GetBuffLen() argument 381 if (logType >= LOG_TYPE_MAX) { in GetBuffLen() 384 uint64_t buffSize = g_maxBufferSizeByType[logType]; in GetBuffLen() 388 int32_t HilogBuffer::SetBuffLen(uint16_t logType, uint64_t buffSize) in SetBuffLen() argument 390 if (logType >= LOG_TYPE_MAX) { in SetBuffLen() 397 g_maxBufferSizeByType[logType] = buffSize; in SetBuffLen() [all …]
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_buffer.h | 48 int32_t Delete(uint16_t logType); 52 int64_t GetBuffLen(uint16_t logType); 53 int32_t SetBuffLen(uint16_t logType, uint64_t buffSize);
|
D | log_persister_rotator.h | 61 int SetInfo(const LogPersistStartMsg& pMsg, uint16_t logType, uint8_t logLevel);
|
D | log_persister.h | 42 uint16_t logType; member
|
/base/hiviewdfx/hilog/interfaces/rust/src/ |
D | lib.rs | 81 logType: u8, in HiLogPrint()
|
/base/hiviewdfx/hiview/plugins/faultlogger/common/ |
D | faultlog_util.h | 32 int32_t GetRawEventIdByType(int32_t logType);
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/ |
D | faultlogger_client.cpp | 106 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa… in AddFaultLog() argument 118 infoOhos.faultLogType = logType; in AddFaultLog()
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/ |
D | faultlogger_client.h | 125 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa…
|
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/ |
D | napi_faultlogger.cpp | 233 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/ |
D | log_utils.h | 72 std::string LogType2Str(uint16_t logType);
|
/base/hiviewdfx/hilog/services/hilogtool/ |
D | log_display.cpp | 220 static inline void HiLogShowProcInfo(const std::string& logType, uint32_t pid, const std::string& p… in HiLogShowProcInfo() argument 223 cout << setw(LOGTYPE_W) << logType << colCmd; in HiLogShowProcInfo()
|