Home
last modified time | relevance | path

Searched refs:logType (Results 1 – 25 of 29) sorted by relevance

12

/base/hiviewdfx/hiview/adapter/service/idl/src/
Dhiview_service_ability_proxy.cpp28 int32_t HiviewServiceAbilityProxy::List(const std::string& logType, std::vector<HiviewFileInfo>& fi… in List() argument
33 || !data.WriteString(logType)) { in List()
62 int32_t HiviewServiceAbilityProxy::Copy(const std::string& logType, const std::string& logName, con… in Copy() argument
65 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
68 int32_t HiviewServiceAbilityProxy::Move(const std::string& logType, const std::string& logName, con… in Move() argument
71 return CopyOrMoveFile(logType, logName, dest, true); in Move()
75 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
79 || !data.WriteString(logType) || !data.WriteString(logName) || !data.WriteString(dest)) { in CopyOrMoveFile()
100 int32_t HiviewServiceAbilityProxy::Remove(const std::string& logType, const std::string& logName) in Remove() argument
104 || !data.WriteString(logType) || !data.WriteString(logName)) { in Remove()
Dhiview_service_agent.cpp34 int32_t HiviewServiceAgent::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) in List() argument
42 return proxy.List(logType, fileInfos); in List()
45 int32_t HiviewServiceAgent::Copy(const std::string& logType, const std::string& logName, const std:… in Copy() argument
47 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
50 int32_t HiviewServiceAgent::Move(const std::string& logType, const std::string& logName, const std:… in Move() argument
52 return CopyOrMoveFile(logType, logName, dest, true); in Move()
56 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
68 return isMove ? proxy.Move(logType, logName, dest) : proxy.Copy(logType, logName, dest); in CopyOrMoveFile()
71 int32_t HiviewServiceAgent::Remove(const std::string& logType, const std::string& logName) in Remove() argument
79 return proxy.Remove(logType, logName); in Remove()
Dhiview_service_ability.cpp160 int32_t HiviewServiceAbility::List(const std::string& logType, std::vector<HiviewFileInfo>& fileInf… in List() argument
162 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in List()
164 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in List()
193 int32_t HiviewServiceAbility::Copy(const std::string& logType, const std::string& logName, const st… in Copy() argument
195 return CopyOrMoveFile(logType, logName, dest, false); in Copy()
198 int32_t HiviewServiceAbility::Move(const std::string& logType, const std::string& logName, const st… in Move() argument
200 return CopyOrMoveFile(logType, logName, dest, true); in Move()
204 const std::string& logType, const std::string& logName, const std::string& dest, bool isMove) in CopyOrMoveFile() argument
210 auto configInfoPtr = HiviewLogConfigManager::GetInstance().GetConfigInfoByType(logType); in CopyOrMoveFile()
212 HIVIEW_LOGI("invalid logtype: %{public}s", logType.c_str()); in CopyOrMoveFile()
[all …]
Dhiview_service_ability_stub.cpp81 std::string logType; in HandleListRequest() local
82 if (!data.ReadString(logType)) { in HandleListRequest()
87 int32_t ret = List(logType, fileInfos); in HandleListRequest()
118 std::string logType; in HandleCopyOrMoveRequest() local
119 if (!data.ReadString(logType)) { in HandleCopyOrMoveRequest()
137 int32_t ret = isMove ? Move(logType, logName, dest) : Copy(logType, logName, dest); in HandleCopyOrMoveRequest()
146 std::string logType; in HandleRemoveRequest() local
147 if (!data.ReadString(logType)) { in HandleRemoveRequest()
156 int32_t ret = Remove(logType, logName); in HandleRemoveRequest()
/base/hiviewdfx/hiview/adapter/service/idl/include/
Dhiview_service_ability_proxy.h32 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
33 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over…
34 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over…
35 int32_t Remove(const std::string& logType, const std::string& logName) override;
39 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
Dhiview_service_agent.h29 static int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos);
30 …static int32_t Copy(const std::string& logType, const std::string& logName, const std::string& des…
31 …static int32_t Move(const std::string& logType, const std::string& logName, const std::string& des…
32 static int32_t Remove(const std::string& logType, const std::string& logName);
39 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
Dihiview_service_ability.h32 virtual int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) = 0;
33 …virtual int32_t Copy(const std::string& logType, const std::string& logName, const std::string& de…
34 …virtual int32_t Move(const std::string& logType, const std::string& logName, const std::string& de…
35 virtual int32_t Remove(const std::string& logType, const std::string& logName) = 0;
Dhiview_service_ability.h44 int32_t List(const std::string& logType, std::vector<HiviewFileInfo>& fileInfos) override;
45 …int32_t Copy(const std::string& logType, const std::string& logName, const std::string& dest) over…
46 …int32_t Move(const std::string& logType, const std::string& logName, const std::string& dest) over…
47 int32_t Remove(const std::string& logType, const std::string& logName) override;
55 … const std::string& logType, const std::string& logName, const std::string& dest, bool isMove);
/base/hiviewdfx/hiview/interfaces/js/napi/include/
Dhiview_napi_adapter.h25 …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/interfaces/js/napi/src/
Dnapi_hiview_js.cpp49 std::string logType; in List() local
50 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType)) { in List()
54 int32_t retCode = HiviewServiceAgent::List(logType, fileInfos); in List()
78 std::string logType; in CopyOrMoveFile() local
81 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in CopyOrMoveFile()
87 logType.c_str(), logName.c_str(), destDir.c_str()); in CopyOrMoveFile()
93 …HiviewFileParams* hiviewFileParams = new(std::nothrow) HiviewFileParams(logType, logName, destDir); in CopyOrMoveFile()
143 std::string logType; in Remove() local
145 if (!HiviewNapiUtil::ParseStringValue(env, "logType", params[LOG_TYPE_INDEX], logType) in Remove()
149 HiLog::Info(LABEL, "type: %{public}s, name: %{public}s", logType.c_str(), logName.c_str()); in Remove()
[all …]
Dhiview_napi_adapter.cpp42 params->result = HiviewServiceAgent::Copy(params->logType, params->logName, params->destDir); in CopyFileExecution()
57 params->result = HiviewServiceAgent::Move(params->logType, params->logName, params->destDir); in MoveFileExecution()
/base/hiviewdfx/hilog/services/hilogd/include/
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);
Dlog_persister_rotator.h61 int SetInfo(const LogPersistStartMsg& pMsg, uint16_t logType, uint8_t logLevel);
Dlog_persister.h42 uint16_t logType; member
/base/hiviewdfx/hilog/services/hilogd/
Dlog_buffer.cpp36 static int GenerateHilogMsgInside(HilogMsg& hilogMsg, const string& msg, uint16_t logType);
264 int32_t HilogBuffer::Delete(uint16_t logType) in Delete() argument
266 std::list<HilogData> &msgList = (logType == LOG_KMSG) ? hilogKlogList : hilogDataList; in Delete()
267 if (logType >= LOG_TYPE_MAX) { in Delete()
277 if ((*it).type != logType) { in Delete()
357 int64_t HilogBuffer::GetBuffLen(uint16_t logType) in GetBuffLen() argument
359 if (logType >= LOG_TYPE_MAX) { in GetBuffLen()
362 uint64_t buffSize = g_maxBufferSizeByType[logType]; in GetBuffLen()
366 int32_t HilogBuffer::SetBuffLen(uint16_t logType, uint64_t buffSize) in SetBuffLen() argument
368 if (logType >= LOG_TYPE_MAX) { in SetBuffLen()
[all …]
/base/hiviewdfx/hilog/test/moduletest/common/
Dadapter_test.cpp119 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/hiview/plugins/faultlogger/service/
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);
Dfaultlog_formatter.cpp92 std::list<const char **> GetLogParseList(int32_t logType) in GetLogParseList() argument
94 switch (logType) { in GetLogParseList()
110 std::string GetSummaryByType(int32_t logType, std::map<std::string, std::string> sections) in GetSummaryByType() argument
113 switch (logType) { in GetSummaryByType()
195 void WriteFaultLogToFile(int32_t fd, int32_t logType, std::map<std::string, std::string> sections) in WriteFaultLogToFile() argument
197 std::list<const char **> seq = GetLogParseList(logType); in WriteFaultLogToFile()
/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dfaultlog_util.h32 int32_t GetRawEventIdByType(int32_t logType);
/base/hiviewdfx/hilog/interfaces/rust/src/
Dlib.rs83 …pub fn HiLogPrint(logType: u8, level: u8, domain: u32, tag: *const c_char, fmt: *const c_char, ...… in HiLogPrint()
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/include/
Dfaultlogger_client.h121 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa…
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/cpp/innerkits/impl/
Dfaultlogger_client.cpp105 void AddFaultLog(int64_t time, int32_t logType, const std::string &module, const std::string &summa… in AddFaultLog() argument
117 infoOhos.faultLogType = logType; in AddFaultLog()
/base/hiviewdfx/hilog/platform/interface/native/
Dlog.cpp71 os_log_type_t logType = LOG_TYPE[static_cast<int>(level)]; in LogPrint() local
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/napi/
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/
Dlog_utils.h72 std::string LogType2Str(uint16_t logType);

12