/system/core/libunwindstack/tests/ |
D | UnwindOfflineTest.cpp | 224 EXPECT_EQ(0xf31ea9f8U, unwinder.frames()[0].pc); in TEST_F() 226 EXPECT_EQ(0xf2da0a1bU, unwinder.frames()[1].pc); in TEST_F() 228 EXPECT_EQ(0xf2da1441U, unwinder.frames()[2].pc); in TEST_F() 230 EXPECT_EQ(0xf3367147U, unwinder.frames()[3].pc); in TEST_F() 265 EXPECT_EQ(0xf1f6dc49U, unwinder.frames()[0].pc); in TEST_F() 267 EXPECT_EQ(0xf1f6dce5U, unwinder.frames()[1].pc); in TEST_F() 289 EXPECT_EQ(0x64d09d4fd8U, unwinder.frames()[0].pc); in TEST_F() 291 EXPECT_EQ(0x64d09d5078U, unwinder.frames()[1].pc); in TEST_F() 293 EXPECT_EQ(0x64d09d508cU, unwinder.frames()[2].pc); in TEST_F() 295 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 82 uint64_t pc() override { return fake_pc_; } in pc() function 84 void set_pc(uint64_t pc) override { fake_pc_ = pc; } in set_pc() argument
|
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 | DwarfEhFrameWithHdrTest.cpp | 341 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 356 EXPECT_EQ(0x3340U, info->pc); in TYPED_TEST_P() 370 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 378 EXPECT_EQ(0x340U, info->pc); in TYPED_TEST_P() 387 info.pc = 0x1000 * (i + 1); in TYPED_TEST_P() 400 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P() local 401 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc, &fde_offset)); in TYPED_TEST_P() 403 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc + 1, &fde_offset)); in TYPED_TEST_P() 405 EXPECT_TRUE(this->eh_frame_->GetFdeOffsetFromPc(pc + 0xfff, &fde_offset)); in TYPED_TEST_P() 413 TypeParam pc = 0x1000 * (i + 1); in TYPED_TEST_P() local [all …]
|
D | UnwinderTest.cpp | 178 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 193 EXPECT_EQ(0x1100U, frame->pc); in TEST_F() 208 EXPECT_EQ(0x1200U, frame->pc); in TEST_F() 243 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 258 EXPECT_EQ(0x1100U, frame->pc); in TEST_F() 273 EXPECT_EQ(0x1200U, frame->pc); in TEST_F() 303 EXPECT_EQ(0xa5500U, frame->pc); in TEST_F() 333 EXPECT_EQ(0xa7500U, frame->pc); in TEST_F() 363 EXPECT_EQ(0x43000U, frame->pc); in TEST_F() 394 EXPECT_EQ(0x43000U, frame->pc); in TEST_F() [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 | 104 const DwarfFde* DwarfEhFrameWithHdr<AddressType>::GetFdeFromPc(uint64_t pc) { in GetFdeFromPc() argument 106 if (!GetFdeOffsetFromPc(pc, &fde_offset)) { in GetFdeFromPc() 118 fde = DwarfSectionImpl<AddressType>::GetFdeFromPc(pc); in GetFdeFromPc() 125 if (pc < fde->pc_end) { in GetFdeFromPc() 157 info->pc = value; in GetFdeInfoFromIndex() 162 bool DwarfEhFrameWithHdr<AddressType>::GetFdeOffsetFromPc(uint64_t pc, uint64_t* fde_offset) { in GetFdeOffsetFromPc() argument 175 if (pc == info->pc) { in GetFdeOffsetFromPc() 179 if (pc < info->pc) { in GetFdeOffsetFromPc()
|
D | DwarfEhFrameWithHdr.h | 40 AddressType pc; member 55 uint64_t AdjustPcFromFde(uint64_t pc) override { in AdjustPcFromFde() argument 57 return pc + memory_.cur_offset() - 4; in AdjustPcFromFde() 63 const DwarfFde* GetFdeFromPc(uint64_t pc) override; 65 bool GetFdeOffsetFromPc(uint64_t pc, uint64_t* fde_offset);
|
D | Unwinder.cpp | 58 frame->pc = dex_pc; in FillInDexFrame() 103 frame->pc = regs_->pc() - pc_adjustment; in FillInFrame() 154 uint64_t cur_pc = regs_->pc(); in Unwind() 157 MapInfo* map_info = maps_->Find(regs_->pc()); in Unwind() 163 step_pc = regs_->pc(); in Unwind() 177 step_pc = regs_->pc(); in Unwind() 193 uint64_t adjusted_jit_pc = regs_->pc() - pc_adjustment; in Unwind() 250 frame->pc += pc_adjustment; in Unwind() 279 if (frames_.size() > 2 || (frames_.size() > 0 && maps_->Find(frames_[0].pc) != nullptr)) { in Unwind() 303 if (cur_pc == regs_->pc() && cur_sp == regs_->sp()) { in Unwind() [all …]
|
D | RegsArm64.cpp | 42 uint64_t RegsArm64::pc() { in pc() function in unwindstack::RegsArm64 50 void RegsArm64::set_pc(uint64_t pc) { in set_pc() argument 56 if ((0 != pc) && IsRASigned()) { in set_pc() 58 pc &= ~pac_mask_; in set_pc() 61 register uint64_t x30 __asm("x30") = pc; in set_pc() 64 pc = x30; in set_pc() 68 regs_[ARM64_REG_PC] = pc; in set_pc() 129 reg_data[ARM64_REG_PC] = user->pc; in Read()
|
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 | DwarfEhFrame.h | 41 uint64_t AdjustPcFromFde(uint64_t pc) override { in AdjustPcFromFde() argument 43 return pc + this->memory_.cur_offset() - 4; in AdjustPcFromFde()
|
/system/core/libcutils/ |
D | fs_config_test.cpp | 172 const fs_path_config_from_file* pc = in check_unique() local 179 uint16_t host_len = (len >= endof(pc, len)) ? pc->len : INT16_MAX; in check_unique() 186 << "len=" << ((len >= endof(pc, len)) in check_unique() 187 ? android::base::StringPrintf("%" PRIu16, pc->len) in check_unique() 189 << ", mode=" << ((len >= endof(pc, mode)) in check_unique() 190 ? android::base::StringPrintf("0%" PRIo16, pc->mode) in check_unique() 192 << ", uid=" << ((len >= endof(pc, uid)) in check_unique() 193 ? android::base::StringPrintf("%" PRIu16, pc->uid) in check_unique() 195 << ", gid=" << ((len >= endof(pc, gid)) in check_unique() 196 ? android::base::StringPrintf("%" PRIu16, pc->gid) in check_unique() [all …]
|
D | fs_config.cpp | 312 const struct fs_path_config* pc; in fs_config() local 365 for (pc = dir ? android_dirs : android_files; pc->prefix; pc++) { in fs_config() 366 if (fs_config_cmp(dir, pc->prefix, strlen(pc->prefix), path, plen)) { in fs_config() 370 *uid = pc->uid; in fs_config() 371 *gid = pc->gid; in fs_config() 372 *mode = (*mode & (~07777)) | pc->mode; in fs_config() 373 *capabilities = pc->capabilities; in fs_config()
|
/system/core/libunwindstack/tools/ |
D | unwind_reg_info.cpp | 67 void PrintRegInformation(DwarfSection* section, Memory* memory, uint64_t pc, uint8_t class_type, in PrintRegInformation() argument 69 const DwarfFde* fde = section->GetFdeFromPc(pc); in PrintRegInformation() 76 if (!section->GetCfaLocationInfo(pc, fde, ®s, arch)) { in PrintRegInformation() 148 void PrintArmRegInformation(ElfInterfaceArm* interface, uint64_t pc) { in PrintArmRegInformation() argument 151 if (!interface->FindEntry(pc, &entry_offset)) { in PrintArmRegInformation() 174 int GetInfo(const char* file, uint64_t offset, 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/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 | 94 virtual bool Log(uint8_t indent, uint64_t pc, const DwarfFde* fde, ArchEnum arch) = 0; 98 virtual const DwarfFde* GetFdeFromPc(uint64_t pc) = 0; 100 virtual bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs, 107 virtual uint64_t AdjustPcFromFde(uint64_t pc) = 0; 109 bool Step(uint64_t pc, Regs* regs, Memory* process_memory, bool* finished); 136 const DwarfFde* GetFdeFromPc(uint64_t pc) override; 145 bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs, 148 bool Log(uint8_t indent, uint64_t pc, const DwarfFde* fde, ArchEnum arch) 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 | 126 int GetFlags(uint64_t pc) { in GetFlags() argument 128 FillIn(pc, &map); in GetFlags() 135 bool IsReadable(uint64_t pc) { return GetFlags(pc) & PROT_READ; } in IsReadable() argument 136 bool IsWritable(uint64_t pc) { return GetFlags(pc) & PROT_WRITE; } in IsWritable() argument 137 bool IsExecutable(uint64_t pc) { return GetFlags(pc) & PROT_EXEC; } in IsExecutable() argument
|
/system/core/libunwindstack/benchmarks/ |
D | SymbolBenchmark.cpp | 53 for (auto pc : offsets) { in BenchmarkSymbolLookup() local 56 bool found = elf.GetFunctionName(pc, &name, &offset); in BenchmarkSymbolLookup() 58 errx(1, "expected pc 0x%" PRIx64 " present, but not found.", pc); in BenchmarkSymbolLookup() 60 errx(1, "expected pc 0x%" PRIx64 " not present, but found.", pc); in BenchmarkSymbolLookup() 82 static void BenchmarkSymbolLookup(benchmark::State& state, uint64_t pc, std::string elf_file, in BenchmarkSymbolLookup() argument 84 BenchmarkSymbolLookup(state, std::vector<uint64_t>{pc}, elf_file, expect_found); in BenchmarkSymbolLookup()
|
/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 std::string name(GetFunctionNameRaw(pc, offset)); in GetFunctionName() 124 void Backtrace::FillInMap(uint64_t pc, backtrace_map_t* map) { in FillInMap() argument 126 map_->FillIn(pc, map); in FillInMap()
|
D | UnwindStack.cpp | 116 back_frame->pc = frame->pc; in Unwind() 142 std::string UnwindStackCurrent::GetFunctionNameRaw(uint64_t pc, uint64_t* offset) { in GetFunctionNameRaw() argument 143 return GetMap()->GetFunctionName(pc, offset); in GetFunctionNameRaw() 167 std::string UnwindStackPtrace::GetFunctionNameRaw(uint64_t pc, uint64_t* offset) { in GetFunctionNameRaw() argument 168 return GetMap()->GetFunctionName(pc, offset); in GetFunctionNameRaw()
|