Home
last modified time | relevance | path

Searched refs:reg (Results 1 – 24 of 24) sorted by relevance

/system/unwinding/libunwindstack/
DRegsInfo.h35 inline AddressType Get(uint32_t reg) { in Get()
36 if (IsSaved(reg)) { in Get()
37 return saved_regs[reg]; in Get()
39 return (*regs)[reg]; in Get()
42 inline AddressType* Save(uint32_t reg) { in Save()
43 if (reg >= MAX_REGISTERS) { in Save()
48 saved_reg_map |= 1ULL << reg; in Save()
49 saved_regs[reg] = (*regs)[reg]; in Save()
50 return &(*regs)[reg]; in Save()
53 inline bool IsSaved(uint32_t reg) { in IsSaved()
[all …]
DArmExidx.cpp211 for (size_t reg = 4; reg < 16; reg++) { in DecodePrefix_10_00() local
212 if (registers & (1 << reg)) { in DecodePrefix_10_00()
216 msg += android::base::StringPrintf("r%zu", reg); in DecodePrefix_10_00()
224 for (size_t reg = 4; reg < 16; reg++) { in DecodePrefix_10_00() local
225 if (registers & (1 << reg)) { in DecodePrefix_10_00()
226 log_regs_[reg] = cfa_offset; in DecodePrefix_10_00()
237 for (size_t reg = 4; reg < 16; reg++) { in DecodePrefix_10_00() local
238 if (registers & (1 << reg)) { in DecodePrefix_10_00()
239 if (!process_memory_->Read32(cfa_, &(*regs_)[reg])) { in DecodePrefix_10_00()
316 for (uint8_t reg = 4; reg <= end_reg; reg++) { in DecodePrefix_10_10() local
[all …]
DDwarfCfa.cpp184 uint8_t reg) { in LogOffsetRegisterString() argument
200 Log::Info(indent, "DW_CFA_offset register(%d) %" PRId64, reg, offset); in LogOffsetRegisterString()
358 AddressType reg = operands_[0]; in cfa_offset() local
359 (*loc_regs)[reg] = {.type = DWARF_LOCATION_OFFSET, .values = {operands_[1]}}; in cfa_offset()
365 AddressType reg = operands_[0]; in cfa_restore() local
371 auto reg_entry = cie_loc_regs_->find(reg); in cfa_restore()
373 loc_regs->erase(reg); in cfa_restore()
375 (*loc_regs)[reg] = reg_entry->second; in cfa_restore()
382 AddressType reg = operands_[0]; in cfa_undefined() local
383 (*loc_regs)[reg] = {.type = DWARF_LOCATION_UNDEFINED}; in cfa_undefined()
[all …]
DRegsRiscv64.cpp194 uint16_t RegsRiscv64::Convert(uint16_t reg) { in Convert() argument
195 if (reg == 0x1c22) { in Convert()
198 if (reg == RISCV64_REG_VLENB) { in Convert()
202 return reg; in Convert()
DDwarfSection.cpp437 bool DwarfSectionImpl<AddressType>::EvalRegister(const DwarfLocation* loc, uint32_t reg, in EvalRegister() argument
483 if (reg == eval_info->cie->return_address_register) { in EvalRegister()
551 uint32_t reg = entry.first; in Eval() local
553 if (reg == CFA_REG) continue; in Eval()
556 if (reg >= cur_regs->total_regs()) { in Eval()
561 if (!eval_info.regs_info.regs->SetPseudoRegister(reg, entry.second.values[0])) { in Eval()
566 reg_ptr = eval_info.regs_info.Save(reg); in Eval()
567 if (!EvalRegister(&entry.second, reg, reg_ptr, &eval_info)) { in Eval()
DDwarfOp.cpp1905 uint16_t reg = regs_info_->regs->Convert(cur_op() - 0x70); in op_breg() local
1906 if (reg >= regs_info_->Total()) { in op_breg()
1910 stack_.push_front(regs_info_->Get(reg) + OperandAt(0)); in op_breg()
1916 uint16_t reg = regs_info_->regs->Convert(OperandAt(0)); in op_bregx() local
1917 if (reg >= regs_info_->Total()) { in op_bregx()
1921 stack_.push_front(regs_info_->Get(reg) + OperandAt(1)); in op_bregx()
DDwarfCfa.h97 bool LogOffsetRegisterString(uint32_t indent, uint64_t cfa_offset, uint8_t reg);
/system/extras/simpleperf/
Dperf_regs.cpp171 int reg = static_cast<int>(regno); in GetRegName() local
174 if (reg >= PERF_REG_X86_R8 && reg <= PERF_REG_X86_R15) { in GetRegName()
175 return android::base::StringPrintf("r%d", reg - PERF_REG_X86_R8 + 8); in GetRegName()
180 auto it = x86_reg_map.find(reg); in GetRegName()
181 CHECK(it != x86_reg_map.end()) << "unknown reg " << reg; in GetRegName()
185 if (reg >= PERF_REG_ARM_R0 && reg <= PERF_REG_ARM_R10) { in GetRegName()
186 return android::base::StringPrintf("r%d", reg - PERF_REG_ARM_R0); in GetRegName()
188 if (auto it = arm_reg_map.find(reg); it != arm_reg_map.end()) { in GetRegName()
194 if (reg >= PERF_REG_ARM64_X0 && reg <= PERF_REG_ARM64_X29) { in GetRegName()
195 return android::base::StringPrintf("r%d", reg - PERF_REG_ARM64_X0); in GetRegName()
[all …]
DRegEx.cpp81 for (auto& reg : regs) { in SearchInRegs() local
82 if (reg->Search(s)) { in SearchInRegs()
Dutils.cpp445 auto reg = RegEx::Create(p); in GetPidsFromStrings() local
446 if (!reg) { in GetPidsFromStrings()
449 regs.emplace_back(std::move(reg)); in GetPidsFromStrings()
463 for (const auto& reg : regs) { in GetPidsFromStrings() local
464 if (reg->Search(process_name)) { in GetPidsFromStrings()
/system/nfc/src/nfa/sys/
Dnfa_sys_main.cc81 freebuf = (*nfa_sys_cb.reg[id]->evt_hdlr)(p_msg); in nfa_sys_event()
118 nfa_sys_cb.reg[id] = (tNFA_SYS_REG*)p_reg; in nfa_sys_register()
158 (*nfa_sys_cb.reg[NFA_ID_DM]->disable)(); in nfa_sys_check_disabled()
236 if (nfa_sys_cb.reg[id]->enable != nullptr) { in nfa_sys_enable_subsystems()
238 (*nfa_sys_cb.reg[id]->enable)(); in nfa_sys_enable_subsystems()
269 if (nfa_sys_cb.reg[id]->disable != nullptr) { in nfa_sys_disable_subsystems()
271 (*nfa_sys_cb.reg[id]->disable)(); in nfa_sys_disable_subsystems()
282 (*nfa_sys_cb.reg[NFA_ID_DM]->disable)(); in nfa_sys_disable_subsystems()
303 if ((nfa_sys_cb.is_reg[id]) && (nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode)) { in nfa_sys_notify_nfcc_power_mode()
305 (*nfa_sys_cb.reg[id]->proc_nfcc_pwr_mode)(nfcc_power_mode); in nfa_sys_notify_nfcc_power_mode()
/system/unwinding/libunwindstack/utils/
DRegsFake.h85 void set_pseudo_reg(uint64_t reg) { fake_pseudo_reg_ = reg; } in set_pseudo_reg() argument
90 bool SetPseudoRegister(uint16_t reg, uint64_t value) override { in SetPseudoRegister() argument
91 if (fake_pseudo_reg_ != reg) { in SetPseudoRegister()
97 bool GetPseudoRegister(uint16_t reg, uint64_t* value) override { in GetPseudoRegister() argument
98 if (fake_pseudo_reg_ != reg) { in GetPseudoRegister()
/system/unwinding/libunwindstack/include/unwindstack/
DRegs.h84 virtual uint16_t Convert(uint16_t reg) { return reg; } in Convert() argument
105 inline AddressType& operator[](size_t reg) { return regs_[reg]; }
DRegsRiscv64.h53 uint16_t Convert(uint16_t reg) override;
DDwarfSection.h151 bool EvalRegister(const DwarfLocation* loc, uint32_t reg, AddressType* reg_ptr, void* info);
/system/extras/tests/kernel.config/
Dscrape_mmap_addr.cpp13 …std::regex reg(std::string("^([a-f0-9]+)\\-[0-9a-f]+\\s+.+\\s+(\\d+)\\s+.+\\s+\\d+\\s+") + std::st… in main() local
24 if (std::regex_match (ln,sm, reg)) { in main()
/system/unwinding/libunwindstack/tests/
DRegsInfoTest.cpp74 uint64_t* reg = info.Save(i); in TEST() local
75 ASSERT_EQ(reg, &regs[i]) << "Reg " + std::to_string(i) + " failed."; in TEST()
76 *reg = i * 0x1000 + 0x100; in TEST()
DRegsIterateTest.cpp203 for (const auto& reg : expected) { in TYPED_TEST() local
204 regs[reg.offset] = reg.offset; in TYPED_TEST()
/system/chre/core/
Dnanoapp.cc71 const EventRegistration &reg = mRegisteredEvents[foundIndex]; in isRegisteredForBroadcastEvent() local
72 if (targetGroupIdMask & reg.groupIdMask) { in isRegisteredForBroadcastEvent()
95 EventRegistration &reg = mRegisteredEvents[foundIndex]; in unregisterForBroadcastEvent() local
96 reg.groupIdMask &= ~groupIdMask; in unregisterForBroadcastEvent()
97 if (reg.groupIdMask == 0) { in unregisterForBroadcastEvent()
336 const EventRegistration &reg = mRegisteredEvents[foundIndex]; in registrationIndex() local
337 if (reg.eventType == eventType) { in registrationIndex()
/system/nfc/src/nfa/include/
Dnfa_sys_int.h43 tNFA_SYS_REG* reg[NFA_ID_MAX]; /* registration structures */ member
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp200 const std::string reg = XMLAttribute(var, "assert"); in ExtractGetVars() local
205 Configuration::GetVar getvar{reg, MakeRegex(reg, var->GetLineNum()), var->GetLineNum()}; in ExtractGetVars()
Dmain.cpp465 std::regex reg("([[:graph:]]*)_([[:lower:]])"); in TEST_F() local
468 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F()
738 std::regex reg("([[:graph:]]*)_([[:lower:]])"); in TEST_F() local
741 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F()
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto_to_text.cpp183 for (const auto& reg : thread.registers()) { in print_thread_registers() local
185 if (special_registers.count(reg.name()) == 1) { in print_thread_registers()
189 row->emplace_back(reg.name(), reg.u64()); in print_thread_registers()
/system/core/fastboot/
Dfastboot_driver.cpp174 std::regex reg("partition-size[[:s:]]*:[[:s:]]*([[:w:]]+)[[:s:]]*:[[:s:]]*0x([[:xdigit:]]+)"); in Partitions() local
178 if (std::regex_match(s, sm, reg)) { in Partitions()