| /developtools/smartperf_host/trace_streamer/test/unittest/systrace/ |
| D | bytrace_parser_test.cpp | 72 constexpr uint32_t bufSize = 1024; variable 73 auto buf = std::make_unique<uint8_t[]>(bufSize); 75 if (memcpy_s(buf.get(), bufSize, " \n", realBufSize)) { 97 constexpr uint32_t bufSize = 1024; variable 98 auto buf = std::make_unique<uint8_t[]>(bufSize); 100 if (memcpy_s(buf.get(), bufSize, "0123456789\n", realBufSize)) { 122 constexpr uint32_t bufSize = 1024; variable 123 auto buf = std::make_unique<uint8_t[]>(bufSize); 125 if (memcpy_s(buf.get(), bufSize, "TRACE: \n# tracer: nop \n# \n", realBufSize)) { 147 constexpr uint32_t bufSize = 1024; variable [all …]
|
| /developtools/profiler/hiebpf/include/ |
| D | elf_file.h | 58 const std::size_t bufSize); 59 bool Init(unsigned char * const ehdrBuf, const std::size_t bufSize); 78 bool ParseElf32Header(unsigned char * const ehdrBuf, const std::size_t bufSize); 79 bool ParseElf64Header(unsigned char * const ehdrBuf, const std::size_t bufSize); 84 static std::unique_ptr<ProgramHeader> MakeUnique(char * const phdrBuf, const size_t bufSize); 85 inline bool Init(char * const phdrBuf, const size_t bufSize) in Init() argument 87 if (bufSize == phdr32Size and ParsePrgHeader32(phdrBuf)) { in Init() 90 if (bufSize == phdr64Size and ParsePrgHeader64(phdrBuf)) { in Init() 114 static std::unique_ptr<SectionHeader> MakeUnique(char * const shdrBuf, const size_t bufSize, 117 inline bool Init(char * const shdrBuf, const size_t bufSize, const size_t index) in Init() argument [all …]
|
| /developtools/hdc/src/daemon/ |
| D | shell.cpp | 194 constexpr int bufSize = 1024; in ThreadFork() local 195 char buf[bufSize] = { 0 }; in ThreadFork() 196 strerror_r(errno, buf, bufSize); in ThreadFork() 219 constexpr int bufSize = 1024; in ShellFork() local 220 char buf[bufSize] = { 0 }; in ShellFork() 221 strerror_r(errno, buf, bufSize); in ShellFork() 248 constexpr int bufSize = 1024; in CreateSubProcessPTY() local 249 char buf[bufSize] = { 0 }; in CreateSubProcessPTY() 250 strerror_r(errno, buf, bufSize); in CreateSubProcessPTY() 255 constexpr int bufSize = 1024; in CreateSubProcessPTY() local [all …]
|
| /developtools/profiler/hiebpf/src/ |
| D | ringbuffer.cpp | 23 RingBuffer::RingBuffer(const std::size_t bufSize, const enum MemAlignShift shift) in RingBuffer() argument 24 : bufSize_ {bufSize}, in RingBuffer() 253 char* RingBuffer::Allocate(std::size_t bufSize) in Allocate() argument 258 bufSize = (bufSize >> B_ALIGN_SHIFT); in Allocate() 259 newBuffer = new(std::nothrow) char[bufSize]; in Allocate() 263 bufSize = (bufSize >> H_ALIGN_SHIFT); in Allocate() 264 uint16_t *temp = new(std::nothrow) uint16_t[bufSize]; in Allocate() 269 bufSize = (bufSize >> W_ALIGN_SHIFT); in Allocate() 270 uint32_t *temp = new(std::nothrow) uint32_t[bufSize]; in Allocate() 275 bufSize = (bufSize >> D_ALIGN_SHIFT); in Allocate() [all …]
|
| D | hiebpf_data_file.cpp | 72 uint32_t bufSize = OHOS::Developtools::Hiebpf::KernelSymbolInfo::GetSymbolData(buf); in WriteKernelSymbol() local 73 char *tmp = static_cast<char *>(Reserve(bufSize + sizeof(uint32_t) * 2)); in WriteKernelSymbol() 80 (*len) = bufSize; in WriteKernelSymbol() 81 if (memcpy_s(tmp + sizeof(uint32_t) * 2, bufSize, buf.data(), bufSize) != EOK) { // 2: double in WriteKernelSymbol()
|
| D | elf_file.cpp | 231 const std::size_t bufSize) in MakeUnique() argument 235 CHECK_TRUE(ehdr->Init(ehdrBuf, bufSize), nullptr, "ElfHeader::Init(ehdrBuf, bufSize) failed\n"); in MakeUnique() 239 bool ElfHeader::Init(unsigned char * const ehdrBuf, const std::size_t bufSize) in Init() argument 246 if (ehdrBuf[EI_CLASS] == ELFCLASS32 and ParseElf32Header(ehdrBuf, bufSize)) { in Init() 249 if (ehdrBuf[EI_CLASS] == ELFCLASS64 and ParseElf64Header(ehdrBuf, bufSize)) { in Init() 256 bool ElfHeader::ParseElf32Header(unsigned char * const ehdrBuf, const std::size_t bufSize) in ParseElf32Header() argument 258 if (bufSize < ehdr32Size) { in ParseElf32Header() 317 bool ElfHeader::ParseElf64Header(unsigned char * const ehdrBuf, const std::size_t bufSize) in ParseElf64Header() argument 319 CHECK_TRUE(bufSize >= ehdr64Size, false, "bad elf64 header buffer"); in ParseElf64Header() 392 std::unique_ptr<SectionHeader> SectionHeader::MakeUnique(char * const shdrBuf, const size_t bufSize, in MakeUnique() argument [all …]
|
| /developtools/profiler/device/plugins/api/test/unittest/ |
| D | buffer_write_test.cpp | 44 const int bufSize = 256; in InitShareMemory1() local 45 char buf[bufSize] = { 0 }; in InitShareMemory1() 46 strerror_r(errno, buf, bufSize); in InitShareMemory1() 54 const int bufSize = 256; in InitShareMemory1() local 55 char buf[bufSize] = { 0 }; in InitShareMemory1() 56 strerror_r(errno, buf, bufSize); in InitShareMemory1() 81 const int bufSize = 256; in InitShareMemory2() local 82 char buf[bufSize] = { 0 }; in InitShareMemory2() 83 strerror_r(errno, buf, bufSize); in InitShareMemory2() 91 const int bufSize = 256; in InitShareMemory2() local [all …]
|
| /developtools/hdc/src/test/jdwp/ |
| D | HdcJdwpSimulator.cpp | 31 constexpr int bufSize = 1024; in FinishWriteCallback() local 32 char buf[bufSize] = { 0 }; in FinishWriteCallback() 33 uv_err_name_r(status, buf, bufSize); in FinishWriteCallback() 129 constexpr int bufSize = 1024; in ProcessIncoming() local 130 char buffer[bufSize] = { 0 }; in ProcessIncoming() 131 uv_err_name_r(nread, buffer, bufSize); in ProcessIncoming() 150 constexpr int bufSize = 1024; in ReceiveNewFd() local 151 char buffer[bufSize] = { 0 }; in ReceiveNewFd() 152 uv_err_name_r(nread, buffer, bufSize); in ReceiveNewFd() 185 constexpr int bufSize = 1024; in ConnectJdwp() local [all …]
|
| /developtools/profiler/hiebpf/test/unittest/ |
| D | ipc_unix_socket_test.cpp | 65 const int bufSize = 1024; variable 67 size_t size = bufSize; 73 size = bufSize; 98 const int bufSize = 1024; variable 99 size_t size = bufSize;
|
| /developtools/hiperf/demo/cpp/ |
| D | hiperf_malloc_demo.cpp | 28 const int bufSize = 1048576; in main() local 35 temp = malloc(bufSize); in main()
|
| /developtools/profiler/device/plugins/memory_plugin/src/ |
| D | memory_data_plugin.cpp | 121 const int bufSize = 256; in InitMemVmemFd() local 122 char buf[bufSize] = { 0 }; in InitMemVmemFd() 123 strerror_r(errno, buf, bufSize); in InitMemVmemFd() 129 const int bufSize = 256; in InitMemVmemFd() local 130 char buf[bufSize] = { 0 }; in InitMemVmemFd() 131 strerror_r(errno, buf, bufSize); in InitMemVmemFd() 143 const int bufSize = 256; in InitMemVmemFd() local 144 char buf[bufSize] = { 0 }; in InitMemVmemFd() 145 strerror_r(errno, buf, bufSize); in InitMemVmemFd() 151 const int bufSize = 256; in InitMemVmemFd() local [all …]
|
| /developtools/profiler/device/plugins/hidump_plugin/src/ |
| D | hidump_plugin.cpp | 75 const int bufSize = 256; in Start() local 76 char buf[bufSize] = {0}; in Start() 77 strerror_r(errno, buf, bufSize); in Start() 241 const int bufSize = 256; in CustomPclose() local 242 char buf[bufSize] = { 0 }; in CustomPclose() 243 strerror_r(errno, buf, bufSize); in CustomPclose()
|
| /developtools/hdc/hdcd_user_permit/src/ |
| D | connection.cpp | 32 const int bufSize = 256; in GetSettingBundleName() local 33 char buf[bufSize] = { 0 }; in GetSettingBundleName() 40 bytesRead = fread(buf, sizeof(char), bufSize, fp); in GetSettingBundleName()
|
| /developtools/profiler/device/plugins/native_hook/test/unittest/ |
| D | check_hook_data_test.cpp | 159 const int bufSize = 256; in ReadFile() local 160 char buf[bufSize] = { 0 }; in ReadFile() 161 strerror_r(errno, buf, bufSize); in ReadFile() 168 const int bufSize = 256; in ReadFile() local 169 char buf[bufSize] = { 0 }; in ReadFile() 170 strerror_r(errno, buf, bufSize); in ReadFile() 177 const int bufSize = 256; in ReadFile() local 178 char buf[bufSize] = { 0 }; in ReadFile() 179 strerror_r(errno, buf, bufSize); in ReadFile() 225 const int bufSize = 256; in ApplyForMalloc() local [all …]
|
| D | stack_writer_test.cpp | 43 const int bufSize = 256; in InitShareMemory() local 44 char buf[bufSize] = { 0 }; in InitShareMemory() 45 strerror_r(errno, buf, bufSize); in InitShareMemory() 53 const int bufSize = 256; in InitShareMemory() local 54 char buf[bufSize] = { 0 }; in InitShareMemory() 55 strerror_r(errno, buf, bufSize); in InitShareMemory()
|
| /developtools/hdc/src/common/ |
| D | circle_buffer.cpp | 46 const size_t bufSize = static_cast<size_t>(Base::GetUsbffsBulkSize()); in Malloc() local 65 data->buf = new(std::nothrow) uint8_t[bufSize]; in Malloc() 74 (void)memset_s(buf, bufSize, 0, bufSize); in Malloc()
|
| D | uart.cpp | 142 constexpr int bufSize = 1024; in SetSerial() local 143 char buf[bufSize] = { 0 }; in SetSerial() 144 strerror_r(errno, buf, bufSize); in SetSerial() 180 constexpr int bufSize = 1024; in SetSerial() local 181 char buf[bufSize] = { 0 }; in SetSerial() 182 strerror_r(errno, buf, bufSize); in SetSerial() 378 constexpr int bufSize = 1024; in WriteUartDev() 379 char buf[bufSize] = { 0 }; in WriteUartDev() 380 strerror_r(errno, buf, bufSize); in WriteUartDev() 409 constexpr int bufSize = 1024; in UartToHdcProtocol() local [all …]
|
| D | base.cpp | 155 constexpr int bufSize = 1024; in RollLogFile() local 156 char buf[bufSize] = { 0 }; in RollLogFile() 157 uv_strerror_r(value, buf, bufSize); in RollLogFile() 168 constexpr int bufSize = 1024; in RollLogFile() local 169 char buf[bufSize] = { 0 }; in RollLogFile() 170 uv_strerror_r(value, buf, bufSize); in RollLogFile() 175 constexpr int bufSize = 1024; in RollLogFile() local 176 char buf[bufSize] = { 0 }; in RollLogFile() 177 uv_strerror_r(value, buf, bufSize); in RollLogFile() 334 constexpr int bufSize = 1024; in SendCallback() local [all …]
|
| D | tcp.cpp | 83 constexpr int bufSize = 1024; in ReadStream() local 84 char buffer[bufSize] = { 0 }; in ReadStream() 85 uv_strerror_r(static_cast<int>(nread), buffer, bufSize); in ReadStream()
|
| /developtools/profiler/device/services/ipc/src/ |
| D | socket_context.cpp | 48 const int bufSize = 256; in ~SocketContext() local 49 char buf[bufSize] = { 0 }; in ~SocketContext() 50 strerror_r(errno, buf, bufSize); in ~SocketContext() 55 const int bufSize = 256; in ~SocketContext() local 56 char buf[bufSize] = { 0 }; in ~SocketContext() 57 strerror_r(errno, buf, bufSize); in ~SocketContext()
|
| /developtools/profiler/device/cmds/test/unittest/ |
| D | hiprofiler_cmd_test.cpp | 176 const int bufSize = 256; in CreateConfigFile() local 177 char buf[bufSize] = { 0 }; in CreateConfigFile() 178 strerror_r(errno, buf, bufSize); in CreateConfigFile() 185 const int bufSize = 256; in CreateConfigFile() local 186 char buf[bufSize] = { 0 }; in CreateConfigFile() 187 strerror_r(errno, buf, bufSize); in CreateConfigFile() 197 const int bufSize = 256; in CreateConfigFile() local 198 char buf[bufSize] = { 0 }; in CreateConfigFile() 199 strerror_r(errno, buf, bufSize); in CreateConfigFile() 210 const int bufSize = 256; in CreateConfigFile() local [all …]
|
| /developtools/hdc/src/host/ |
| D | host_unity.cpp | 92 constexpr int bufSize = 1024; in OnFileIO() local 93 char buf[bufSize] = { 0 }; in OnFileIO() 94 uv_strerror_r((int)req->result, buf, bufSize); in OnFileIO()
|
| /developtools/profiler/device/services/shared_memory/src/ |
| D | share_memory_block.cpp | 68 const int bufSize = 256; in CreateBlockWithFd() local 69 char buf[bufSize] = {0}; in CreateBlockWithFd() 70 strerror_r(errno, buf, bufSize); in CreateBlockWithFd() 109 const int bufSize = 256; in CreateBlock() local 110 char buf[bufSize] = {0}; in CreateBlock() 111 strerror_r(errno, buf, bufSize); in CreateBlock() 119 const int bufSize = 256; in CreateBlock() local 120 char buf[bufSize] = {0}; in CreateBlock() 121 strerror_r(errno, buf, bufSize); in CreateBlock()
|
| /developtools/profiler/device/plugins/ftrace_plugin/src/ |
| D | file_utils.cpp | 59 const int bufSize = 256; in ReadFile() local 60 char buf[bufSize] = { 0 }; in ReadFile() 61 strerror_r(errno, buf, bufSize); in ReadFile()
|
| /developtools/profiler/device/plugins/cpu_plugin/src/ |
| D | test_main.cpp | 89 const int bufSize = 256; in main() local 90 char buf[bufSize] = { 0 }; in main() 91 strerror_r(errno, buf, bufSize); in main()
|