Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 95) sorted by relevance

1234

/developtools/smartperf_host/trace_streamer/src/parser/ebpf_parser/
Debpf_base.cpp62 SymbolAndFilePathIndex EbpfBase::GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip) in GetSymbolAndFilePathIndex() argument
64 auto value = pidAndIpToSymbolAndFilePathIndex_.Find(pid, ip); in GetSymbolAndFilePathIndex()
68 return GetSymbolNameIndexFromElfSym(pid, ip); in GetSymbolAndFilePathIndex()
106 void EbpfBase::UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip) in UpdateFilePathIndexToPidAndIpMap() argument
110 itor->second->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap()
113 pidAndIpSet->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap()
118 SymbolAndFilePathIndex EbpfBase::GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip) in GetSymbolNameIndexFromElfSym() argument
122 if (ip < reader_->maxKernelAddr_ && ip >= reader_->minKernelAddr_) { in GetSymbolNameIndexFromElfSym()
123 symbolAndFilePathIndex = reader_->GetSymbolNameIndexFromElfSym(ip); in GetSymbolNameIndexFromElfSym()
124 pidAndIpToSymbolAndFilePathIndex_.Insert(pid, ip, symbolAndFilePathIndex); in GetSymbolNameIndexFromElfSym()
[all …]
Debpf_base.h42 SymbolAndFilePathIndex GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip);
43 SymbolAndFilePathIndex GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip);
44 void UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip);
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/
Debpf_base.cpp62 SymbolAndFilePathIndex EbpfBase::GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip) in GetSymbolAndFilePathIndex() argument
64 auto value = pidAndIpToSymbolAndFilePathIndex_.Find(pid, ip); in GetSymbolAndFilePathIndex()
68 return GetSymbolNameIndexFromElfSym(pid, ip); in GetSymbolAndFilePathIndex()
102 void EbpfBase::UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip) in UpdateFilePathIndexToPidAndIpMap() argument
106 itor->second->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap()
109 pidAndIpSet->insert(std::make_tuple(pid, ip)); in UpdateFilePathIndexToPidAndIpMap()
114 SymbolAndFilePathIndex EbpfBase::GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip) in GetSymbolNameIndexFromElfSym() argument
118 if (ip < reader_->maxKernelAddr_ && ip >= reader_->minKernelAddr_) { in GetSymbolNameIndexFromElfSym()
119 symbolAndFilePathIndex = reader_->GetSymbolNameIndexFromElfSym(ip); in GetSymbolNameIndexFromElfSym()
120 pidAndIpToSymbolAndFilePathIndex_.Insert(pid, ip, symbolAndFilePathIndex); in GetSymbolNameIndexFromElfSym()
[all …]
Debpf_base.h42 SymbolAndFilePathIndex GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip);
43 SymbolAndFilePathIndex GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip);
44 void UpdateFilePathIndexToPidAndIpMap(DataIndex filePathIndex, uint32_t pid, uint64_t ip);
/developtools/profiler/host/smartperf/trace_streamer/src/filter/
Doffline_symbolization_filter.cpp43 uint64_t ip, in GetSymbolStartMaybeUpdateFrameInfo() argument
49 frameInfo->offset_ = elfSym->st_value != 0 ? elfSym->st_value : ip; in GetSymbolStartMaybeUpdateFrameInfo()
56 uint64_t ip, in FillFrameInfo() argument
60 frameInfo->ip_ = ip; in FillFrameInfo()
61 auto endItor = startAddrToMapsInfoMap_.upper_bound(ip); in FillFrameInfo()
66 if (ip < endItor->second->end()) { in FillFrameInfo()
74 TS_LOGD("find matching Maps Info failed, ip = %lu", ip); in FillFrameInfo()
80 std::shared_ptr<FrameInfo> OfflineSymbolizationFilter::OfflineSymbolization(uint64_t ip) in OfflineSymbolization() argument
82 if (ipToFrameInfo_.count(ip)) { in OfflineSymbolization()
83 return ipToFrameInfo_.at(ip); in OfflineSymbolization()
[all …]
Doffline_symbolization_filter.h58 std::shared_ptr<FrameInfo> OfflineSymbolization(uint64_t ip);
79 uint64_t ip,
81 …bool FillFrameInfo(const std::shared_ptr<FrameInfo>& frameInfo, uint64_t ip, uint64_t& vmStart, ui…
/developtools/smartperf_host/trace_streamer/src/filter/
Doffline_symbolization_filter.cpp43 uint64_t ip, in GetSymbolStartMaybeUpdateFrameInfo() argument
49 frameInfo->offset_ = elfSym->st_value != 0 ? elfSym->st_value : ip; in GetSymbolStartMaybeUpdateFrameInfo()
56 uint64_t ip, in FillFrameInfo() argument
60 frameInfo->ip_ = ip; in FillFrameInfo()
61 auto endItor = startAddrToMapsInfoMap_.upper_bound(ip); in FillFrameInfo()
66 if (ip < endItor->second->end()) { in FillFrameInfo()
74 TS_LOGD("find matching Maps Info failed, ip = %lu", ip); in FillFrameInfo()
80 std::shared_ptr<FrameInfo> OfflineSymbolizationFilter::OfflineSymbolization(uint64_t ip) in OfflineSymbolization() argument
82 if (ipToFrameInfo_.count(ip)) { in OfflineSymbolization()
83 return ipToFrameInfo_.at(ip); in OfflineSymbolization()
[all …]
Doffline_symbolization_filter.h58 std::shared_ptr<FrameInfo> OfflineSymbolization(uint64_t ip);
79 uint64_t ip,
81 …bool FillFrameInfo(const std::shared_ptr<FrameInfo>& frameInfo, uint64_t ip, uint64_t& vmStart, ui…
/developtools/hiperf/src/
Dvirtual_runtime.cpp316 void VirtualRuntime::SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip, in SymbolicCallFrame() argument
319 auto symbol = GetSymbol(ip, recordSample.data_.pid, recordSample.data_.tid, context); in SymbolicCallFrame()
320 MakeCallFrame(symbol, recordSample.callFrames_.emplace_back(ip, 0)); in SymbolicCallFrame()
335 SymbolicCallFrame(recordSample, recordSample.data_.ip, PERF_CONTEXT_MAX); in SymbolicRecord()
338 uint64_t ip = recordSample.data_.ips[i]; in SymbolicRecord() local
339 if (ip >= PERF_CONTEXT_MAX) { in SymbolicRecord()
340 std::string contextName = UpdatePerfContext(ip, context); in SymbolicRecord()
343 } else if (ip < BAD_IP_ADDRESS) { in SymbolicRecord()
347 SymbolicCallFrame(recordSample, ip, context); in SymbolicRecord()
498 const Symbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, in GetKernelSymbol() argument
[all …]
Dcallstack.cpp161 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument
215 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable()
234 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument
239 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo()
240 const MemMapItem *mmap = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo()
244 return FindUnwindTable(symbolsFile, *mmap, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo()
251 HLOGE("ip 0x%016" UNW_WORD_PFLAG " not found in thread %d:%s", ip, in FindProcInfo()
380 unw_word_t ip; in UnwindStep() local
382 unw_get_reg(&c, UNW_REG_IP, &ip); in UnwindStep()
385 if (ip == 0) { in UnwindStep()
[all …]
/developtools/profiler/device/plugins/native_daemon/include/
Dvirtual_runtime.h127 uint64_t& ip = first; member
134 ip = sym.ip;
138 …SymbolCacheKey(const std::pair<uint64_t, uint32_t>& arg) : pair(arg), ip(first), filePathId(second… in SymbolCacheKey()
139 …SymbolCacheKey(uint64_t ip, uint32_t filePathId) : pair(ip, filePathId), ip(first), filePathId(sec… in SymbolCacheKey()
149 seed ^= hasher(key.ip) + 0x9e3779b9 + (seed << 6) + (seed >> 2); in operator()
165 bool GetSymbolCache(uint64_t ip, Symbol &symbol, const VirtualThread &thread);
166 void UpdateSymbolCache(uint64_t ip, Symbol &symbol, HashList<uint64_t, Symbol> &cache);
176 const Symbol GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps,
178 const Symbol GetUserSymbol(uint64_t ip, const VirtualThread &thread);
Dperf_event_record.h58 CallFrame(uint64_t ip, uint64_t sp = 0) : ip_(ip), sp_(sp) {} in ip_()
61 CallFrame(uint64_t ip, uint64_t vaddrInFile, const char *name, const char *filePath) in CallFrame()
62 : ip_(ip), vaddrInFile_(vaddrInFile), symbolName_(name), filePath_(filePath) in CallFrame()
Dcall_stack.h57 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const;
66 static int FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
80 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip,
/developtools/profiler/device/plugins/native_daemon/src/
Dvirtual_runtime.cpp295 const Symbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, in GetKernelSymbol() argument
298 Symbol vaddrSymbol(ip, thread.name_); in GetKernelSymbol()
300 if (ip > map.begin_ && ip < map.end_) { in GetKernelSymbol()
302 ip, map.begin_, map.end_, map.name_.c_str()); in GetKernelSymbol()
309 symbolsFile->GetVaddrInSymbols(ip, map.begin_, map.pageoffset_); in GetKernelSymbol()
312 vaddrSymbol.fileVaddr_, ip, map.name_.c_str()); in GetKernelSymbol()
317 foundSymbols.taskVaddr_ = ip; in GetKernelSymbol()
320 ip, vaddrSymbol.fileVaddr_, map.name_.c_str()); in GetKernelSymbol()
326 HLOGW("addr 0x%" PRIx64 " in map but NOT found the symbol file %s", ip, in GetKernelSymbol()
329 HLOGM("addr 0x%" PRIx64 " not in map 0x%" PRIx64 " - 0x%" PRIx64 " from %s", ip, in GetKernelSymbol()
[all …]
Dcall_stack.cpp150 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument
201 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable()
220 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument
225 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo()
226 const MemMapItem *mmap = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo()
230 return FindUnwindTable(symbolsFile, *mmap, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo()
237 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 …]
/developtools/integration_verification/DeployDevice/src/aw/poweronoff/
Dserial_power_on_off.py7 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/profiler/device/plugins/hiebpf_plugin/tools/src/
Debpf_converter.cpp188 for (const auto &ip : efs.userIPs) { in EventFsParsing() local
189 if (ip == 0) { in EventFsParsing()
192 outData_ << " 0x" << std::hex << ip << std::dec << ":"; in EventFsParsing()
193 auto itm = GetSymbolInfo(efs.pid, ip); in EventFsParsing()
194 outData_ << "\n vAddr_: 0x" << std::hex << vAddr_[ip] << std::dec << '\n'; in EventFsParsing()
317 for (const auto &ip : mem.userIPs) { in EventMemParsing() local
318 if (ip == 0) { in EventMemParsing()
321 outData_ << " 0x" << std::hex << ip << std::dec << ":"; in EventMemParsing()
322 auto itm = GetSymbolInfo(mem.pid, ip); in EventMemParsing()
323 outData_ << "\n vAddr_: 0x" << std::hex << vAddr_[ip] << std::dec << '\n'; in EventMemParsing()
[all …]
/developtools/hiperf/include/
Dvirtual_runtime.h90 const Symbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid,
137 bool GetSymbolCache(uint64_t ip, Symbol &symbol,
157 const Symbol GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps,
159 const Symbol GetUserSymbol(uint64_t ip, const VirtualThread &thread);
163 void SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip,
Dcallstack.h77 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const;
86 static int FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi,
100 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip,
/developtools/profiler/host/smartperf/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerFileSystem.ts362 …st.symbol = `${s.symbolsId == null ? s.ip : this.dataCache.dataDict?.get(s.symbolsId) ?? ''} (${st…
385 stack.symbolsId == null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? '',
425 …r.symbol = stack.symbolsId == null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? '…
512 symbolName = lastCallChain.ip + ' (' + analysisSample.libName + ')';
721 typeCallChain.ip = map[sample.type.toString()] || 'UNKNOWN';
726 threadCallChain.ip = (sample.threadName || 'Thread') + `-${sample.tid}`;
746 child.ip == callChainDataList[index]?.ip ||
771 currentNode.symbol = currentNode.ip;
777 …currentNode.symbol = dataCache.dataDict?.get(currentNode.symbolsId) || currentNode.ip || 'unknown';
781 currentNode.addr = currentNode.ip;
[all …]
/developtools/smartperf_host/ide/src/trace/database/logic-worker/
DProcedureLogicWorkerFileSystem.ts362 …st.symbol = `${s.symbolsId == null ? s.ip : this.dataCache.dataDict?.get(s.symbolsId) ?? ''} (${st…
385 stack.symbolsId == null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? '',
425 …r.symbol = stack.symbolsId == null ? stack.ip : this.dataCache.dataDict?.get(stack.symbolsId) ?? '…
512 symbolName = lastCallChain.ip + ' (' + analysisSample.libName + ')';
721 typeCallChain.ip = map[sample.type.toString()] || 'UNKNOWN';
726 threadCallChain.ip = (sample.threadName || 'Thread') + `-${sample.tid}`;
746 child.ip == callChainDataList[index]?.ip ||
771 currentNode.symbol = currentNode.ip;
777 …currentNode.symbol = dataCache.dataDict?.get(currentNode.symbolsId) || currentNode.ip || 'unknown';
781 currentNode.addr = currentNode.ip;
[all …]
/developtools/integration_verification/DeployDevice/src/aw/Common/
DCommon.py83 ip = ""
87 ip = s.getsockname()[0]
92 return ip
/developtools/profiler/device/plugins/ftrace_plugin/tools/device_kernel_version/default/event_formatters/
Dftrace_ftrace_event_formatter.cpp34 if (kernelSymbols.count(msg.ip()) > 0) { in __anonfbdbda490302()
35 functionStr = kernelSymbols[msg.ip()]; in __anonfbdbda490302()
41 …len = snprintf_s(buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "bputs: %p: %s", (void*)msg.ip(), msg.str()… in __anonfbdbda490302()
139 if (kernelSymbols.count(msg.ip()) > 0) { in __anonfbdbda490d02()
140 functionStr = kernelSymbols[msg.ip()]; in __anonfbdbda490d02()
147 …buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "function: %p <-- %p", (void*)msg.ip(), (void*)msg.parent_i… in __anonfbdbda490d02()
/developtools/profiler/host/smartperf/doc/
Dcompile_smartperf.md88 在浏览器上打开 https://[部署机器ip地址]:9001/application/
92 可以在window cmd 里执行telnet [部署机器ip地址] 9001
/developtools/hdc/src/host/
Dtranslate.cpp206 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()

1234