Home
last modified time | relevance | path

Searched refs:vaddr (Results 1 – 25 of 32) sorted by relevance

12

/developtools/profiler/device/plugins/native_daemon/include/
Dsymbols_file.h56 FileSymbol(uint64_t vaddr, uint64_t len, const char *name, const char *demangle) in FileSymbol() argument
57 : vaddr_(vaddr), len_(len), name_(name), demangle_(demangle) in FileSymbol()
80 Symbol(uint64_t vaddr, uint64_t len, const std::string &name, const std::string &demangle, in Symbol()
85 funcVaddr_(vaddr), in Symbol()
86 fileVaddr_(vaddr), in Symbol()
89 Symbol(uint64_t vaddr, uint64_t len, const std::string &name, const std::string &module) in Symbol()
90 : Symbol(vaddr, len, name, name, module) {}; in Symbol()
93 Symbol(uint64_t vaddr, const std::string &name, const std::string &module) in Symbol()
94 : Symbol(vaddr, 0, name, name, module) {} in Symbol()
133 void setIpVAddress(uint64_t vaddr) in setIpVAddress()
[all …]
Dperf_file_format.h30 SymbolStruct(uint64_t vaddr, uint32_t len, const std::string &symbolName) in SymbolStruct()
31 : vaddr_(vaddr), len_(len), symbolName_(symbolName) in SymbolStruct()
Dvirtual_thread.h80 bool ReadRoMemory(uint64_t vaddr, uint8_t *data, size_t size) const;
82 void ReportVaddrMapMiss(uint64_t vaddr) const;
Dmem_map_item.h121 static bool ValueLessThan(uint64_t vaddr, const MemMapItem &a) in ValueLessThan() argument
123 return vaddr <= a.begin_; in ValueLessThan()
/developtools/hiperf/include/
Dsymbols_file.h57 FileSymbol(uint64_t vaddr, uint64_t len, const char *name, const char *demangle) in FileSymbol() argument
58 : vaddr_(vaddr), len_(len), name_(name), demangle_(demangle) in FileSymbol()
80 Symbol(uint64_t vaddr, uint64_t len, const std::string &name, const std::string &demangle, in Symbol()
82 : funcVaddr_(vaddr), in Symbol()
83 fileVaddr_(vaddr), in Symbol()
88 Symbol(uint64_t vaddr, uint64_t len, const std::string &name, const std::string &module) in Symbol()
89 : Symbol(vaddr, len, name, name, module) {} in Symbol()
92 Symbol(uint64_t vaddr, const std::string &name, const std::string &module) in Symbol()
93 : Symbol(vaddr, 0, name, name, module) {} in Symbol()
203 static bool ValueLessThen(uint64_t vaddr, const Symbol &a) in ValueLessThen()
[all …]
Dmem_map_item.h91 static bool ValueLessThan(uint64_t vaddr, const MemMapItem &a) in ValueLessThan() argument
93 return vaddr <= a.begin_; in ValueLessThan()
Dvirtual_thread.h87 bool ReadRoMemory(uint64_t vaddr, uint8_t *data, size_t size) const;
89 void ReportVaddrMapMiss(uint64_t vaddr) const;
Dreport.h42 ReportItemCallFrame(std::string_view func, uint64_t vaddr, std::string_view dso, in ReportItemCallFrame() argument
45 vaddr_(vaddr), in ReportItemCallFrame()
129 uint64_t vaddr, uint64_t eventCount) in ReportItem() argument
135 vaddr_(vaddr), in ReportItem()
143 const std::string_view &func, uint64_t vaddr, uint64_t eventCount) in ReportItem() argument
149 vaddr_(vaddr), in ReportItem()
Dperf_file_format.h184 SymbolStruct(uint64_t vaddr, uint32_t len, const std::string &symbolName) in SymbolStruct()
185 : vaddr_(vaddr), len_(len), symbolName_(symbolName) in SymbolStruct()
/developtools/hiperf/src/
Dvirtual_thread.cpp185 void VirtualThread::ReportVaddrMapMiss(uint64_t vaddr) const in ReportVaddrMapMiss()
189 if (missedRuntimeVaddr_.find(vaddr) == missedRuntimeVaddr_.end()) { in ReportVaddrMapMiss()
190 missedRuntimeVaddr_.insert(vaddr); in ReportVaddrMapMiss()
191 HLOGV("vaddr %" PRIx64 " not found in any map", vaddr); in ReportVaddrMapMiss()
200 bool VirtualThread::ReadRoMemory(uint64_t vaddr, uint8_t *data, size_t size) const in ReadRoMemory() argument
202 uint64_t pageIndex = vaddr >> 12; in ReadRoMemory()
210 int64_t retIndex = FindMapIndexByAddr(vaddr); in ReadRoMemory()
224 uint64_t foff = map.FileOffsetFromAddr(vaddr); in ReadRoMemory()
232 HLOGW("find addr %" PRIx64 "in map but not loaded symbole %s", vaddr, in ReadRoMemory()
237 ReportVaddrMapMiss(vaddr); in ReadRoMemory()
Dcallstack.cpp258 bool CallStack::ReadVirtualThreadMemory(UnwindInfo &unwindInfoPtr, unw_word_t vaddr, in ReadVirtualThreadMemory() argument
262 vaddr == unwindInfoPtr.callStack.lastAddr_, true)) { in ReadVirtualThreadMemory()
267 …if (unwindInfoPtr.thread.ReadRoMemory(vaddr, reinterpret_cast<uint8_t*>(data), sizeof(unw_word_t))… in ReadVirtualThreadMemory()
269 unwindInfoPtr.callStack.lastAddr_ = vaddr; in ReadVirtualThreadMemory()
Dsubcommand_record.cpp1457 for (auto &vaddr : kernelSymbolsHits_) { in SymbolicHits() local
1458 virtualRuntime_.GetSymbol(vaddr, 0, 0, PERF_CONTEXT_KERNEL); in SymbolicHits()
1462 for (auto &vaddr : processPair.second) { in SymbolicHits() local
1463 virtualRuntime_.GetSymbol(vaddr, processPair.first, processPair.first, in SymbolicHits()
Dsymbols_file.cpp827 uint64_t vaddr = ip - mapStart + mapPageOffset - textExecVaddrFileOffset_ + textExecVaddr_; in GetVaddrInSymbols() local
829 ip, ip - mapStart + mapPageOffset, vaddr); in GetVaddrInSymbols()
832 return vaddr; in GetVaddrInSymbols()
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_thread.cpp215 void VirtualThread::ReportVaddrMapMiss(uint64_t vaddr) const in ReportVaddrMapMiss()
219 if (missedRuntimeVaddr_.find(vaddr) == missedRuntimeVaddr_.end()) { in ReportVaddrMapMiss()
220 missedRuntimeVaddr_.insert(vaddr); in ReportVaddrMapMiss()
221 HLOGV("vaddr %" PRIx64 " not found in any map", vaddr); in ReportVaddrMapMiss()
230 bool VirtualThread::ReadRoMemory(uint64_t vaddr, uint8_t *data, size_t size) const in ReadRoMemory() argument
232 auto [curMemMaps, itemIndex] = virtualruntime_->FindMap(vaddr); in ReadRoMemory()
237 …HLOGM("read vaddr from addr is 0x%" PRIx64 " at '%s'", vaddr - curMemMaps->maps_[itemIndex].begin_, in ReadRoMemory()
239 …== symbolsFile->ReadRoMemory(curMemMaps->maps_[itemIndex].FileOffsetFromAddr(vaddr), data, size)) { in ReadRoMemory()
245 HLOGW("found addr %" PRIx64 " in map but not loaded symbole %s", vaddr, in ReadRoMemory()
250 ReportVaddrMapMiss(vaddr); in ReadRoMemory()
Dsymbols_file.cpp797 uint64_t vaddr = ip - mapStart + mapPageOffset - textExecVaddrFileOffset_ + textExecVaddr_; in GetVaddrInSymbols() local
799 ip, ip - mapStart + mapPageOffset, vaddr); in GetVaddrInSymbols()
802 return vaddr; in GetVaddrInSymbols()
/developtools/smartperf_host/trace_streamer/src/parser/hiperf_parser/
Dperf_data_parser.h63 CallStackTemp(uint32_t depth, uint64_t vaddr, uint64_t fileId, uint32_t symbolId) in CallStackTemp() argument
64 : depth_(depth), vaddrInFile_(vaddr), fileId_(fileId), symbolId_(symbolId) in CallStackTemp()
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/
Dperf_data_parser.h60 CallStackTemp(uint32_t depth, uint64_t vaddr, uint64_t fileId, uint32_t symbolId) in CallStackTemp() argument
61 : depth_(depth), vaddrInFile_(vaddr), fileId_(fileId), symbolId_(symbolId) in CallStackTemp()
/developtools/profiler/device/plugins/hiebpf_plugin/tools/src/
Debpf_converter.cpp423 uint64_t vaddr = ip - start + offset - symItem->second.textOffset + symItem->second.textVaddr; in GetSymbolInfo() local
424 vAddr_[ip] = vaddr; in GetSymbolInfo()
435 if (vaddr >= sym.st_value && in GetSymbolInfo()
436 vaddr <= sym.st_value + sym.st_size && in GetSymbolInfo()
454 if (vaddr >= sym.st_value && in GetSymbolInfo()
455 vaddr <= sym.st_value + sym.st_size && in GetSymbolInfo()
/developtools/profiler/host/smartperf/trace_streamer/src/filter/
Dnative_hook_filter.cpp513 std::string vaddr = base::Uint64ToHexText(frameInfo->symVaddr_); in FillOfflineSymbolizationFrames() local
517 frameInfo->offset_, frameInfo->symbolOffset_, vaddr); in FillOfflineSymbolizationFrames()
705 auto vaddr = base::Uint64ToHexText(fileOffset + symbolOffset); in GetNativeHookFrameVaddrs() local
706 vaddrs_.emplace_back(vaddr); in GetNativeHookFrameVaddrs()
711 std::string vaddr = ""; in GetNativeHookFrameVaddrs() local
717 vaddr = functionName.substr(++pos); in GetNativeHookFrameVaddrs()
720 functionNameIndexToVaddr_.emplace(std::make_pair(functionNameIndex, vaddr)); in GetNativeHookFrameVaddrs()
722 vaddr = itor->second; in GetNativeHookFrameVaddrs()
724 vaddrs_.emplace_back(vaddr); in GetNativeHookFrameVaddrs()
/developtools/smartperf_host/trace_streamer/src/filter/
Dnative_hook_filter.cpp521 std::string vaddr = base::Uint64ToHexText(frameInfo->symVaddr_); in FillOfflineSymbolizationFrames() local
525 frameInfo->offset_, frameInfo->symbolOffset_, vaddr); in FillOfflineSymbolizationFrames()
713 auto vaddr = base::Uint64ToHexText(fileOffset + symbolOffset); in GetNativeHookFrameVaddrs() local
714 vaddrs_.emplace_back(vaddr); in GetNativeHookFrameVaddrs()
719 std::string vaddr = ""; in GetNativeHookFrameVaddrs() local
725 vaddr = functionName.substr(++pos); in GetNativeHookFrameVaddrs()
728 functionNameIndexToVaddr_.emplace(std::make_pair(functionNameIndex, vaddr)); in GetNativeHookFrameVaddrs()
730 vaddr = itor->second; in GetNativeHookFrameVaddrs()
732 vaddrs_.emplace_back(vaddr); in GetNativeHookFrameVaddrs()
/developtools/hiperf/proto/
Dreport_sample.proto45 // loaded function base vaddr
/developtools/profiler/hiebpf/src/
Dbpf_controller.cpp402 uint64_t vaddr = 0; in GetSymOffset() local
410 ret = memcpy_s(&vaddr, sizeof(uint64_t), symData + stepLength + valueOffset, valueSize); in GetSymOffset()
416 CHECK_TRUE(vaddr != 0, 0, "get vaddr failed"); in GetSymOffset()
421 return vaddr - textPtr->secVaddr_ + textPtr->fileOffset_; in GetSymOffset()
/developtools/hiperf/test/unittest/common/native/
Dsymbols_file_test.cpp93 uint64_t vaddr = symbols[pos].funcVaddr_; in CheckSymbols() local
94 EXPECT_EQ(symbolsFile->GetSymbolWithVaddr(vaddr).funcVaddr_, vaddr); in CheckSymbols()
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dsymbols_file_test.cpp121 uint64_t vaddr = symbols[pos].funcVaddr_; in CheckSymbols() local
122 EXPECT_EQ(symbolsFile->GetSymbolWithVaddr(vaddr).funcVaddr_, vaddr); in CheckSymbols()
Delf_parser_test.cpp886 auto vaddr = GetVaddr(line); in Init() local
887 if (vaddr == -1) { in Init()
892 vaddr_ = static_cast<uint64_t>(vaddr); in Init()

12