/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
H A D | callstack_test.cpp | 54 std::vector<u64> regs; in HWTEST_F() 56 LoadFromFile(PATH_RESOURCE_TEST_DWARF_DATA + TEST_DWARF_USER_REGS_0, regs); in HWTEST_F() 58 if (regs.size() > 0 and data.size() > 0) { in HWTEST_F() 60 ASSERT_EQ(regs.size(), 16u); in HWTEST_F() 74 callStack.UnwindCallStack(thread, regs.data(), regs.size(), data.data(), data.size(), callFrames); in HWTEST_F() 76 bool ret = callStack.UnwindCallStack(thread, regs.data(), regs.size(), data.data(), data.size(), callFrames); in HWTEST_F()
|
/developtools/profiler/device/plugins/native_hook/src/ |
H A D | hook_client.cpp | 450 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); in hook_malloc() local 451 GetLocalRegs(regs); in hook_malloc() 452 stackptr = reinterpret_cast<const char*>(regs[RegisterGetSP(buildArchType)]); in hook_malloc() 471 realSize = sizeof(BaseStackRawData) + sizeof(rawdata.regs); in hook_malloc() 555 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); in hook_aligned_alloc() local 556 GetLocalRegs(regs); in hook_aligned_alloc() 557 stackptr = reinterpret_cast<const char*>(regs[RegisterGetSP(buildArchType)]); in hook_aligned_alloc() 576 realSize = sizeof(BaseStackRawData) + sizeof(rawdata.regs); in hook_aligned_alloc() 660 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_calloc() local 773 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_realloc() local 912 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_free() local 1030 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_mmap() local 1133 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_munmap() local 1256 unsigned long* regs = reinterpret_cast<unsigned long*>(&(rawdata.regs)); hook_memtrace() local [all...] |
/developtools/profiler/device/plugins/native_daemon/src/ |
H A D | register.cpp | 248 void UpdateRegForABI(ArchType arch, u64 *regs)
in UpdateRegForABI() argument 250 if (regs == nullptr) {
in UpdateRegForABI() 255 regs[PERF_REG_ARM_PC] = regs[PERF_REG_ARM64_PC];
in UpdateRegForABI()
|
H A D | call_stack.cpp | 305 // libunwind not access other regs
in AccessReg() 394 bool CallStack::GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const
in GetIpSP() argument 397 UNWIND_CHECK_TRUE(RegisterGetSPValue(sp, arch_, regs, regNum), false, "unable get sp");
in GetIpSP() 398 UNWIND_CHECK_TRUE(RegisterGetIPValue(ip, arch_, regs, regNum), false, "unable get ip");
in GetIpSP() 440 bool CallStack::UnwindCallStack(const VirtualThread &thread, u64 *regs, u64 regsNum,
in UnwindCallStack() argument 444 regs_ = regs;
in UnwindCallStack() 516 std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm>();
in DoUnwind2() local 521 regs->SetRegsData(tempRegs);
in DoUnwind2() 523 std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm64>();
in DoUnwind2() local 524 regs in DoUnwind2() [all...] |
H A D | virtual_runtime.cpp | 206 bool VirtualRuntime::UnwindStack(std::vector<u64>& regs, in UnwindStack() argument 221 callstack_.UnwindCallStack(thread, ®s[0], regs.size(), stack_addr, stack_size, callFrames, maxStackLevel, in UnwindStack() 253 callstack_.UnwindCallStack(thread, ®s[0], regs.size(), stack_addr, in UnwindStack()
|
/developtools/hiperf/test/unittest/common/native/ |
H A D | callstack_test.cpp | 617 std::vector<u64> regs; in HWTEST_F() 619 LoadFromFile(PATH_RESOURCE_TEST_DWARF_DATA + TEST_DWARF_USER_REGS_0, regs); in HWTEST_F() 621 if (regs.size() > 0 and data.size() > 0) { in HWTEST_F() 623 ASSERT_EQ(regs.size(), 16u); in HWTEST_F() 638 bool ret = callStack.UnwindCallStack(thread, false, regs.data(), regs.size(), data.data(), data.size(), in HWTEST_F()
|
/developtools/hiperf/src/ |
H A D | callstack.cpp | 419 bool CallStack::GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const in GetIpSP() argument 422 CHECK_TRUE(!RegisterGetSPValue(sp, arch_, regs, regNum), false, 1, "unable get sp"); in GetIpSP() 423 CHECK_TRUE(!RegisterGetIPValue(ip, arch_, regs, regNum), false, 1, "unable get ip"); in GetIpSP() 468 bool CallStack::UnwindCallStack(const VirtualThread &thread, bool abi32, u64 *regs, u64 regsNum, in UnwindCallStack() argument 472 regs_ = regs; in UnwindCallStack() 671 static std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm>(); in DoUnwind2() 676 regs->SetRegsData(tempRegs); in DoUnwind2() 678 static std::shared_ptr<DfxRegs> regs = std::make_shared<DfxRegsArm64>(); in DoUnwind2() 679 regs->SetRegsData(reinterpret_cast<uintptr_t*>(regs_), regsNum_); in DoUnwind2() 682 unwinder->SetRegs(regs); in DoUnwind2() [all...] |
H A D | register.cpp | 273 void UpdateRegForABI(ArchType arch, u64 *regs) in UpdateRegForABI() argument 277 regs[PERF_REG_ARM_PC] = regs[PERF_REG_ARM64_PC]; in UpdateRegForABI()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
H A D | call_stack.h | 44 bool UnwindCallStack(const VirtualThread &thread, u64 *regs, u64 regsNum,
64 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const;
122 // pid->unwinder(acc/regs/maps) cache
134 const u64 *regs;
member
|
H A D | hook_common.h | 100 char regs[MAX_REG_SIZE]; member
|
H A D | virtual_runtime.h | 76 bool UnwindStack(std::vector<u64>& regs,
|
/developtools/hiperf/include/ |
H A D | callstack.h | 58 bool UnwindCallStack(const VirtualThread &thread, bool abi32, u64 *regs, u64 regsNum, 80 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const; 136 // pid->unwinder(acc/regs/maps) cache 152 const u64 *regs; member
|
/developtools/profiler/hiebpf/include/ |
H A D | vmlinux.h | 1196 __u64 regs[31]; member 1206 u64 regs[31]; member 5787 struct pt_regs *regs; member 6735 struct irq_chip_regs regs; member 6888 struct pt_regs regs; member 6893 struct pt_regs *regs; member 7295 struct pt_regs *regs; member 14548 __u64 regs[31]; member 16333 struct pt_regs *regs; member 18257 struct user_pt_regs regs; member 18478 struct kvm_guest_debug_arch regs; global() member 18639 struct user_pt_regs regs; global() member 18848 struct kvm_sync_regs regs; global() member 29522 long long unsigned int regs; global() member 29528 long long unsigned int regs; global() member 30669 bpf_user_pt_regs_t regs; global() member 30686 bpf_user_pt_regs_t *regs; global() member 30755 struct pt_regs regs[3]; global() member 30802 struct pt_regs regs[3]; global() member 31298 struct bpf_reg_state regs[11]; global() member 51514 const struct debugfs_reg32 *regs; global() member 67425 void *regs; global() member 67857 struct combiner_reg regs[0]; global() member 67913 void *regs; global() member 67934 void *regs; global() member 68841 u32 regs[6]; global() member 70099 struct meson_reg_desc regs[6]; global() member 71169 void **regs; global() member 71767 void *regs; global() member 71911 u32 *regs; global() member 73194 void *regs[4]; global() member 90857 const struct mtk_eint_regs *regs; global() member 91318 void *regs; global() member 91629 void *regs; global() member 91638 void *regs[5]; global() member 91653 void *regs; global() member 91734 struct regmap *regs; global() member 91748 struct regmap *regs; global() member 92061 struct regmap *regs; global() member 92147 const u8 *regs; global() member 92177 u8 regs[9]; global() member 92210 u8 regs[15]; global() member 92271 void *regs; global() member 92395 void *regs; global() member 92885 struct aer_capability_regs *regs; global() member 93958 } regs; global() member 93992 struct resource regs; global() member 101438 void *regs; global() member 102019 void *regs; global() member 102372 void *regs; global() member 103120 const struct mtk_gate_regs *regs; global() member 105109 const struct tegra_clk_periph_regs *regs; global() member 105141 const struct tegra_clk_periph_regs *regs; global() member 105727 void *regs; global() member 108695 __be32 *regs; global() member 108804 phys_addr_t regs; global() member 108922 resource_size_t regs; global() member 109015 struct ccsr_guts *regs; global() member 109160 const struct scp_ctrl_reg regs; global() member 109265 void *regs; global() member 109297 void *regs; global() member 110082 const struct tegra_pmc_regs *regs; global() member 111823 void *regs; global() member 113910 struct uart_regs_layout regs; global() member 115222 } regs; global() member 115280 void *regs; global() member 115994 void *regs; global() member 117393 void *regs; global() member 118281 const u8 *regs; global() member 130101 struct dtsec_regs *regs; global() member 130276 struct memac_regs *regs; global() member 130405 struct tgec_regs *regs; global() member 130483 struct davinci_mdio_regs *regs; global() member 132565 void *regs; global() member 132961 struct ehci_regs *regs; global() member 133371 struct ohci_regs *regs; global() member 133472 void *regs; global() member 134051 struct dbc_regs *regs; global() member 135299 u8 *regs; global() member 143219 void *regs; global() member 143279 void *regs; global() member 143291 void *regs; global() member 143365 void *regs; global() member 143405 void *regs; global() member 143852 void *regs; global() member 144127 void *regs; global() member 144676 void *regs; global() member [all...] |