Home
last modified time | relevance | path

Searched refs:reg (Results 1 - 25 of 31) sorted by relevance

12

/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddwarf_cfa_instructions.cpp74 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 Darm_exidx.cpp63 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 Ddfx_accessors.cpp117 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 Ddfx_instructions.cpp100 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 Ddwarf_op.h148 uint8_t reg; in OpPick() local
149 memory_->ReadU8(exprPtr, &reg, 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 Ddfx_regs_qut.h44 static inline bool IsQutReg(uint16_t reg, size_t& qutIdx) in IsQutReg() argument
48 if (qutRegs[i] == reg) { in IsQutReg()
H A Darm_exidx.h36 void Transform(uint32_t reg);
37 bool IsTransformed(uint32_t reg);
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Ddwarf_test.cpp470 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 Dimsregcallback_fuzzer.cpp41 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 Ddisplay_manager_adapter_impl.cpp248 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 Dlog_util.cpp47 * 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 Dfeature_analysis.cpp196 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 Dexport_config_manager.cpp81 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 Devent_scan_handler.cpp58 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 Dfault_stack_test.cpp107 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 Dlog_util.h47 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 Dcommon_util.cpp69 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 Ddecorator_test.cpp132 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 Ddb_helper.cpp60 std::regex reg("logPath:([^,]+)"); in GetResultMap()
62 if (std::regex_search(info, smatchResult, reg)) { in GetResultMap()
H A Dfreeze_detector_plugin.cpp119 std::regex reg("logPath:([^,]+)"); in MakeWatchPoint()
122 if (std::regex_search(info, result, reg)) { in MakeWatchPoint()
/base/hiviewdfx/hisysevent/frameworks/native/
H A Dhisysevent_tool.cpp147 regex_t reg; in IsValidRegex() local
149 int status = regcomp(&reg, regStr.c_str(), flags); in IsValidRegex()
151 regfree(&reg); in IsValidRegex()
/base/hiviewdfx/hiview/base/utility/
H A Dstring_util.cpp484 regex_t reg; in IsValidRegex() local
485 int status = regcomp(&reg, regStr.c_str(), flags); in IsValidRegex()
487 regfree(&reg); in IsValidRegex()
/base/global/i18n/frameworks/intl/src/
H A Dholiday_manager.cpp195 std::regex reg("([A-Z]+)[:;](.+)"); in ParseFileLine()
197 bool found = RegexSearchNoExcept(line, match, reg); in ParseFileLine()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
H A Dlog_utils.cpp82 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 Dmemory_collector_test.cpp103 for (const auto& reg : regexs) { in CheckFormat()
104 if (regex_match(line, reg)) { in CheckFormat()

Completed in 14 milliseconds

12