| /developtools/profiler/hiebpf/src/ |
| D | ringbuffer.cpp | 157 if (memcpy_s(dest, len, buffer_ + head_, bufSize_ - head_) != EOK) { in Get() 160 …emcpy_s(dest + bufSize_ - head_, len + head_ - bufSize_, buffer_, len + head_ - bufSize_) != EOK) { in Get() 164 if (memcpy_s(dest, len, buffer_ + head_, len) != EOK) { in Get() 194 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, len) != EOK) { in Put() 199 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str, bufSize_ - tail_) != EOK) { in Put() 202 if (memcpy_s(buffer_, bufSize_, str + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) { in Put() 233 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), len) != EOK) { in Put() 238 if (memcpy_s(buffer_ + tail_, bufSize_ - tail_, str.c_str(), bufSize_ - tail_) != EOK) { in Put() 241 … if (memcpy_s(buffer_, bufSize_, str.c_str() + bufSize_ - tail_, len + tail_ - bufSize_) != EOK) { in Put() 295 if (memcpy_s(newBuf, expandedSize, buffer_ + head_, bufSize_ - head_) != EOK) { in Resize() [all …]
|
| D | bpf_event_receiver.cpp | 244 if (memcpy_s(tmp + pos, size - pos, symbolInfo.strTable_.data(), sym->strTabLen) != EOK) { in WriteSymbolInfo() 249 if (memcpy_s(tmp + pos, size - pos, symbolInfo.symTable_.data(), sym->symTabLen) != EOK) { in WriteSymbolInfo() 254 …emcpy_s(tmp + pos, size - pos, symbolInfo.fileName_.c_str(), symbolInfo.fileName_.size()) != EOK) { in WriteSymbolInfo() 293 gTracerTable[FSTRACE].c_str(), gTracerTable[FSTRACE].size()) == EOK, in EncodeFSTraceEvent() 302 gFSTraceTypeTable[item->type_].size() == EOK), in EncodeFSTraceEvent() 311 if (ret != EOK) { in EncodeFSTraceEvent() 329 gTracerTable[PFTRACE].c_str(), gTracerTable[PFTRACE].size() == EOK), in EncodePFTraceEvent() 340 gPFTraceTypeTable[item->type_].size()) == EOK, in EncodePFTraceEvent() 347 if (ret != EOK) { in EncodePFTraceEvent() 375 gBIOTraceTypeTable[item->type_].size()) == EOK, in EncodeBIOTraceEvent() [all …]
|
| D | bpf_controller.cpp | 405 CHECK_TRUE(ret == EOK, 0, "failed to memcpy symData"); in GetSymOffset() 411 CHECK_TRUE(ret == EOK, 0, "failed to memcpy symData"); in GetSymOffset() 645 if (memcpy_s(&cmpltEvent, sizeof(fstrace_cmplt_event_t), data, dataSize) != EOK) { in DumpFSTraceEvent() 678 if (memcpy_s(&cmpltEvent, sizeof(pftrace_cmplt_event_t), data, dataSize) != EOK) { in DumpPFTraceEvent() 721 if (memcpy_s(&cmpltEvent, sizeof(biotrace_cmplt_event_t), data, dataSize) != EOK) { in DumpBIOTraceEvent() 765 if (memcpy_s(&cmpltEvent, sizeof(strtrace_cmplt_event_t), data, dataSize) != EOK) { in DumpSTRTraceEvent()
|
| /developtools/profiler/device/services/ipc/src/ |
| D | unix_socket_client.cpp | 42 if (memset_s(&addr, sizeof(struct sockaddr_un), 0, sizeof(struct sockaddr_un)) != EOK) { in Connect() 46 …ncpy_s(addr.sun_path, sizeof(addr.sun_path), addrname.c_str(), sizeof(addr.sun_path) - 1) != EOK) { in Connect() 56 serviceBase_->serviceName_.c_str(), serviceBase_->serviceName_.size()) != EOK) { in Connect()
|
| D | unix_socket_server.cpp | 113 if (memset_s(&addr, sizeof(struct sockaddr_un), 0, sizeof(struct sockaddr_un)) != EOK) { in StartServer() 117 …ncpy_s(addr.sun_path, sizeof(addr.sun_path), addrname.c_str(), sizeof(addr.sun_path) - 1) != EOK) { in StartServer()
|
| D | socket_context.cpp | 228 if (memset_s(buf, sizeof(buf), 0, sizeof(buf)) != EOK) { in SendFileDescriptor() 240 if (memcpy_s(CMSG_DATA(cmsg), 1 * sizeof(int), &fd, 1 * sizeof(int)) != EOK) { in SendFileDescriptor()
|
| /developtools/profiler/hidebug/frameworks/native/ |
| D | hidebug_base.c | 79 if (err != EOK) { in ParseKeyValue() 84 if (err != EOK) { in ParseKeyValue() 240 if (err != EOK) { in InitEnvironmentParam() 245 if (err != EOK) { in InitEnvironmentParam()
|
| /developtools/profiler/hiebpf/include/ |
| D | ringbuffer.h | 81 if (ret != EOK) { in Peek() 85 if (ret != EOK) { in Peek() 89 if (memcpy_s(dest, len, buffer_ + head_, len) != EOK) { in Peek()
|
| D | hiebpf_data_file.h | 117 hiebpfCmd_.c_str(), hiebpfCmd_.length() + 1) != EOK) { in WriteFileHeader() 121 if (memcpy_s(mapAddr_, length_, &header, sizeof(header)) != EOK) { in WriteFileHeader()
|
| /developtools/profiler/host/smartperf/trace_streamer/src/base/ |
| D | securec.h | 20 #define EOK 0 macro
|
| /developtools/profiler/device/services/shared_memory/src/ |
| D | share_memory_block.cpp | 225 if (memcpy_s(rawMemory, size, data, size) != EOK) { in PutRaw() 254 if (memcpy_s(rawMemory, size, data, size) != EOK) { in PutRawTimeout() 284 if (memcpy_s(rawMemory, headerSize, header, headerSize) != EOK) { in PutWithPayloadTimeout() 289 if (memcpy_s(rawMemory + headerSize, payloadSize, payload, payloadSize) != EOK) { in PutWithPayloadTimeout() 412 if (memcpy_s(rawMemory, headerSize + payloadSize, header, headerSize) != EOK) { in PutWithPayloadSync() 417 if (memcpy_s(rawMemory + headerSize, payloadSize, payload, payloadSize) != EOK) { in PutWithPayloadSync()
|
| /developtools/profiler/device/plugins/native_daemon/src/ |
| D | elf_file.cpp | 104 if (memset_s(phdrsBuf, phdrSize * numPhdrs, 0, phdrSize * numPhdrs) != EOK) { in ParsePrgHeaders() 140 if (memset_s(shdrBuf, shdrSize, 0, shdrSize) != EOK) { in ParseSecNamesStr() 165 if (memset_s(secNamesBuf, secSize, '\0', secSize) != EOK) { in ParseSecNamesStr() 192 if (memset_s(shdrsBuf, shdrSize * numShdrs, '\0', shdrSize * numShdrs) != EOK) { in ParseSecHeaders() 266 if (memset_s(secBuf, secSize, '\0', secSize) != EOK) { in ParseSymNamesStr()
|
| /developtools/profiler/device/plugins/native_hook/src/ |
| D | hook_client.cpp | 309 sizeof(context.regs)) != EOK) { in hook_malloc() 314 sizeof(context.uc_mcontext.regs)) != EOK) { in hook_malloc() 394 sizeof(context.regs)) != EOK) { in hook_calloc() 399 sizeof(context.uc_mcontext.regs)) != EOK) { in hook_calloc() 478 sizeof(context.regs)) != EOK) { in hook_realloc() 483 sizeof(context.uc_mcontext.regs)) != EOK) { in hook_realloc() 564 sizeof(context.regs)) != EOK) { in hook_free() 569 sizeof(context.uc_mcontext.regs)) != EOK) { in hook_free() 653 sizeof(context.regs)) != EOK) { in hook_mmap() 658 sizeof(context.uc_mcontext.regs)) != EOK) { in hook_mmap() [all …]
|
| /developtools/global_resource_tool/src/ |
| D | resource_item.cpp | 60 bool result = (memset_s(buffer, length, 0, length) == EOK); in SetData() 61 result = result && (memcpy_s(buffer, length, data, length) == EOK); in SetData()
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | ftrace_field_parser.cpp | 58 …CHECK_TRUE(memcpy_s(out, size, start, size) == EOK, false, "copy %zu byte to memory FAILED!", size… in ReadData() 92 CHECK_TRUE(memcpy_s(&strPtr, sizeof(strPtr), start, strSize) == EOK, "", in ParseStrField()
|
| /developtools/hdc/src/test/jdwp/ |
| D | HdcJdwpSimulator.cpp | 102 if (memset_s(recv.get(), nread, 0, nread) != EOK) { in ProcessIncoming() 106 if (memcpy_s(recv.get(), nread, buf->base, nread) != EOK) { in ProcessIncoming() 203 if (memset_s(info, pkgSize, 0, pkgSize) != EOK) { in ConnectJdwp() 215 EOK) { in ConnectJdwp()
|
| /developtools/profiler/device/plugins/arkts_plugin/src/ |
| D | arkts_plugin.cpp | 184 if (memset_s(&serverAddr, sizeof(serverAddr), 0, sizeof(serverAddr)) != EOK) { in ClientConnectUnixWebSocket() 191 … if (strcpy_s(serverAddr.sun_path + 1, sizeof(serverAddr.sun_path) - 1, sockName.c_str()) != EOK) { in ClientConnectUnixWebSocket() 299 if (memcpy_s(sendBuf + sendMsgLen, SOCKET_MASK_LEN, MASK_KEY, SOCKET_MASK_LEN) != EOK) { in ClientSendReq() 310 if (memcpy_s(sendBuf + sendMsgLen, msgLen, maskMessage.c_str(), msgLen) != EOK) { in ClientSendReq() 402 if (memcpy_s(&msgLen, sizeof(recvbuf), recvbuf, sizeof(recvbuf) - 1) != EOK) { in HandleFrame()
|
| /developtools/syscap_codec/interfaces/inner_api/ |
| D | syscap_interface.c | 81 … (strlen(inputFile) > PATH_MAX || strncpy_s(path, PATH_MAX, inputFile, strlen(inputFile)) != EOK) { in GetFileContext() 229 if (nRet != EOK) { in DecodeOsSyscap() 354 if (ret != EOK) { in ParseRpcidToJson() 486 if (ret != EOK) { in DecodeRpcidToStringFormat() 605 if (ret != EOK) { in ComparePcidString() 633 if (ret != EOK) { in ComparePcidString()
|
| /developtools/syscap_codec/src/ |
| D | syscap_tool.c | 71 … (strlen(inputFile) > PATH_MAX || strncpy_s(path, PATH_MAX, inputFile, strlen(inputFile)) != EOK) { in GetFileContext() 125 …rlen(outDirPath) >= PATH_MAX || strncpy_s(path, PATH_MAX, outDirPath, strlen(outDirPath)) != EOK) { in ConvertedContextSaveAsFile() 309 if (ret != EOK) { in ParseRpcidToJson() 496 if (ret != EOK) { in EncodeRpcidscToString() 583 if (ret != EOK) { in CopyInputString() 616 if (ret != EOK) { in GetPriSyscapData()
|
| /developtools/profiler/proto_encoder/include/ |
| D | base_message.h | 134 if (memcpy_s(fieldMemory + tagSize, SIZE_FIXED32, &v, SIZE_FIXED32) != EOK) { in AddFixed32() 167 if (memcpy_s(fieldMemory + tagSize, SIZE_FIXED64, &v, SIZE_FIXED64) != EOK) { in AddFixed64() 359 if (memcpy_s(fieldMemory + tagSize, dataSize, array, dataSize) != EOK) { in AddPackedFixed()
|
| /developtools/syscap_codec/napi/ |
| D | napi_query_syscap.cpp | 63 errno_t err = EOK; in GetSystemCapability() 114 if (err != EOK) { in GetSystemCapability()
|
| /developtools/profiler/hiebpf/test/unittest/ |
| D | bpf_controller_test.cpp | 80 ASSERT_TRUE(memset_s(buf, sizeof(buf), '1', sizeof(buf)) == EOK);
|
| /developtools/profiler/device/plugins/native_daemon/include/ |
| D | dwarf_encoding.h | 91 if (memcpy_s(&value, sizeof(T), buffer, sizeof(T)) != EOK) { in dwReadAnyTypeData()
|
| /developtools/hdc/src/common/ |
| D | auth.cpp | 134 …if (uv_os_gethostname(hostname, &bufSize) < 0 && EOK != strcpy_s(hostname, sizeof(hostname), "unkn… in GetUserInfo() 141 if (ret < 0 && EOK != strcpy_s(username, sizeof(username), "unknown")) { in GetUserInfo() 335 …memcpy_s(modulusBuffer, sizeof(modulusBuffer), keyStruct->modulus, sizeof(modulusBuffer)) != EOK) { in RSAPublicKey2RSA()
|
| /developtools/hdc/src/host/ |
| D | client.cpp | 192 if (memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)) != EOK) { in ReadFileThreadFunc() 238 if (strcpy_s(buffer, sizeof(buffer), msg) != EOK) { in RunCommandWin32() 268 if (memset_s(resultBufShell, sizeof(resultBufShell), 0, sizeof(resultBufShell)) != EOK) { in RunCommand() 531 … if (memset_s(hShake->connectKey, sizeof(hShake->connectKey), 0, sizeof(hShake->connectKey)) != EOK in PreHandshake() 532 …_s(hShake->connectKey, sizeof(hShake->connectKey), connectKey.c_str(), connectKey.size()) != EOK) { in PreHandshake()
|