/developtools/profiler/device/plugins/native_daemon/src/ |
D | virtual_runtime.cpp | 276 const Symbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, in GetKernelSymbol() argument 279 Symbol vaddrSymbol(ip, thread.name_); in GetKernelSymbol() 281 if (ip > map.begin_ && ip < map.end_) { in GetKernelSymbol() 283 ip, map.begin_, map.end_, map.name_.c_str()); in GetKernelSymbol() 289 symbolsFile->GetVaddrInSymbols(ip, map.begin_, map.pageoffset_); in GetKernelSymbol() 292 vaddrSymbol.fileVaddr_, ip, map.name_.c_str()); in GetKernelSymbol() 297 foundSymbols.taskVaddr_ = ip; in GetKernelSymbol() 300 ip, vaddrSymbol.fileVaddr_, map.name_.c_str()); in GetKernelSymbol() 307 HLOGW("addr 0x%" PRIx64 " in map but NOT found the symbol file %s", ip, in GetKernelSymbol() 310 HLOGM("addr 0x%" PRIx64 " not in map 0x%" PRIx64 " - 0x%" PRIx64 " from %s", ip, in GetKernelSymbol() [all …]
|
D | call_stack.cpp | 156 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument 205 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable() 224 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument 229 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo() 230 const MemMapItem *mmap = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo() 234 return FindUnwindTable(symbolsFile, *mmap, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo() 241 HLOGE("ip 0x%016" UNW_WORD_PFLAG " not found in thread %d:%s", ip, in FindProcInfo() 373 unw_word_t ip = 0; in UnwindStep() local 375 unw_get_reg(&c, UNW_REG_IP, &ip); in UnwindStep() 378 if (ip == 0) { in UnwindStep() [all …]
|
/developtools/hiperf/src/ |
D | virtual_runtime.cpp | 311 void VirtualRuntime::SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip, in SymbolicCallFrame() argument 314 auto symbol = GetSymbol(ip, recordSample.data_.pid, recordSample.data_.tid, context); in SymbolicCallFrame() 315 MakeCallFrame(symbol, recordSample.callFrames_.emplace_back(ip, 0)); in SymbolicCallFrame() 330 SymbolicCallFrame(recordSample, recordSample.data_.ip, PERF_CONTEXT_MAX); in SymbolicRecord() 333 uint64_t ip = recordSample.data_.ips[i]; in SymbolicRecord() local 334 if (ip >= PERF_CONTEXT_MAX) { in SymbolicRecord() 335 std::string contextName = UpdatePerfContext(ip, context); in SymbolicRecord() 338 } else if (ip < BAD_IP_ADDRESS) { in SymbolicRecord() 342 SymbolicCallFrame(recordSample, ip, context); in SymbolicRecord() 481 const Symbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, in GetKernelSymbol() argument [all …]
|
D | callstack.cpp | 160 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument 214 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable() 233 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument 238 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo() 239 const MemMapItem *mmap = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo() 243 return FindUnwindTable(symbolsFile, *mmap, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo() 250 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 …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/hiperf_parser/hiperf/ |
D | virtual_runtime.cpp | 306 void VirtualRuntime::SymbolicCallFrame(PerfRecordSample &recordSample, uint64_t ip, in SymbolicCallFrame() argument 309 auto symbol = GetSymbol(ip, recordSample.data_.pid, recordSample.data_.tid, context); in SymbolicCallFrame() 310 MakeCallFrame(symbol, recordSample.callFrames_.emplace_back(ip, 0)); in SymbolicCallFrame() 325 SymbolicCallFrame(recordSample, recordSample.data_.ip, PERF_CONTEXT_MAX); in SymbolicRecord() 328 uint64_t ip = recordSample.data_.ips[i]; in SymbolicRecord() local 329 if (ip >= PERF_CONTEXT_MAX) { in SymbolicRecord() 330 std::string contextName = UpdatePerfContext(ip, context); in SymbolicRecord() 333 } else if (ip < BAD_IP_ADDRESS) { in SymbolicRecord() 337 SymbolicCallFrame(recordSample, ip, context); in SymbolicRecord() 476 const Symbol VirtualRuntime::GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, in GetKernelSymbol() argument [all …]
|
D | callstack.cpp | 159 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip, in FindUnwindTable() argument 213 tdep_search_unwind_table(as, ip, &di, pi, need_unwind_info, arg)); in FindUnwindTable() 232 int CallStack::FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, in FindProcInfo() argument 237 HLOGM("need_unwind_info ret %d ip %" UNW_WORD_PFLAG "", need_unwind_info, ip); in FindProcInfo() 238 const MemMapItem *mmap = unwindInfoPtr->thread.FindMapByAddr(ip); in FindProcInfo() 242 return FindUnwindTable(symbolsFile, *mmap, unwindInfoPtr, as, ip, pi, need_unwind_info, in FindProcInfo() 249 HLOGE("ip 0x%016" UNW_WORD_PFLAG " not found in thread %d:%s", ip, in FindProcInfo() 381 unw_word_t ip, sp; in UnwindStep() local 382 unw_get_reg(&c, UNW_REG_IP, &ip); in UnwindStep() 385 if (ip == 0) { in UnwindStep() [all …]
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/ebpf_parser/ |
D | ebpf_base.cpp | 57 SymbolAndFilePathIndex EbpfBase::GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip) in GetSymbolAndFilePathIndex() argument 59 auto value = pidAndIpToSymbolAndFilePathIndex_.Find(pid, ip); in GetSymbolAndFilePathIndex() 63 return GetSymbolNameIndexFromElfSym(pid, ip); in GetSymbolAndFilePathIndex() 107 SymbolAndFilePathIndex EbpfBase::GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip) in GetSymbolNameIndexFromElfSym() argument 115 pidAndIpToSymbolAndFilePathIndex_.Insert(pid, ip, symbolAndFilePathIndex); in GetSymbolNameIndexFromElfSym() 121 auto end = startToMapsAddr->upper_bound(ip); in GetSymbolNameIndexFromElfSym() 125 if (ip <= end->second->end) { in GetSymbolNameIndexFromElfSym() 134 pidAndIpToSymbolAndFilePathIndex_.Insert(pid, ip, symbolAndFilePathIndex); in GetSymbolNameIndexFromElfSym() 140 pidAndIpToSymbolAndFilePathIndex_.Insert(pid, ip, symbolAndFilePathIndex); in GetSymbolNameIndexFromElfSym() 143 … uint64_t symVaddr = ip - vmStart + vmOffset + itor->second->textVaddr - itor->second->textOffset; in GetSymbolNameIndexFromElfSym() [all …]
|
D | ebpf_base.h | 39 SymbolAndFilePathIndex GetSymbolAndFilePathIndex(uint32_t pid, uint64_t ip); 40 SymbolAndFilePathIndex GetSymbolNameIndexFromElfSym(uint32_t pid, uint64_t ip);
|
/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/profiler/device/plugins/native_daemon/include/ |
D | perf_event_record.h | 48 CallFrame(uint64_t ip, uint64_t sp = 0) : ip_(ip), sp_(sp) {} in ip_() 51 CallFrame(uint64_t ip, uint64_t vaddrInFile, const char *name, const char *filePath) in CallFrame() 52 : ip_(ip), vaddrInFile_(vaddrInFile), symbolName_(name), filePath_(filePath) in CallFrame()
|
D | virtual_runtime.h | 62 const Symbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid, 107 bool GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, Symbol &symbol, 109 void UpdateSymbolCache(uint64_t ip, Symbol &symbol, HashList<uint64_t, Symbol> &cache); 119 const Symbol GetKernelSymbol(uint64_t ip, const std::vector<MemMapItem> &memMaps, 121 const Symbol GetUserSymbol(uint64_t ip, const VirtualThread &thread);
|
D | call_stack.h | 71 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const; 80 static int FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, 94 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_t ip,
|
/developtools/profiler/host/smartperf/ide/src/trace/database/logic-worker/ |
D | ProcedureLogicWorkerFileSystem.ts | 261 … st.symbol = `${s.symbolsId == null ? s.ip : this.data_dict.get(s.symbolsId) ?? ''} (${st.path})`; 279 …event.backtrace = [stack.symbolsId == null ? stack.ip : this.data_dict.get(stack.symbolsId) ?? "",… 317 … r.symbol = stack.symbolsId == null ? stack.ip : this.data_dict.get(stack.symbolsId) ?? "" 470 typeCallchain.ip = map[sample.type.toString()]||""; 475 threadCallChain.ip = (sample.threadName||"Thread")+`-${sample.tid}` 487 …if (child.ip == callChainDataList[index]?.ip||(child.symbolsId == callChainDataList[index]?.symbol… 507 currentNode.symbol = currentNode.ip; 512 … currentNode.symbol = this.data_dict.get(currentNode.symbolsId) || currentNode.ip || 'unkown' 599 ip: string = "" property in FileCallChain 613 ip: string = "" property in FileMerageBean [all …]
|
/developtools/hiperf/include/ |
D | virtual_runtime.h | 90 const Symbol GetSymbol(uint64_t ip, pid_t pid, pid_t tid, 137 bool GetSymbolCache(uint64_t ip, pid_t pid, pid_t tid, 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,
|
D | callstack.h | 74 bool GetIpSP(uint64_t &ip, uint64_t &sp, const u64 *regs, size_t regNum) const; 83 static int FindProcInfo(unw_addr_space_t as, unw_word_t ip, unw_proc_info_t *pi, 97 UnwindInfo *unwindInfoPtr, unw_addr_space_t as, unw_word_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/ftrace_plugin/tools/device_kernel_version/default/event_formatters/ |
D | ftrace_ftrace_event_formatter.cpp | 34 if (kernelSymbols.count(msg.ip()) > 0) { in __anon5a13dfeb0302() 35 functionStr = kernelSymbols[msg.ip()]; in __anon5a13dfeb0302() 41 …len = snprintf_s(buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "bputs: %p: %s", (void*)msg.ip(), msg.str()… in __anon5a13dfeb0302() 139 if (kernelSymbols.count(msg.ip()) > 0) { in __anon5a13dfeb0d02() 140 functionStr = kernelSymbols[msg.ip()]; in __anon5a13dfeb0d02() 147 …buffer, BUFFER_SIZE, BUFFER_SIZE - 1, "function: %p <-- %p", (void*)msg.ip(), (void*)msg.parent_i… in __anon5a13dfeb0d02()
|
/developtools/profiler/host/smartperf/ide/ |
D | README_zh.md | 88 在浏览器上打开 https://[部署机器ip地址]:9001/application/ 92 可以在window cmd 里执行telnet [部署机器ip地址] 9001
|
/developtools/profiler/host/smartperf/doc/ |
D | compile_smartperf.md | 88 在浏览器上打开 https://[部署机器ip地址]:9001/application/ 92 可以在window cmd 里执行telnet [部署机器ip地址] 9001
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | hook_client.cpp | 185 static void inline __attribute__((always_inline)) FpUnwind(int maxDepth, uint64_t *ip, unsigned lon… in FpUnwind() argument 190 ip[i] = *(reinterpret_cast<unsigned long *>(fp + 1)); in FpUnwind() 230 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_malloc() 324 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_calloc() 408 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_realloc() 411 (void)memcpy_s(freeData.ip, sizeof(freeData.ip) / sizeof(uint64_t), in hook_realloc() 412 rawdata.ip, sizeof(rawdata.ip) / sizeof(uint64_t)); in hook_realloc() 513 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_free() 585 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_mmap() 656 FpUnwind(g_ClientConfig.maxStackDepth_, rawdata.ip, stackSize); in hook_munmap()
|
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/ |
D | register_test.cpp | 169 size_t ip = RegisterGetIP(buildArchType); variable 170 registers[ip] = 0x1234; 172 EXPECT_EQ(RegisterGetValue(value, registers, ip, sizeof(registers)),
|
/developtools/hiperf/test/unittest/common/native/ |
D | register_test.cpp | 169 size_t ip = RegisterGetIP(buildArchType); variable 170 registers[ip] = 0x1234; 172 EXPECT_EQ(RegisterGetValue(value, registers, ip, sizeof(registers)),
|
/developtools/hdc/src/host/ |
D | host_tcp.cpp | 125 char ip[BUF_SIZE_TINY] = ""; in ConnectDaemon() local 127 if (Base::ConnectKey2IPPort(connectKey.c_str(), ip, &port) < 0) { in ConnectDaemon() 139 uv_ip4_addr(ip, port, &dest); in ConnectDaemon()
|
/developtools/profiler/host/smartperf/trace_streamer/src/protos/types/plugins/ftrace_data/ |
D | ftrace.proto | 23 uint64 ip = 1; field 64 uint64 ip = 1; field 95 uint64 ip = 1; field
|
/developtools/profiler/protos/types/plugins/ftrace_data/default/ |
D | ftrace.proto | 23 uint64 ip = 1; field 64 uint64 ip = 1; field 95 uint64 ip = 1; field
|