Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 27) sorted by relevance

12

/system/core/include/backtrace/
DBacktraceMap.h58 int GetFlags(uintptr_t pc) { in GetFlags() argument
60 FillIn(pc, &map); in GetFlags()
67 bool IsReadable(uintptr_t pc) { return GetFlags(pc) & PROT_READ; } in IsReadable() argument
68 bool IsWritable(uintptr_t pc) { return GetFlags(pc) & PROT_WRITE; } in IsWritable() argument
69 bool IsExecutable(uintptr_t pc) { return GetFlags(pc) & PROT_EXEC; } in IsExecutable() argument
85 static uintptr_t GetRelativePc(const backtrace_map_t& map, uintptr_t pc) { in GetRelativePc() argument
87 return pc - map.start + map.load_base; in GetRelativePc()
89 return pc; in GetRelativePc()
DBacktrace.h39 uintptr_t pc; // The absolute pc. member
76 virtual std::string GetFunctionName(uintptr_t pc, uintptr_t* offset);
79 virtual void FillInMap(uintptr_t pc, backtrace_map_t* map);
121 virtual std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) = 0;
/system/core/libcutils/
Dfs_config.c200 const struct fs_path_config *pc; in fs_config() local
251 pc = dir ? android_dirs : android_files; in fs_config()
252 for(; pc->prefix; pc++){ in fs_config()
253 if (fs_config_cmp(dir, pc->prefix, strlen(pc->prefix), path, plen)) { in fs_config()
257 *uid = pc->uid; in fs_config()
258 *gid = pc->gid; in fs_config()
259 *mode = (*mode & (~07777)) | pc->mode; in fs_config()
260 *capabilities = pc->capabilities; in fs_config()
263 ssize_t fs_config_generate(char *buffer, size_t length, const struct fs_path_config *pc) in fs_config_generate() argument
266 size_t len = ALIGN(sizeof(*p) + strlen(pc->prefix) + 1, sizeof(uint64_t)); in fs_config_generate()
[all …]
/system/core/libbacktrace/
DUnwindPtrace.cpp85 unw_word_t pc; in Unwind() local
86 ret = unw_get_reg(&cursor, UNW_REG_IP, &pc); in Unwind()
102 frame->pc = static_cast<uintptr_t>(pc); in Unwind()
111 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset); in Unwind()
113 FillInMap(frame->pc, &frame->map); in Unwind()
125 std::string UnwindPtrace::GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) { in GetFunctionNameRaw() argument
129 if (unw_get_proc_name_by_ip(addr_space_, pc, buf, sizeof(buf), &value, in GetFunctionNameRaw()
DUnwindCurrent.cpp31 std::string UnwindCurrent::GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) { in GetFunctionNameRaw() argument
35 if (unw_get_proc_name_by_ip(unw_local_addr_space, pc, buf, sizeof(buf), in GetFunctionNameRaw()
89 unw_word_t pc; in UnwindFromContext() local
90 ret = unw_get_reg(cursor.get(), UNW_REG_IP, &pc); in UnwindFromContext()
105 frame->pc = static_cast<uintptr_t>(pc); in UnwindFromContext()
109 FillInMap(frame->pc, &frame->map); in UnwindFromContext()
116 frame->func_name = GetFunctionName(frame->pc, &frame->func_offset); in UnwindFromContext()
DBacktrace.cpp60 std::string Backtrace::GetFunctionName(uintptr_t pc, uintptr_t* offset) { in GetFunctionName() argument
61 std::string func_name = GetFunctionNameRaw(pc, offset); in GetFunctionName()
102 uintptr_t relative_pc = BacktraceMap::GetRelativePc(frame->map, frame->pc); in FormatFrameData()
121 void Backtrace::FillInMap(uintptr_t pc, backtrace_map_t* map) { in FillInMap() argument
123 map_->FillIn(pc, map); in FillInMap()
DUnwindPtrace.h39 std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) override;
DUnwindCurrent.h39 std::string GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) override;
Dbacktrace_test.cpp251 EXPECT_EQ(bt_ign2->GetFrame(i)->pc, bt_ign1->GetFrame(i+1)->pc); in VerifyIgnoreFrames()
255 EXPECT_EQ(bt_ign2->GetFrame(i)->pc, bt_all->GetFrame(i+2)->pc); in VerifyIgnoreFrames()
763 frame.pc = 2; in TEST()
790 frame.pc = 0x12345679; in TEST()
1274 it->pc >= test_func) { in FindFuncFrameInBacktrace()
1290 uintptr_t diff = backtrace->GetFrame(frame_num)->pc - test_func; in VerifyUnreadableElfFrame()
/system/core/libpixelflinger/codeflinger/
DMIPSAssembler.cpp110 uint32_t* ArmToMipsAssembler::pc() const in pc() function in android::ArmToMipsAssembler
112 return mMips->pc(); in pc()
164 mArmPC[mInum++] = pc(); // save starting PC for this instr in prolog()
177 mArmPC[mInum++] = pc(); // save starting PC for this instr in epilog()
429 mArmPC[mInum++] = pc(); // save starting PC for this instr in dataProcessing()
616 mArmPC[mInum++] = pc(); // save starting PC for this instr in MLA()
628 mArmPC[mInum++] = pc(); in MUL()
638 mArmPC[mInum++] = pc(); in UMULL()
655 mArmPC[mInum++] = pc(); in UMUAL()
671 mArmPC[mInum++] = pc(); in SMULL()
[all …]
DARMAssembler.cpp60 uint32_t* ARMAssembler::pc() const in pc() function in android::ARMAssembler
91 size_t count = pc()-base(); in disassemble()
149 uint32_t* pc = mPC; in epilog() local
152 mPC = pc; in epilog()
158 uint32_t* pc = mPC; in epilog() local
161 mPC = pc; in epilog()
176 int32_t offset = int32_t(target_pc - (bt.pc+2)); in generate()
177 *bt.pc |= offset & 0xFFFFFF; in generate()
180 mAssembly->resize( int(pc()-base())*4 ); in generate()
185 ALOGI(format, name, int(pc()-base()), base(), pc(), duration); in generate()
[all …]
DARMAssembler.h42 uint32_t* pc() const;
106 virtual void B(int cc, uint32_t* pc);
107 virtual void BL(int cc, uint32_t* pc);
175 inline branch_target_t() : label(0), pc(0) { } in branch_target_t()
177 : label(l), pc(p) { } in branch_target_t()
179 uint32_t* pc; member
DArm64Assembler.h55 uint32_t* pc() const;
114 virtual void B(int cc, uint32_t* pc);
115 virtual void BL(int cc, uint32_t* pc);
253 inline branch_target_t() : label(0), pc(0) { } in branch_target_t()
255 : label(l), pc(p) { } in branch_target_t()
257 uint32_t* pc; member
DMIPSAssembler.h46 uint32_t* pc() const;
106 virtual void B(int cc, uint32_t* pc);
107 virtual void BL(int cc, uint32_t* pc);
248 uint32_t* pc() const;
417 inline branch_target_t() : label(0), pc(0) { } in branch_target_t()
419 : label(l), pc(p) { } in branch_target_t()
421 uint32_t* pc; member
DArm64Assembler.cpp194 uint32_t* ArmToArm64Assembler::pc() const in pc() function in android::ArmToArm64Assembler
232 size_t count = pc()-base(); in disassemble()
309 int32_t offset = int32_t(target_pc - bt.pc); in generate()
310 *bt.pc |= (offset & 0x7FFFF) << 5; in generate()
314 mAssembly->resize( int(pc()-base())*4 ); in generate()
319 ALOGI(format, name, int(pc()-base()), base(), pc(), duration); in generate()
326 printf(format, name, int(pc()-base()), base(), pc(), duration); in generate()
DARMAssemblerProxy.cpp189 void ARMAssemblerProxy::B(int cc, uint32_t* pc) { in B() argument
190 mTarget->B(cc, pc); in B()
192 void ARMAssemblerProxy::BL(int cc, uint32_t* pc) { in BL() argument
193 mTarget->BL(cc, pc); in BL()
DARMAssemblerProxy.h95 virtual void B(int cc, uint32_t* pc);
96 virtual void BL(int cc, uint32_t* pc);
/system/core/debuggerd/arm64/
Dmachine.cpp46 dump_memory(log, backtrace, static_cast<uintptr_t>(regs.pc), "code around pc:"); in dump_memory_and_code()
48 if (regs.pc != regs.sp) { in dump_memory_and_code()
77 r.sp, r.pc, r.pstate); in dump_registers()
/system/core/debuggerd/mips64/
Dmachine.cpp53 uintptr_t pc = R(r.cp0_epc); in dump_memory_and_code() local
55 dump_memory(log, backtrace, pc, "code around pc:"); in dump_memory_and_code()
56 if (pc != ra) { in dump_memory_and_code()
/system/core/debuggerd/mips/
Dmachine.cpp53 uintptr_t pc = R(r.cp0_epc); in dump_memory_and_code() local
55 dump_memory(log, backtrace, pc, "code around pc:"); in dump_memory_and_code()
56 if (pc != ra) { in dump_memory_and_code()
/system/extras/ksmutils/
Dlookup3.c221 uint32_t *pc, /* IN: seed OUT: primary hash value */ in hashword2() argument
227 a = b = c = 0xdeadbeef + ((uint32_t)(length<<2)) + *pc; in hashword2()
252 *pc=c; *pb=b; in hashword2()
466 uint32_t *pc, /* IN: primary initval, OUT: primary hash */ in hashlittle2() argument
473 a = b = c = 0xdeadbeef + ((uint32_t)length) + *pc; in hashlittle2()
518 case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */ in hashlittle2()
538 case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */ in hashlittle2()
587 case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */ in hashlittle2()
629 case 0 : *pc=c; *pb=b; return; /* zero length strings require no mixing */ in hashlittle2()
634 *pc=c; *pb=b; in hashlittle2()
/system/core/libpixelflinger/
Dcol32cb16blend.S74 pop {r4-r10, pc} // return
Drotate90CW_4x4_16v6.S62 ldmfd sp!, {r4,r5, r6,r7, r8,r9, r10,r11, pc}
Dcol32cb16blend_neon.S150 pop {r4-r11, pc} // return
/system/core/include/private/
Dandroid_filesystem_config.h218 ssize_t fs_config_generate(char *buffer, size_t length, const struct fs_path_config *pc);

12