/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dwarf_cfa_instructions.cpp | 74 uint64_t reg = 0;
in DecodeDwCfa() local 104 reg = memory_->ReadUleb128(instPtr);
in DecodeDwCfa() 106 DFXLOGU("DW_CFA_offset_extended: reg=%{public}d", (int)reg);
in DecodeDwCfa() 107 if (!DfxRegsQut::IsQutReg(static_cast<uint16_t>(reg), qutIdx)) {
in DecodeDwCfa() 108 INSTR_STATISTIC(UnsupportedDwCfaOffset, reg, UNW_ERROR_UNSUPPORTED_QUT_REG);
in DecodeDwCfa() 115 reg = memory_->ReadUleb128(instPtr);
in DecodeDwCfa() 116 DFXLOGU("DW_CFA_restore_extended: reg=%{public}d", (int)reg);
in DecodeDwCfa() 117 if (!DfxRegsQut::IsQutReg(static_cast<uint16_t>(reg), qutId in DecodeDwCfa() [all...] |
H A D | arm_exidx.cpp | 63 void ExidxContext::Transform(uint32_t reg) in Transform() argument 65 DFXLOGU("Transform reg: %{public}d", reg); in Transform() 66 transformedBits = transformedBits | (1 << reg); in Transform() 69 bool ExidxContext::IsTransformed(uint32_t reg) in IsTransformed() argument 71 if (transformedBits & (1 << reg)) { in IsTransformed() 84 uint32_t reg = static_cast<uint32_t>(qutRegs[i]); in AddUpVsp() local 85 if (IsTransformed(reg)) { in AddUpVsp() 113 uint32_t reg = static_cast<uint32_t>(qutRegs[i]); in FlushInstr() local 114 if (context_.IsTransformed(reg)) { in FlushInstr() [all...] |
H A D | dfx_accessors.cpp | 117 int DfxAccessorsLocal::AccessReg(int reg, uintptr_t *val, void *arg) in AccessReg() argument 123 if (ctx->regs == nullptr || reg < 0 || reg >= (int)ctx->regs->RegsSize()) { in AccessReg() 127 *val = static_cast<uintptr_t>((*(ctx->regs))[reg]); in AccessReg() 214 int DfxAccessorsRemote::AccessReg(int reg, uintptr_t *val, void *arg) in AccessReg() argument 220 if (ctx->regs == nullptr || reg < 0 || reg >= (int)ctx->regs->RegsSize()) { in AccessReg() 224 *val = static_cast<uintptr_t>((*(ctx->regs))[reg]); in AccessReg() 269 int DfxAccessorsCustomize::AccessReg(int reg, uintptr_t *val, void *arg) in AccessReg() argument 274 return accessors_->AccessReg(reg, va in AccessReg() [all...] |
H A D | dfx_instructions.cpp | 100 size_t reg = DfxRegsQut::GetQutRegs()[i]; in Apply() local 101 if (Flush(regs, memory, cfa, rsState.locs[i], regs[reg])) { in Apply() 102 DFXLOGU("Update reg[%{public}zu] : %{public}" PRIx64 "", reg, (uint64_t)regs[reg]); in Apply()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/ |
H A D | dwarf_op.h | 148 uint8_t reg; in OpPick() local 149 memory_->ReadU8(exprPtr, ®, true); in OpPick() 150 if (reg > StackSize()) { in OpPick() 153 AddressType value = StackAt(reg); in OpPick() 343 auto reg = static_cast<UnsignedType>(opcode - DW_OP_reg0); in OpReg() local 345 if (!DfxRegsQut::IsQutReg(static_cast<uint16_t>(reg), qutIdx)) { in OpReg() 346 INSTR_STATISTIC(UnsupportedDwarfOp_Reg, reg, UNW_ERROR_UNSUPPORTED_QUT_REG); in OpReg() 349 stack_.push_front(regs[reg]); in OpReg() 355 auto reg = static_cast<uint32_t>(memory_->ReadUleb128(exprPtr)); in OpRegx() local 357 if (!DfxRegsQut::IsQutReg(static_cast<uint16_t>(reg), qutId in OpRegx() 366 auto reg = static_cast<uint32_t>(opcode - DW_OP_breg0); OpBReg() local 379 auto reg = static_cast<uint32_t>(memory_->ReadUleb128(exprPtr)); OpBRegx() local [all...] |
H A D | dfx_regs_qut.h | 44 static inline bool IsQutReg(uint16_t reg, size_t& qutIdx) in IsQutReg() argument 48 if (qutRegs[i] == reg) { in IsQutReg()
|
H A D | arm_exidx.h | 36 void Transform(uint32_t reg); 37 bool IsTransformed(uint32_t reg);
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | dwarf_test.cpp | 470 auto reg = std::make_shared<DfxRegsArm64>(); in Test10() local 471 (*reg)[0] = 0xa; in Test10() 472 OpReg(DW_OP_reg0, *(reg.get())); in Test10() 478 (*reg)[0x1e] = 0x14; in Test10() 479 OpRegx(exprPtr, *(reg.get())); in Test10() 485 OpBReg(DW_OP_breg0, exprPtr, *(reg.get())); in Test10() 491 OpBRegx(exprPtr, *(reg.get())); in Test10() 844 auto reg = std::make_shared<DfxRegsArm64>(); in HWTEST_F() local 845 auto ret = op.Eval(*reg.get(), 0, exprPtr); in HWTEST_F() 878 auto reg in HWTEST_F() local 915 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 949 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 983 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 1019 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 1051 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 1081 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 1114 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local 1148 auto reg = std::make_shared<DfxRegsArm64>(); HWTEST_F() local [all...] |
/base/telephony/core_service/test/fuzztest/imsregcallback_fuzzer/ |
H A D | imsregcallback_fuzzer.cpp | 41 int32_t reg = static_cast<int32_t>(*data % BOOL_NUM); in OnRemoteRequest() local 44 dataMessageParcel.WriteInt32(reg); in OnRemoteRequest()
|
/base/web/webview/ohos_adapter/display_manager_adapter/src/ |
H A D | display_manager_adapter_impl.cpp | 248 sptr<DisplayListenerAdapterImpl> reg = in RegisterDisplayListener() local 250 if (reg == nullptr) { in RegisterDisplayListener() 259 reg_.emplace(std::make_pair(id, reg)); in RegisterDisplayListener() 260 if (DisplayManager::GetInstance().RegisterDisplayListener(reg) == DMError::DM_OK) { in RegisterDisplayListener() 298 sptr<FoldStatusListenerAdapterImpl> reg = in RegisterFoldStatusListener() local 300 if (reg == nullptr) { in RegisterFoldStatusListener() 307 foldStatusReg_.emplace(std::make_pair(id, reg)); in RegisterFoldStatusListener()
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/ |
H A D | log_util.cpp | 47 * reg : regex which is used to get trace line 51 void LogUtil::GetTrace(stringstream& buffer, int cursor, const string& reg, string& result, string startReg) in GetTrace() argument 58 startReg = startReg.empty() ? reg : startReg; in GetTrace() 75 if (regex_search(line, matches, regex(reg))) { in GetTrace()
|
H A D | feature_analysis.cpp | 196 string reg = ""; in ParseElementForParam() local 198 int seekType = GetSeekInfo(iter->second, reg); in ParseElementForParam() 200 if (reg.find(L3_VARIABLE_TRACE_BLOCK) != string::npos || regex_search(src, result, regex(reg))) { in ParseElementForParam() 202 SetParamRecord(rule.name + "." + iter->first, FormatLineFeature(value, reg), seekType); in ParseElementForParam() 203 SetStackRegex(rule.name + "." + iter->first, reg); in ParseElementForParam()
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/config/ |
H A D | export_config_manager.cpp | 81 std::regex reg { ".*/([a-z_]+)_event_export_config.json$" }; in ParseConfigFile() 83 if (!std::regex_match(configFile, match, reg)) { in ParseConfigFile()
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/ |
H A D | event_scan_handler.cpp | 58 std::regex reg { ".*/HSE_.*\\.zip$" }; in GetExpiredFileNames() 62 if (!std::regex_match(scannedFile, match, reg)) { in GetExpiredFileNames()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | fault_stack_test.cpp | 107 auto reg = DfxRegs::CreateRemoteRegs(childPid); in HWTEST_F() local 110 stack->CollectRegistersBlock(reg, maps); in HWTEST_F()
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/ |
H A D | log_util.h | 47 static void GetTrace(std::stringstream& buffer, int cursor, const std::string& reg, std::string& result,
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | common_util.cpp | 69 std::regex reg = std::regex(pattern);
in GetDirRegexFiles() local 73 if (regex_match(ptr->d_name, reg)) {
in GetDirRegexFiles()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/test/ |
H A D | decorator_test.cpp | 132 return std::any_of(regs.begin(), regs.end(), [line](std::regex reg) {return regex_match(line, reg);});
in IsMatchAnyRegex()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | db_helper.cpp | 60 std::regex reg("logPath:([^,]+)"); in GetResultMap() 62 if (std::regex_search(info, smatchResult, reg)) { in GetResultMap()
|
H A D | freeze_detector_plugin.cpp | 119 std::regex reg("logPath:([^,]+)"); in MakeWatchPoint() 122 if (std::regex_search(info, result, reg)) { in MakeWatchPoint()
|
/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | hisysevent_tool.cpp | 147 regex_t reg; in IsValidRegex() local 149 int status = regcomp(®, regStr.c_str(), flags); in IsValidRegex() 151 regfree(®); in IsValidRegex()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | string_util.cpp | 484 regex_t reg; in IsValidRegex() local 485 int status = regcomp(®, regStr.c_str(), flags); in IsValidRegex() 487 regfree(®); in IsValidRegex()
|
/base/global/i18n/frameworks/intl/src/ |
H A D | holiday_manager.cpp | 195 std::regex reg("([A-Z]+)[:;](.+)"); in ParseFileLine() 197 bool found = RegexSearchNoExcept(line, match, reg); in ParseFileLine()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
H A D | log_utils.cpp | 82 std::regex reg("[0-9]+[BKMGT]?");
in Str2Size() 83 if (!std::regex_match(str, reg)) {
in Str2Size()
|
/base/hiviewdfx/hiview/test/unittest/unified_collection/utility/ |
H A D | memory_collector_test.cpp | 103 for (const auto& reg : regexs) {
in CheckFormat() 104 if (regex_match(line, reg)) {
in CheckFormat()
|