Lines Matching refs:info
77 std::string GetFaultLogName(const FaultLogInfo& info)
79 std::string name = info.module;
81 name = info.module.substr(info.module.find_last_of("/") + 1);
85 if (info.faultLogType == FaultLogType::ADDR_SANITIZER) {
86 if (info.reason.compare("TSAN") == 0) {
88 } else if (info.reason.compare("UBSAN") == 0) {
90 } else if (info.reason.compare("GWP-ASAN") == 0) {
92 } else if (info.reason.compare("HWASAN") == 0) {
94 } else if (info.reason.compare("ASAN") == 0) {
100 ret.append(GetFaultNameByType(info.faultLogType, true));
105 ret.append(std::to_string(info.id));
107 ret.append(GetFormatedTime(info.time));
135 FaultLogInfo info;
140 info.faultLogType = GetLogTypeByName(splitStr[0]); // 0 : index of log type
141 info.module = splitStr[1]; // 1 : index of module name
142 StringUtil::ConvertStringTo<int32_t>(splitStr[2], info.id); // 2 : index of uid
143 info.time = TimeUtil::StrToTimeStamp(splitStr[3], "%Y%m%d%H%M%S"); // 3 : index of timestamp
145 info.pid = 0;
146 return info;
152 FaultLogInfo info;
157 info.faultLogType = GetLogTypeByName(splitStr[0]); // 0 : index of log type
158 StringUtil::ConvertStringTo<int32_t>(splitStr[1], info.pid); // 1 : index of pid
159 StringUtil::ConvertStringTo<int64_t>(splitStr[2], info.time); // 2 : index of timestamp
161 return info;
184 std::string GetCppCrashTempLogName(const FaultLogInfo& info)
188 std::to_string(info.pid) +
190 std::to_string(info.time);