/developtools/smartperf_host/trace_streamer/src/filter/hook_filter/ |
D | offline_symbolization_filter.cpp | 35 uint64_t ip, in GetSymbolStartMaybeUpdateFrameInfo() argument 41 frameInfo->offset_ = elfSym->st_value != 0 ? elfSym->st_value : ip; in GetSymbolStartMaybeUpdateFrameInfo() 47 …ationFilter::FillFrameInfo(const std::shared_ptr<FrameInfo> &frameInfo, uint64_t ip, uint64_t ipid) in FillFrameInfo() argument 49 frameInfo->ip_ = ip; in FillFrameInfo() 53 auto endItor = startAddrToMapsInfoItor->upper_bound(ip); in FillFrameInfo() 58 if (ip < endItor->second->end()) { in FillFrameInfo() 66 TS_LOGI("find matching Maps Info failed, ip = %" PRIu64 ", length=%" PRId64 "", ip, length); in FillFrameInfo() 72 uint64_t ip, in CalcSymInfo() 79 …ip - vmStart_ + vmOffset_ + symbolTable->text_exec_vaddr() - symbolTable->text_exec_vaddr_file_off… in CalcSymInfo() 86 ipidToIpToFrameInfo_.Insert(ipid, ip, frameInfo); in CalcSymInfo() [all …]
|
D | offline_symbolization_filter.h | 65 std::shared_ptr<FrameInfo> OfflineSymbolizationByIp(uint64_t ipid, uint64_t ip); 94 uint64_t ip, 96 bool FillFrameInfo(const std::shared_ptr<FrameInfo> &frameInfo, uint64_t ip, uint64_t ipid); 98 uint64_t ip,
|
/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_base.cpp | 73 EbpfSymbolInfo EbpfBase::GetEbpfSymbolInfo(uint32_t pid, uint64_t ip) in GetEbpfSymbolInfo() argument 75 auto value = pidAndIpToEbpfSymbolInfo_.Find(pid, ip); in GetEbpfSymbolInfo() 79 return GetSymbolNameIndexFromElfSym(pid, ip); in GetEbpfSymbolInfo() 117 void EbpfBase::UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip) in UpdateFilePathIndexToPidAndIpMap() argument 121 itor->second->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 124 pidAndIpSet->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap() 133 uint64_t ip) in GetSymbolSave() argument 139 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolSave() 144 if (ip < end->second->end) { in GetSymbolSave() 153 pidAndIpToEbpfSymbolInfo_.Insert(pid, ip, ebpfSymbolInfo); in GetSymbolSave() [all …]
|
D | ebpf_base.h | 44 EbpfSymbolInfo GetEbpfSymbolInfo(uint32_t pid, uint64_t ip); 45 EbpfSymbolInfo GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip); 47 …lSave(EbpfSymbolInfo &ebpfSymbolInfo, StartToMapsAddr &startToMapsAddr, uint32_t pid, uint64_t ip); 48 void UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip);
|
D | ebpf_data_reader.cpp | 293 EbpfSymbolInfo EbpfDataReader::GetSymbolNameIndexFromElfSym(uint64_t ip) in GetSymbolNameIndexFromElfSym() argument 296 auto end = kernelSymbolMap_.upper_bound(ip); in GetSymbolNameIndexFromElfSym() 301 if (ip < end->first + end->second.size) { in GetSymbolNameIndexFromElfSym() 306 … TS_LOGD("failed for ip:%" PRIu64 ", kernelip:%" PRIu64 ", size:%" PRIu64 "", ip, end->first, in GetSymbolNameIndexFromElfSym() 311 TS_LOGD("failed for ip:%" PRIu64 "", ip); in GetSymbolNameIndexFromElfSym()
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | virtual_runtime.h | 143 uint64_t& ip = first; member 150 ip = sym.ip; 154 …SymbolCacheKey(const std::pair<uint64_t, uint32_t>& arg) : pair(arg), ip(first), filePathId(second… in SymbolCacheKey() 155 …SymbolCacheKey(uint64_t ip, uint32_t filePathId) : pair(ip, filePathId), ip(first), filePathId(sec… in SymbolCacheKey() 165 seed ^= hasher(key.ip) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in operator() 183 bool GetSymbolCache(uint64_t ip, DfxSymbol &symbol, const VirtualThread &thread); 184 void UpdateSymbolCache(uint64_t ip, DfxSymbol &symbol, HashList<uint64_t, DfxSymbol> &cache); 192 const DfxSymbol GetKernelSymbol(uint64_t ip, const std::vector<std::shared_ptr<DfxMap>> &maps, 194 const DfxSymbol GetUserSymbol(uint64_t ip, const VirtualThread &thread);
|
D | perf_event_record.h | 59 …CallFrame(uint64_t ip, uint64_t sp = 0, bool isJsFrame = false) : ip_(ip), sp_(sp), isJsFrame_(isJ… in ip_() 62 CallFrame(uint64_t ip, uint64_t vaddrInFile, const char *name, const char *filePath) in CallFrame() 63 : ip_(ip), vaddrInFile_(vaddrInFile), symbolName_(name), filePath_(filePath) in CallFrame()
|
/developtools/integration_verification/DeployDevice/src/aw/poweronoff/ |
D | serial_power_on_off.py | 7 def __init__(self, ip, port, timeout=10, encoding="GBK"): argument 24 self.connect((ip, port)) 108 def serialPowerOnOff(ip, port, index, power, user='Administrator', password=''): argument 124 serialPort = SocketCon(ip, int(port)) 164 def usbPowerOnOff(ip, port, index, power): argument 178 usbpower = SocketCon(ip, int(port)) 213 def usbPowerOnOffV2(ip, port, index, power): argument 227 usbpower = SocketCon(ip, int(port))
|
/developtools/hiperf/src/ |
D | virtual_runtime.cpp | 420 uint64_t ip = node->section.ip | KERNEL_PREFIX; in CollectDedupSymbol() local 421 if (ip == PERF_CONTEXT_KERNEL || ip == PERF_CONTEXT_USER) { in CollectDedupSymbol() 424 kernelSymbolsHits.insert(ip); in CollectDedupSymbol() 426 userSymbolsHits[pid].insert(node->section.ip); in CollectDedupSymbol() 484 void VirtualRuntime::SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip, in SymbolicCallFrame() argument 492 auto symbol = GetSymbol(ip, pid, tid, context); in SymbolicCallFrame() 493 MakeCallFrame(symbol, recordSample.callFrames_.emplace_back(ip, 0)); in SymbolicCallFrame() 525 SymbolicCallFrame(recordSample, recordSample.data_.ip, serverPid, PERF_CONTEXT_MAX); in SymbolicRecord() 528 uint64_t ip = recordSample.data_.ips[i]; in SymbolicRecord() local 529 if (ip >= PERF_CONTEXT_MAX) { in SymbolicRecord() [all …]
|
D | callstack.cpp | 185 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument 239 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable() 258 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument 263 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo() 264 auto map = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo() 268 … return FindUnwindTable(symbolsFile, map, unwindInfoPtr, as, ip, pi, need_unwind_info, arg); in FindProcInfo() 274 HLOGE("ip 0x%016" UNW_WORD_PFLAG " not found in thread %d:%s", ip, in FindProcInfo() 382 unw_word_t ip; in UnwindStep() local 384 unw_get_reg(&c, UNW_REG_IP, &ip); in UnwindStep() 387 if (ip == 0) { in UnwindStep() [all …]
|
D | symbols_file.cpp | 481 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, in GetVaddrInSymbols() argument 498 uint64_t vaddr = ip - mapStart + mapPageOffset - textExecVaddrFileOffset_ + textExecVaddr_; in GetVaddrInSymbols() 500 ip, ip - mapStart + mapPageOffset, vaddr); in GetVaddrInSymbols() 721 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, uint64_t) const override in GetVaddrInSymbols() argument 724 return ip; in GetVaddrInSymbols() 851 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, uint64_t) const override in GetVaddrInSymbols() argument 853 return ip - mapStart; in GetVaddrInSymbols() 887 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, in GetVaddrInSymbols() argument 892 return ip - mapStart + mapPageOffset; in GetVaddrInSymbols() 1010 DfxSymbol GetSymbolWithPcAndMap(uint64_t ip, std::shared_ptr<DfxMap> map) override in GetSymbolWithPcAndMap() argument [all …]
|
/developtools/profiler/device/plugins/native_daemon/src/ |
D | virtual_runtime.cpp | 332 const DfxSymbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<std::shared_ptr<DfxM… in GetKernelSymbol() argument 335 DfxSymbol vaddrSymbol(ip, thread.name_); in GetKernelSymbol() 337 if (ip > map->begin && ip < map->end) { in GetKernelSymbol() 339 ip, map->begin, map->end, map->name.c_str()); in GetKernelSymbol() 346 symbolsFile->GetVaddrInSymbols(ip, map->begin, map->offset); in GetKernelSymbol() 349 vaddrSymbol.fileVaddr_, ip, map->name.c_str()); in GetKernelSymbol() 354 foundSymbols.taskVaddr_ = ip; in GetKernelSymbol() 357 ip, vaddrSymbol.fileVaddr_, map->name.c_str()); in GetKernelSymbol() 363 HLOGW("addr 0x%" PRIx64 " in map but NOT found the symbol file %s", ip, in GetKernelSymbol() 366 HLOGM("addr 0x%" PRIx64 " not in map 0x%" PRIx64 " - 0x%" PRIx64 " from %s", ip, in GetKernelSymbol() [all …]
|
D | call_stack.cpp | 169 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument 220 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable() 239 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument 244 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo() 245 auto map = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo() 249 return FindUnwindTable(symbolsFile, map, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo() 256 HLOGE("ip 0x%016" UNW_WORD_PFLAG " not found in thread %d:%s", ip, in FindProcInfo() 359 unw_word_t ip = 0; in UnwindStep() local 361 unw_get_reg(&c, UNW_REG_IP, &ip); in UnwindStep() 364 if (ip == 0) { in UnwindStep() [all …]
|
D | symbols_file.cpp | 417 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, in GetVaddrInSymbols() argument 434 uint64_t vaddr = ip - mapStart + mapPageOffset - textExecVaddrFileOffset_ + textExecVaddr_; in GetVaddrInSymbols() 436 ip, ip - mapStart + mapPageOffset, vaddr); in GetVaddrInSymbols() 594 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, uint64_t) const override in GetVaddrInSymbols() argument 597 return ip; in GetVaddrInSymbols() 637 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, uint64_t) const override in GetVaddrInSymbols() argument 639 return ip - mapStart; in GetVaddrInSymbols() 673 uint64_t GetVaddrInSymbols(uint64_t ip, uint64_t mapStart, in GetVaddrInSymbols() argument 678 return ip - mapStart + mapPageOffset; in GetVaddrInSymbols() 814 DfxSymbol GetSymbolWithPcAndMap(uint64_t ip, std::shared_ptr<DfxMap> map) override in GetSymbolWithPcAndMap() argument [all …]
|
/developtools/profiler/device/plugins/hiebpf_plugin/tools/src/ |
D | ebpf_converter.cpp | 189 for (const auto &ip : efs.userIPs) { in EventFsParsing() local 190 if (ip == 0) { in EventFsParsing() 193 outData_ << " 0x" << std::hex << ip << std::dec << ":"; in EventFsParsing() 194 auto itm = GetSymbolInfo(efs.pid, ip); in EventFsParsing() 195 outData_ << "\n vAddr_: 0x" << std::hex << vAddr_[ip] << std::dec << '\n'; in EventFsParsing() 320 for (const auto &ip : mem.userIPs) { in EventMemParsing() local 321 if (ip == 0) { in EventMemParsing() 324 outData_ << " 0x" << std::hex << ip << std::dec << ":"; in EventMemParsing() 325 auto itm = GetSymbolInfo(mem.pid, ip); in EventMemParsing() 326 outData_ << "\n vAddr_: 0x" << std::hex << vAddr_[ip] << std::dec << '\n'; in EventMemParsing() [all …]
|
/developtools/profiler/protos/types/plugins/native_hook/ |
D | native_hook_result.proto | 20 uint64 ip = 1; field 74 // offline symbolization, ip sequence include fake ip(arkts frame id, etc) 75 repeated uint64 ip = 3; field
|
/developtools/hiperf/include/ |
D | virtual_runtime.h | 132 DfxSymbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid, 213 const DfxSymbol GetKernelSymbol(uint64_t ip, const std::vector<DfxMap> &memMaps, 215 const DfxSymbol GetUserSymbol(uint64_t ip, const VirtualThread &thread); 216 const DfxSymbol GetKernelThreadSymbol(uint64_t ip, const VirtualThread &thread); 220 void SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip,
|
/developtools/integration_verification/DeployDevice/src/aw/Common/ |
D | Common.py | 83 ip = "" 87 ip = s.getsockname()[0] 92 return ip
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | register_test.cpp | 151 size_t ip = RegisterGetIP(buildArchType); variable 152 registers[ip] = 0x1234; 154 EXPECT_EQ(RegisterGetValue(value, registers, ip, sizeof(registers)),
|
/developtools/hiperf/test/unittest/common/native/ |
D | register_test.cpp | 152 size_t ip = RegisterGetIP(BUILD_ARCH_TYPE); variable 153 registers[ip] = 0x1234; 155 EXPECT_EQ(RegisterGetValue(value, registers, ip, sizeof(registers)),
|
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/ |
D | ftrace_ftrace_event_formatter.cpp | 34 if (kernelSymbols.count(msg.ip()) > 0) { in __anona90f99160302() 35 functionStr = kernelSymbols[msg.ip()]; in __anona90f99160302() 41 …len = snprintf_s(buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "bputs: %p: %s", (void*)msg.ip(), msg.str()… in __anona90f99160302() 139 if (kernelSymbols.count(msg.ip()) > 0) { in __anona90f99160d02() 140 functionStr = kernelSymbols[msg.ip()]; in __anona90f99160d02() 147 …buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "function: %p <-- %p", (void*)msg.ip(), (void*)msg.parent_i… in __anona90f99160d02()
|
/developtools/smartperf_host/ide/src/trace/database/logic-worker/ |
D | ProcedureLogicWorkerFileSystem.ts | 511 …st.symbol = `${s.symbolsId === null ? s.ip : this.dataCache.dataDict?.get(s.symbolsId) ?? ''} (${s… 534 stack.symbolsId === null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? '', 574 …r.symbol = stack.symbolsId === null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? … 669 symbolName = lastCallChain.ip + ' (' + analysisSample.libName + ')'; 923 typeCallChain.ip = map[sample.type.toString()] || 'UNKNOWN'; 928 threadCallChain.ip = (sample.threadName || 'Thread') + `-${sample.tid}`; 958 child.ip === callChainDataList[index]?.ip || 985 currentNode.symbol = currentNode.ip; 991 …currentNode.symbol = dataCache.dataDict?.get(currentNode.symbolsId) || currentNode.ip || 'unknown'; 995 currentNode.addr = currentNode.ip; [all …]
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | hook_client.cpp | 307 bool FilterStandardSoIp(uint64_t ip) in FilterStandardSoIp() argument 310 if (ip >= soBegin && ip < soEnd_) { in FilterStandardSoIp() 318 static int inline __attribute__((always_inline)) FpUnwind(int maxDepth, uint64_t *ip, int stackSize) in FpUnwind() argument 343 ip[depth++] = tempIp; in FpUnwind() 347 ip[0] = tempIp; in FpUnwind() 418 fpStackDepth = FpUnwind(g_ClientConfig.maxStackDepth, rawdata.ip, stackSize); in hook_malloc() 515 fpStackDepth = FpUnwind(g_ClientConfig.maxStackDepth, rawdata.ip, stackSize); in hook_calloc() 617 fpStackDepth = FpUnwind(g_ClientConfig.maxStackDepth, rawdata.ip, stackSize); in hook_realloc() 620 (void)memcpy_s(freeData.ip, sizeof(freeData.ip) / sizeof(uint64_t), in hook_realloc() 621 rawdata.ip, sizeof(rawdata.ip) / sizeof(uint64_t)); in hook_realloc() [all …]
|
/developtools/hdc/src/host/ |
D | translate.cpp | 206 string ip = outCmd->parameters.substr(0, pos); in TargetConnect() local 213 if (ip == "localhost") { in TargetConnect() 214 ip = "127.0.0.1"; in TargetConnect() 215 outCmd->parameters.replace(0, pos, ip); in TargetConnect() 219 if ((port <= 0 || port > MAX_IP_PORT) || uv_ip4_addr(ip.c_str(), port, &addr) < 0) { in TargetConnect()
|
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/default/ |
D | ftrace.proto | 23 uint64 ip = 1; field 64 uint64 ip = 1; field 95 uint64 ip = 1; field
|