Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 126) sorted by relevance

123456

/developtools/integration_verification/tools/fotff/utils/
Dssh.go31 func newSSHClient(addr string, user string, passwd string) (*ssh.Client, error) {
38 return ssh.Dial("tcp", addr, config)
41 func RunCmdViaSSHContext(ctx context.Context, addr string, user string, passwd string, cmd string) …
44 if err := RunCmdViaSSHContextNoRetry(ctx, addr, user, passwd, cmd); err != nil {
48 logrus.Errorf("exec cmd via SSH at %s failed: %v, try again...", addr, err)
49 return RunCmdViaSSHContextNoRetry(ctx, addr, user, passwd, cmd)
54 func RunCmdViaSSHContextNoRetry(ctx context.Context, addr string, user string, passwd string, cmd s…
56 client, err := newSSHClient(addr, user, passwd)
58 logrus.Errorf("new SSH client to %s err: %v", addr, err)
81 logrus.Infof("run at %s: %s", addr, cmd)
[all …]
/developtools/profiler/device/plugins/native_daemon/test/unittest/common/native/
Dsymbols_file_test.cpp511 for (uint64_t addr = SymbolAddr::INIT; addr < SymbolAddr::PLT; ++addr) { variable
512 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
513 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "_init");
517 for (uint64_t addr = SymbolAddr::START; addr < SymbolAddr::THUNK_AX; ++addr) { variable
519 for (uint64_t addr = SymbolAddr::START; addr < SymbolAddr::START; ++addr) {
521 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
522 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "_start");
525 for (uint64_t addr = SymbolAddr::DEREG; addr < SymbolAddr::REG; ++addr) { variable
526 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
527 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "deregister_tm_clones");
[all …]
/developtools/hiperf/test/unittest/common/native/
Dsymbols_file_test.cpp493 for (uint64_t addr = SymbolAddr::START; addr < SymbolAddr::THUNK_AX; ++addr) { variable
495 for (uint64_t addr = SymbolAddr::START; addr < SymbolAddr::START; ++addr) {
497 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
498 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "_start");
501 for (uint64_t addr = SymbolAddr::DEREG; addr < SymbolAddr::REG; ++addr) { variable
502 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
503 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "deregister_tm_clones");
506 for (uint64_t addr = SymbolAddr::REG; addr < SymbolAddr::AUX; ++addr) { variable
507 if (elfSymbols->GetSymbolWithVaddr(addr).IsValid()) {
508 EXPECT_EQ(elfSymbols->GetSymbolWithVaddr(addr).demangle_, "register_tm_clones");
[all …]
/developtools/profiler/device/services/ipc/src/
Dunix_socket_client.cpp41 struct sockaddr_un addr; in Connect() local
42 if (memset_s(&addr, sizeof(struct sockaddr_un), 0, sizeof(struct sockaddr_un)) != EOK) { in Connect()
45 addr.sun_family = AF_UNIX; in Connect()
46 …if (strncpy_s(addr.sun_path, sizeof(addr.sun_path), addrname.c_str(), sizeof(addr.sun_path) - 1) !… in Connect()
50 …CHECK_TRUE(connect(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) != -1, close(sock) !… in Connect()
Dunix_socket_server.cpp119 struct sockaddr_un addr; in StartServer() local
123 if (memset_s(&addr, sizeof(struct sockaddr_un), 0, sizeof(struct sockaddr_un)) != EOK) { in StartServer()
126 addr.sun_family = AF_UNIX; in StartServer()
127 …if (strncpy_s(addr.sun_path, sizeof(addr.sun_path), addrname.c_str(), sizeof(addr.sun_path) - 1) !… in StartServer()
131 … CHECK_TRUE(bind(sock, (struct sockaddr*)&addr, sizeof(struct sockaddr_un)) == 0, close(sock) != 0, in StartServer()
/developtools/hdc/hdc_rust/src/common/
Duds.rs74 addr: sockaddr_un, field
80 let mut addr: sockaddr_un = unsafe { mem::zeroed() }; in default() localVariable
81 addr.sun_family = AF_UNIX as sa_family_t; in default()
84 addr, in default()
91 let mut addr = UdsAddr::default(); in parse_abstract() localVariable
92 addr.addr.sun_path[1..1 + name.len()].copy_from_slice(as_char(name)); in parse_abstract()
93 addr.len = name_index() + 1 + name.len() as socklen_t; in parse_abstract()
94 Ok(addr) in parse_abstract()
99 unsafe { &*(&self.addr as *const sockaddr_un as *const sockaddr) }, in as_raw_general()
106 &mut *(&mut self.addr as *mut sockaddr_un as *mut sockaddr), in as_raw_mut_general()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/rawtrace_parser/
Dprintk_formats_processor.cpp33 std::string PrintkFormatsProcessor::GetSymbol(uint64_t addr) in GetSymbol() argument
35 auto iter = printkFormatsDict_.find(addr); in GetSymbol()
39 auto addrStr = "0x" + base::number(addr, base::INTEGER_RADIX_TYPE_HEX); in GetSymbol()
48 uint64_t addr = 0; in HandlePrintkSyms() local
56 addr = base::StrToInt<uint64_t>(addrInfo, base::INTEGER_RADIX_TYPE_HEX).value(); in HandlePrintkSyms()
64 printkFormatsDict_[addr] = curSymbol; in HandlePrintkSyms()
Dkernel_symbols_processor.cpp38 if (symbol.addr == 0 || symbol.name.empty()) { in IsValidKernelSymbol()
63 symbol.addr = base::StrToInt<uint64_t>(addrStr, base::INTEGER_RADIX_TYPE_HEX).value(); in HandleKallSyms()
65 if (symbol.addr == 0) { in HandleKallSyms()
72 …traceDataCache_->GetSymbolsData()->UpdateSymbol(symbol.addr, traceDataCache_->GetDataIndex(symbol.… in HandleKallSyms()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dkernel_symbols_parser.cpp48 if (a.addr == 0 || a.name.empty()) { in IsValidTextSymbol()
62 if (a.addr != b.addr) { in CompareSymbolInfo()
63 return a.addr < b.addr; in CompareSymbolInfo()
87 info.addr = strtoull(addrStr.c_str(), nullptr, ADDR_VALUE_BASE); in Parse()
89 if (info.addr == 0) { in Parse()
Dprintk_formats_parser.cpp44 std::string PrintkFormatsParser::GetSymbol(uint64_t addr) in GetSymbol() argument
46 auto it = printkFormats_.find(addr); in GetSymbol()
57 uint64_t addr = 0; in Parse() local
64 addr = static_cast<uint64_t>(strtoull(addrStr.c_str(), nullptr, HEX_BASE)); in Parse()
73 printkFormats_[addr] = symbol; in Parse()
/developtools/hdc/src/daemon/
Ddaemon_tcp.cpp110 struct sockaddr_in addr; in SetUDPListen() local
115 uv_ip4_addr("0.0.0.0", DEFAULT_PORT, &addr); in SetUDPListen()
116 uv_udp_bind(&servUDP, (const struct sockaddr *)&addr, UV_UDP_REUSEADDR); in SetUDPListen()
126 struct sockaddr_in addr = {}; in SetTCPListen() local
131 uv_ip4_addr("0.0.0.0", tcpListenPort, &addr); // tcpListenPort == 0 in SetTCPListen()
132 uv_tcp_bind(&servTCP, (const struct sockaddr *)&addr, 0); in SetTCPListen()
137 Base::ZeroStruct(addr); in SetTCPListen()
138 namelen = sizeof(addr); in SetTCPListen()
139 if (uv_tcp_getsockname(&servTCP, (sockaddr *)&addr, &namelen)) { in SetTCPListen()
142 tcpListenPort = ntohs(addr.sin_port); in SetTCPListen()
/developtools/profiler/hiebpf/src/
Dipc_unix_socket.cpp42 struct sockaddr_un addr = {0}; in Start() local
43 addr.sun_family = AF_UNIX; in Start()
44 std::copy(pathname.c_str(), pathname.c_str() + pathname.size() + 1, addr.sun_path); in Start()
45 if (bind(serverFd_, (struct sockaddr*)&addr, sizeof(sockaddr_un)) != 0) { in Start()
145 struct sockaddr_un addr = {0}; in Connect() local
146 addr.sun_family = AF_UNIX; in Connect()
147 std::copy(pathname.c_str(), pathname.c_str() + pathname.size() + 1, addr.sun_path); in Connect()
148 if (connect(sockFd_, (struct sockaddr*)&addr, sizeof(sockaddr_un)) == -1) { in Connect()
/developtools/hiperf/src/
Dvirtual_thread.cpp54 int64_t VirtualThread::FindMapIndexByAddr(uint64_t addr) const in FindMapIndexByAddr()
56 HLOGM("try found vaddr 0x%" PRIx64 "in maps %zu", addr, memMaps_.size()); in FindMapIndexByAddr()
61 if (memMaps_[memMapsIndexs_[0]]->begin > addr) { in FindMapIndexByAddr()
64 …mMaps_[memMapsIndexs_[memMapsIndexs_.size() >= 1 ? memMapsIndexs_.size() - 1 : 0]]->end <= addr) { in FindMapIndexByAddr()
72 if (addr < memMaps_[memMapsIndexs_[mid]]->end) { in FindMapIndexByAddr()
77 if (addr >= memMaps_[memMapsIndexs_[mid]]->end) { in FindMapIndexByAddr()
83 … if (addr >= memMaps_[memMapsIndexs_[left]]->begin && addr < memMaps_[memMapsIndexs_[left]]->end) { in FindMapIndexByAddr()
92 std::shared_ptr<DfxMap> VirtualThread::FindMapByAddr(uint64_t addr) const in FindMapByAddr()
94 HLOGM("try found vaddr 0x%" PRIx64 "in maps %zu", addr, memMaps_.size()); in FindMapByAddr()
98 if (memMaps_[memMapsIndexs_[0]]->begin > addr) { in FindMapByAddr()
[all …]
Dcallstack.cpp281 int CallStack::AccessMem([[maybe_unused]] unw_addr_space_t as, unw_word_t addr, in AccessMem() argument
288 if (addr + sizeof(unw_word_t) < addr) { in AccessMem()
289 HLOGE("address overfolw at 0x%" UNW_WORD_PFLAG " increase 0x%zu", addr, sizeof(unw_word_t)); in AccessMem()
293 if (addr < unwindInfoPtr->callStack.stackPoint_ or in AccessMem()
294 addr + sizeof(unw_word_t) >= unwindInfoPtr->callStack.stackEnd_) { in AccessMem()
295 if (ReadVirtualThreadMemory(*unwindInfoPtr, addr, valuePoint)) { in AccessMem()
304 size_t stackOffset = addr - unwindInfoPtr->callStack.stackPoint_; in AccessMem()
307 reinterpret_cast<void *>(addr), *valuePoint, stackOffset); in AccessMem()
370 int CallStack::getProcName([[maybe_unused]] unw_addr_space_t as, [[maybe_unused]] unw_word_t addr, in getProcName() argument
782 int CallStack::AccessMem2(uintptr_t addr, uintptr_t *val, void *arg) in AccessMem2() argument
[all …]
/developtools/profiler/device/plugins/native_daemon/src/
Dcall_stack.cpp39 bool CallStack::ReadVirtualThreadMemory(UnwindInfo &unwindInfoPtr, ADDR_TYPE addr, in ReadVirtualThreadMemory() argument
44 auto memory = process->second.find(addr); in ReadVirtualThreadMemory()
51 if (unwindInfoPtr.thread.ReadRoMemory(addr, (uint8_t *)data, sizeof(ADDR_TYPE))) { in ReadVirtualThreadMemory()
52 unwindInfoPtr.callStack.porcessMemoryMap_[unwindInfoPtr.thread.pid_][addr] = *data; in ReadVirtualThreadMemory()
263 int CallStack::AccessMem([[maybe_unused]] unw_addr_space_t as, unw_word_t addr, in AccessMem() argument
269 HLOGDUMMY("try access addr 0x%" UNW_WORD_PFLAG " ", addr); in AccessMem()
274 UNWIND_CHECK_TRUE(addr + sizeof(unw_word_t) >= addr, -UNW_EUNSPEC, in AccessMem()
276 addr, sizeof(unw_word_t)); in AccessMem()
278 if (addr < unwindInfoPtr->callStack.stackPoint_ or in AccessMem()
279 addr + sizeof(unw_word_t) >= unwindInfoPtr->callStack.stackEnd_) { in AccessMem()
[all …]
Dvirtual_thread.cpp48 const std::pair<std::shared_ptr<MemMaps>, uint32_t> VirtualThread::FindMemMapsByAddr(uint64_t addr)… in FindMemMapsByAddr()
50 return virtualruntime_->FindMap(addr); in FindMemMapsByAddr()
53 const std::shared_ptr<DfxMap> VirtualThread::FindMapByAddr(uint64_t addr) const in FindMapByAddr()
55 HLOGM("try found vaddr 0x%" PRIx64 " in maps %zu ", addr, maps_->size()); in FindMapByAddr()
59 if (maps_->front()->begin > addr) { in FindMapByAddr()
62 if (maps_->back()->end <= addr) { in FindMapByAddr()
70 if (addr < (*maps_)[mid]->end) { in FindMapByAddr()
75 if (addr >= (*maps_)[mid]->end) { in FindMapByAddr()
81 if (addr >= (*maps_)[left]->begin and addr < (*maps_)[left]->end) { in FindMapByAddr()
Dstack_data_repeater.cpp75 auto temp = mallocMap_.find(rawData->stackConext->addr); in PutRawStack()
80 mallocMap_.erase(rawData->stackConext->addr); in PutRawStack()
84 …allocMap_.insert(std::pair<void*, std::shared_ptr<RawStack>>(rawData->stackConext->addr, rawData)); in PutRawStack()
118 mallocMap_.erase(result->stackConext->addr); in TakeRawData()
/developtools/hdc/src/host/
Dhost_tcp.cpp68 struct sockaddr_in6 addr; in BroadcastFindDaemon() local
72 uv_ip6_addr(broadcastLanIP, 0, &addr); in BroadcastFindDaemon()
74 uv_udp_bind(&client, (const struct sockaddr *)&addr, 0); in BroadcastFindDaemon()
76 uv_ip6_addr("FFFF:FFFF:FFFF", DEFAULT_PORT, &addr); in BroadcastFindDaemon()
78 uv_udp_send(&req, &client, &buf, 1, (const struct sockaddr *)&addr, nullptr); in BroadcastFindDaemon()
82 uv_ip6_addr(broadcastLanIP, DEFAULT_PORT, &addr); in BroadcastFindDaemon()
84 uv_udp_bind(&server, (const struct sockaddr *)&addr, UV_UDP_REUSEADDR); in BroadcastFindDaemon()
/developtools/integration_verification/tools/fotff/res/
Dres.go53 for _, addr := range addrList {
54 res.serverPool <- addr
96 addr := <-res.serverPool
98 Addr: addr,
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/
Dsunrpc.proto156 string addr = 4; field
165 string addr = 5; field
173 string addr = 4; field
181 string addr = 4; field
194 string addr = 4; field
202 string addr = 4; field
209 string addr = 3; field
217 string addr = 3; field
225 string addr = 3; field
233 string addr = 3; field
[all …]
/developtools/smartperf_host/trace_streamer/src/protos/types/plugins/ftrace_data/default/
Dsunrpc.proto156 string addr = 4; field
165 string addr = 5; field
173 string addr = 4; field
181 string addr = 4; field
194 string addr = 4; field
202 string addr = 4; field
209 string addr = 3; field
217 string addr = 3; field
225 string addr = 3; field
233 string addr = 3; field
[all …]
/developtools/profiler/protos/types/plugins/ftrace_data/default/
Dsunrpc.proto156 string addr = 4; field
165 string addr = 5; field
173 string addr = 4; field
181 string addr = 4; field
194 string addr = 4; field
202 string addr = 4; field
209 string addr = 3; field
217 string addr = 3; field
225 string addr = 3; field
233 string addr = 3; field
[all …]
/developtools/smartperf_host/ide/test/trace/bean/
DNativeHook.test.ts40 addr: 'addr',
56 addr: expect.any(String),
202 addr: 'addr',
218 addr: expect.any(String),
297 addr: 'addr',
312 addr: expect.any(String),
/developtools/profiler/device/plugins/native_hook/src/
Dhook_client.cpp105 inline void Addr2Bitpool(void* addr) in Addr2Bitpool() argument
107 …uint32_t val = AddrHash(static_cast<uint32_t>(reinterpret_cast<uint64_t>(addr))) % (MAX_BITPOOL_SI… in Addr2Bitpool()
111 inline bool IsAddrExist(void* addr) in IsAddrExist() argument
113 …uint32_t val = AddrHash(static_cast<uint32_t>(reinterpret_cast<uint64_t>(addr))) % (MAX_BITPOOL_SI… in IsAddrExist()
436 rawdata.addr = ret; in hook_malloc()
534 rawdata.addr = pRet; in hook_calloc()
643 rawdata.addr = pRet; in hook_realloc()
656 freeData.addr = ptr; in hook_realloc()
711 uint64_t addr = reinterpret_cast<uint64_t>(p); in hook_free() local
715 holder->SendStackWithPayload(&addr, sizeof(addr), nullptr, 0); in hook_free()
[all …]
/developtools/smartperf_host/trace_streamer/src/trace_data/trace_stdtype/
Dcommon_stdtype.cpp228 void SymbolsData::UpdateSymbol(uint64_t addr, DataIndex funcNameDictIndex) in UpdateSymbol() argument
230 if (symbolsMap_.find(addr) == symbolsMap_.end()) { in UpdateSymbol()
231 symbolsMap_.insert(std::make_pair(addr, funcNameDictIndex)); in UpdateSymbol()
232 addrs_.emplace_back(addr); in UpdateSymbol()
235 symbolsMap_.at(addr) = funcNameDictIndex; in UpdateSymbol()
238 const DataIndex &SymbolsData::GetFunc(uint64_t addr) const in GetFunc()
240 if (symbolsMap_.find(addr) == symbolsMap_.end()) { in GetFunc()
241 auto lastAddr = symbolsMap_.lower_bound(addr); in GetFunc()
247 return symbolsMap_.at(addr); in GetFunc()

123456