/system/core/libunwindstack/tests/ |
D | UnwindOfflineTest.cpp | 219 EXPECT_EQ(0xf31ea9f8U, unwinder.frames()[0].pc); in TEST_F() 221 EXPECT_EQ(0xf2da0a1bU, unwinder.frames()[1].pc); in TEST_F() 223 EXPECT_EQ(0xf2da1441U, unwinder.frames()[2].pc); in TEST_F() 225 EXPECT_EQ(0xf3367147U, unwinder.frames()[3].pc); in TEST_F() 260 EXPECT_EQ(0xf1f6dc49U, unwinder.frames()[0].pc); in TEST_F() 262 EXPECT_EQ(0xf1f6dce5U, unwinder.frames()[1].pc); in TEST_F() 284 EXPECT_EQ(0x64d09d4fd8U, unwinder.frames()[0].pc); in TEST_F() 286 EXPECT_EQ(0x64d09d5078U, unwinder.frames()[1].pc); in TEST_F() 288 EXPECT_EQ(0x64d09d508cU, unwinder.frames()[2].pc); in TEST_F() 290 EXPECT_EQ(0x64d09d88fcU, unwinder.frames()[3].pc); in TEST_F() [all …]
|
D | RegsFake.h | 37 uint64_t pc() override { return fake_pc_; } in pc() function 39 void set_pc(uint64_t pc) override { fake_pc_ = pc; } in set_pc() argument 84 uint64_t pc() override { return fake_pc_; } in pc() function 86 void set_pc(uint64_t pc) override { fake_pc_ = pc; } in set_pc() argument
|
D | RegsTest.cpp | 66 ASSERT_EQ(0xf0120340U, regs32.pc()); in TEST_F() 88 ASSERT_EQ(0xf123456780102030UL, regs64.pc()); in TEST_F() 190 EXPECT_EQ(0x500U, invalid_elf->GetRelPc(regs_arm.pc(), &map_info)); in TEST_F() 195 EXPECT_EQ(0x600U, invalid_elf->GetRelPc(regs_arm64.pc(), &map_info)); in TEST_F() 199 EXPECT_EQ(0x700U, invalid_elf->GetRelPc(regs_x86.pc(), &map_info)); in TEST_F() 203 EXPECT_EQ(0x800U, invalid_elf->GetRelPc(regs_x86_64.pc(), &map_info)); in TEST_F() 207 EXPECT_EQ(0x900U, invalid_elf->GetRelPc(regs_mips.pc(), &map_info)); in TEST_F() 211 EXPECT_EQ(0xa00U, invalid_elf->GetRelPc(regs_mips64.pc(), &map_info)); in TEST_F() 221 EXPECT_EQ(0x200U, arm.pc()); in TEST_F() 230 EXPECT_EQ(0xc200000000U, arm64.pc()); in TEST_F() [all …]
|
D | DwarfEhFrameWithHdrTest.cpp | 245 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 260 EXPECT_EQ(0x3340U, info->pc); in TYPED_TEST_P() 274 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 282 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 291 info.pc = 0x1000 * (i + 1); in TYPED_TEST_P() 304 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P() local 305 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc, &fde_offset)); in TYPED_TEST_P() 307 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc + 1, &fde_offset)); in TYPED_TEST_P() 309 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc + 0xfff, &fde_offset)); in TYPED_TEST_P() 317 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P() local [all …]
|
D | RegsStepIfSignalHandlerTest.cpp | 70 EXPECT_EQ(0x120U, regs.pc()); in ArmStepIfSignalHandlerNonRt() 100 EXPECT_EQ(0x370U, regs.pc()); in ArmStepIfSignalHandlerRt() 130 EXPECT_EQ(0x470U, regs.pc()); in TEST_F() 153 EXPECT_EQ(0xf0U, regs.pc()); in TEST_F() 181 EXPECT_EQ(0x130U, regs.pc()); in TEST_F() 201 EXPECT_EQ(0x150U, regs.pc()); in TEST_F() 220 EXPECT_EQ(0x040U, regs.pc()); in TEST_F() 239 EXPECT_EQ(0x170U, regs.pc()); in TEST_F() 258 EXPECT_EQ(0x600U, regs.pc()); in TEST_F()
|
D | UnwinderTest.cpp | 174 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 189 EXPECT_EQ(0x1100U, frame->pc); in TEST_F() 204 EXPECT_EQ(0x1200U, frame->pc); in TEST_F() 239 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 254 EXPECT_EQ(0x1100U, frame->pc); in TEST_F() 269 EXPECT_EQ(0x1200U, frame->pc); in TEST_F() 299 EXPECT_EQ(0xa5500U, frame->pc); in TEST_F() 329 EXPECT_EQ(0xa7500U, frame->pc); in TEST_F() 359 EXPECT_EQ(0x43000U, frame->pc); in TEST_F() 390 EXPECT_EQ(0x43000U, frame->pc); in TEST_F() [all …]
|
/system/core/libunwindstack/tools/ |
D | unwind_reg_info.cpp | 66 void PrintRegInformation(DwarfSection* section, Memory* memory, uint64_t pc, uint8_t class_type) { in PrintRegInformation() argument 67 const DwarfFde* fde = section->GetFdeFromPc(pc); in PrintRegInformation() 74 if (!section->GetCfaLocationInfo(pc, fde, ®s)) { in PrintRegInformation() 141 void PrintArmRegInformation(ElfInterfaceArm* interface, uint64_t pc) { in PrintArmRegInformation() argument 144 if (!interface->FindEntry(pc, &entry_offset)) { in PrintArmRegInformation() 167 int GetInfo(const char* file, uint64_t pc) { in GetInfo() argument 183 if (pc < load_bias) { in GetInfo() 193 printf("PC 0x%" PRIx64, pc); in GetInfo() 196 if (elf.GetFunctionName(pc, &function_name, &function_offset)) { in GetInfo() 202 PrintArmRegInformation(reinterpret_cast<ElfInterfaceArm*>(interface), pc - load_bias); in GetInfo() [all …]
|
/system/core/libunwindstack/ |
D | ElfInterfaceArm.cpp | 37 bool ElfInterfaceArm::FindEntry(uint32_t pc, uint64_t* entry_offset) { in FindEntry() argument 54 if (pc == addr) { in FindEntry() 58 if (pc < addr) { in FindEntry() 103 bool ElfInterfaceArm::Step(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished) { in Step() argument 108 return ElfInterface32::Step(pc, regs, process_memory, finished) || in Step() 109 StepExidx(pc, regs, process_memory, finished); in Step() 112 bool ElfInterfaceArm::StepExidx(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished) { in StepExidx() argument 114 if (pc < load_bias_) { in StepExidx() 118 pc -= load_bias_; in StepExidx() 122 if (!FindEntry(pc, &entry_offset)) { in StepExidx() [all …]
|
D | DwarfEhFrameWithHdr.cpp | 100 const DwarfFde* DwarfEhFrameWithHdr<AddressType>::GetFdeFromPc(uint64_t pc) { in GetFdeFromPc() argument 102 if (!GetFdeOffsetFromPc(pc, &fde_offset)) { in GetFdeFromPc() 111 if (pc < fde->pc_end) { in GetFdeFromPc() 143 info->pc = value; in GetFdeInfoFromIndex() 148 bool DwarfEhFrameWithHdr<AddressType>::GetFdeOffsetFromPc(uint64_t pc, uint64_t* fde_offset) { in GetFdeOffsetFromPc() argument 161 if (pc == info->pc) { in GetFdeOffsetFromPc() 165 if (pc < info->pc) { in GetFdeOffsetFromPc()
|
D | DwarfEhFrameWithHdr.h | 44 AddressType pc; member 59 uint64_t AdjustPcFromFde(uint64_t pc) override { in AdjustPcFromFde() argument 61 return pc + this->memory_.cur_offset() - 4; in AdjustPcFromFde() 66 const DwarfFde* GetFdeFromPc(uint64_t pc) override; 68 bool GetFdeOffsetFromPc(uint64_t pc, uint64_t* fde_offset);
|
D | LocalUnwinder.cpp | 70 MapInfo* LocalUnwinder::GetMapInfo(uint64_t pc) { in GetMapInfo() argument 72 MapInfo* map_info = maps_->Find(pc); in GetMapInfo() 80 map_info = maps_->Find(pc); in GetMapInfo() 96 uint64_t cur_pc = regs->pc(); in Unwind() 137 (cur_pc == regs->pc() && cur_sp == regs->sp())) { in Unwind()
|
D | Unwinder.cpp | 59 frame->pc = dex_pc; in FillInDexFrame() 101 frame->pc = regs_->pc() - pc_adjustment; in FillInFrame() 152 uint64_t cur_pc = regs_->pc(); in Unwind() 155 MapInfo* map_info = maps_->Find(regs_->pc()); in Unwind() 161 step_pc = regs_->pc(); in Unwind() 175 step_pc = regs_->pc(); in Unwind() 191 uint64_t adjusted_jit_pc = regs_->pc() - pc_adjustment; in Unwind() 248 frame->pc += pc_adjustment; in Unwind() 277 if (frames_.size() > 2 || (frames_.size() > 0 && maps_->Find(frames_[0].pc) != nullptr)) { in Unwind() 301 if (cur_pc == regs_->pc() && cur_sp == regs_->sp()) { in Unwind()
|
D | DwarfEhFrame.h | 41 uint64_t AdjustPcFromFde(uint64_t pc) override { in AdjustPcFromFde() argument 43 return pc + this->memory_.cur_offset() - 4; in AdjustPcFromFde()
|
D | DwarfDebugFrame.h | 45 uint64_t AdjustPcFromFde(uint64_t pc) override { return pc; } in AdjustPcFromFde() argument
|
/system/core/libcutils/ |
D | fs_config_test.cpp | 170 const fs_path_config_from_file* pc = in check_unique() local 177 uint16_t host_len = (len >= endof(pc, len)) ? pc->len : INT16_MAX; in check_unique() 184 << "len=" << ((len >= endof(pc, len)) in check_unique() 185 ? android::base::StringPrintf("%" PRIu16, pc->len) in check_unique() 187 << ", mode=" << ((len >= endof(pc, mode)) in check_unique() 188 ? android::base::StringPrintf("0%" PRIo16, pc->mode) in check_unique() 190 << ", uid=" << ((len >= endof(pc, uid)) in check_unique() 191 ? android::base::StringPrintf("%" PRIu16, pc->uid) in check_unique() 193 << ", gid=" << ((len >= endof(pc, gid)) in check_unique() 194 ? android::base::StringPrintf("%" PRIu16, pc->gid) in check_unique() [all …]
|
D | fs_config.cpp | 320 const struct fs_path_config* pc; in fs_config() local 373 for (pc = dir ? android_dirs : android_files; pc->prefix; pc++) { in fs_config() 374 if (fs_config_cmp(dir, pc->prefix, strlen(pc->prefix), path, plen)) { in fs_config() 378 *uid = pc->uid; in fs_config() 379 *gid = pc->gid; in fs_config() 380 *mode = (*mode & (~07777)) | pc->mode; in fs_config() 381 *capabilities = pc->capabilities; in fs_config() 384 ssize_t fs_config_generate(char* buffer, size_t length, const struct fs_path_config* pc) { in fs_config_generate() argument 386 size_t len = ALIGN(sizeof(*p) + strlen(pc->prefix) + 1, sizeof(uint64_t)); in fs_config_generate() 394 p->mode = get2LE((const uint8_t*)&(pc->mode)); in fs_config_generate() [all …]
|
/system/core/libunwindstack/include/unwindstack/ |
D | LocalUnwinder.h | 39 LocalFrameData(MapInfo* map_info, uint64_t pc, uint64_t rel_pc, const std::string& function_name, in LocalFrameData() 42 pc(pc), in LocalFrameData() 48 uint64_t pc; member 71 MapInfo* GetMapInfo(uint64_t pc);
|
D | DwarfSection.h | 93 virtual bool Log(uint8_t indent, uint64_t pc, const DwarfFde* fde) = 0; 97 virtual const DwarfFde* GetFdeFromPc(uint64_t pc) = 0; 99 virtual bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs) = 0; 105 virtual uint64_t AdjustPcFromFde(uint64_t pc) = 0; 107 bool Step(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished); 137 bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs) override; 139 bool Log(uint8_t indent, uint64_t pc, const DwarfFde* fde) override; 180 const DwarfFde* GetFdeFromPc(uint64_t pc) override;
|
/system/libufdt/sysdeps/ |
D | libufdt_sysdeps_vendor.c | 100 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; in qsort() local 127 pc = pd = (char *)a + (n - 1) * es; in qsort() 129 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort() 137 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort() 140 swap(pc, pd); in qsort() 143 pc -= es; in qsort() 145 if (pb > pc) break; in qsort() 146 swap(pb, pc); in qsort() 149 pc -= es; in qsort() 160 r = min(pd - pc, pn - pd - (int)es); in qsort() [all …]
|
/system/core/libbacktrace/include/backtrace/ |
D | BacktraceMap.h | 128 int GetFlags(uint64_t pc) { in GetFlags() argument 130 FillIn(pc, &map); in GetFlags() 137 bool IsReadable(uint64_t pc) { return GetFlags(pc) & PROT_READ; } in IsReadable() argument 138 bool IsWritable(uint64_t pc) { return GetFlags(pc) & PROT_WRITE; } in IsWritable() argument 139 bool IsExecutable(uint64_t pc) { return GetFlags(pc) & PROT_EXEC; } in IsExecutable() argument
|
/system/core/libpixelflinger/codeflinger/ |
D | MIPS64Assembler.cpp | 85 uint32_t* ArmToMips64Assembler::pc() const in pc() function in android::ArmToMips64Assembler 87 return mMips->pc(); in pc() 139 mArmPC[mInum++] = pc(); // save starting PC for this instr in prolog() 152 mArmPC[mInum++] = pc(); // save starting PC for this instr in epilog() 402 mArmPC[mInum++] = pc(); // save starting PC for this instr in dataProcessing() 598 mArmPC[mInum++] = pc(); // save starting PC for this instr in MLA() 610 mArmPC[mInum++] = pc(); in MUL() 620 mArmPC[mInum++] = pc(); in UMULL() 637 mArmPC[mInum++] = pc(); in UMUAL() 653 mArmPC[mInum++] = pc(); in SMULL() [all …]
|
D | MIPSAssembler.cpp | 108 uint32_t* ArmToMipsAssembler::pc() const in pc() function in android::ArmToMipsAssembler 110 return mMips->pc(); in pc() 162 mArmPC[mInum++] = pc(); // save starting PC for this instr in prolog() 175 mArmPC[mInum++] = pc(); // save starting PC for this instr in epilog() 423 mArmPC[mInum++] = pc(); // save starting PC for this instr in dataProcessing() 610 mArmPC[mInum++] = pc(); // save starting PC for this instr in MLA() 622 mArmPC[mInum++] = pc(); in MUL() 632 mArmPC[mInum++] = pc(); in UMULL() 649 mArmPC[mInum++] = pc(); in UMUAL() 665 mArmPC[mInum++] = pc(); in SMULL() [all …]
|
D | ARMAssembler.cpp | 53 uint32_t* ARMAssembler::pc() const in pc() function in android::ARMAssembler 84 size_t count = pc()-base(); in disassemble() 142 uint32_t* pc = mPC; in epilog() local 145 mPC = pc; in epilog() 151 uint32_t* pc = mPC; in epilog() local 154 mPC = pc; in epilog() 169 int32_t offset = int32_t(target_pc - (bt.pc+2)); in generate() 170 *bt.pc |= offset & 0xFFFFFF; in generate() 173 mAssembly->resize( int(pc()-base())*4 ); in generate() 178 ALOGI(format, name, int(pc()-base()), base(), pc(), duration); in generate() [all …]
|
/system/core/libbacktrace/ |
D | Backtrace.cpp | 56 std::string Backtrace::GetFunctionName(uint64_t pc, uint64_t* offset, const backtrace_map_t* map) { in GetFunctionName() argument 59 FillInMap(pc, &map_value); in GetFunctionName() 66 return demangle(GetFunctionNameRaw(pc, offset).c_str()); in GetFunctionName() 117 void Backtrace::FillInMap(uint64_t pc, backtrace_map_t* map) { in FillInMap() argument 119 map_->FillIn(pc, map); in FillInMap()
|
D | UnwindStack.h | 35 std::string GetFunctionNameRaw(uint64_t pc, uint64_t* offset) override; 47 std::string GetFunctionNameRaw(uint64_t pc, uint64_t* offset) override; 61 std::string GetFunctionNameRaw(uint64_t pc, uint64_t* offset) override;
|