Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 34) sorted by relevance

12

/developtools/profiler/device/services/profiler_service/test/unittest/
Dprofiler_data_repeater_test.cpp43 const int bufferSize = 10; variable
44 auto dataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
47 for (int i = 0; i < bufferSize; i++) {
61 const int bufferSize = 10; variable
63 auto inDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
66 auto outDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
111 const int bufferSize = itemCounts; variable
112 auto inDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
115 auto outDataRepeater = std::make_shared<ProfilerDataRepeater>(bufferSize);
163 const int bufferSize = 10; variable
[all …]
/developtools/profiler/device/plugins/memory_plugin/src/
Dtest_main.cpp42 const int bufferSize = 256; in main() local
43 char buffer[bufferSize] = { 0 }; in main()
44 strerror_r(errno, buffer, bufferSize); in main()
Dmemory_module.cpp33 static int MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in MemPluginReportResult() argument
37 return g_plugin->Report(bufferData, bufferSize); in MemPluginReportResult()
/developtools/profiler/device/plugins/gpu_plugin/src/
Dgpu_module.cpp32 static int GpuPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in GpuPluginReportResult() argument
36 return g_plugin->Report(bufferData, bufferSize); in GpuPluginReportResult()
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_module.cpp33 static int CpuPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in CpuPluginReportResult() argument
37 return g_plugin->Report(bufferData, bufferSize); in CpuPluginReportResult()
/developtools/profiler/device/plugins/network_plugin/src/
Dnetwork_module.cpp34 static int NetworkPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in NetworkPluginReportResult() argument
40 return g_plugin->Report(bufferData, bufferSize); in NetworkPluginReportResult()
/developtools/profiler/device/plugins/sample_plugin/src/
Dsample_module.cpp35 static int SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in SamplePluginReportResult() argument
38 return g_plugin->Report(bufferData, bufferSize); in SamplePluginReportResult()
/developtools/profiler/device/plugins/diskio_plugin/src/
Ddiskio_module.cpp33 static int DiskioPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in DiskioPluginReportResult() argument
37 return g_plugin->Report(bufferData, bufferSize); in DiskioPluginReportResult()
/developtools/profiler/device/plugins/xpower_plugin/src/
Dxpower_module.cpp38 static int XpowerPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in XpowerPluginReportResult() argument
44 return g_plugin->Report(bufferData, bufferSize); in XpowerPluginReportResult()
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_module.cpp34 static int ProcessPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in ProcessPluginReportResult() argument
40 return g_plugin->Report(bufferData, bufferSize); in ProcessPluginReportResult()
/developtools/profiler/device/services/ipc/src/
Dsocket_context.cpp99 uint32_t bufferSize = MEMORY_BLOCK_UNIT; in UnixSocketRecv() local
102 std::vector<unsigned char> buf(bufferSize); in UnixSocketRecv()
113 if (pph->protoSize > bufferSize) { in UnixSocketRecv()
118 bufferSize = (pph->protoSize / MEMORY_BLOCK_UNIT + 1) * MEMORY_BLOCK_UNIT; in UnixSocketRecv()
119 buf.resize(bufferSize); in UnixSocketRecv()
/developtools/profiler/device/services/profiler_service/src/
Dtrace_file_reader.cpp98 bool TraceFileReader::ReadData(uint8_t buffer[], uint32_t bufferSize) in ReadData() argument
103 stream_.read(reinterpret_cast<CharPtr>(buffer), bufferSize); in ReadData()
107 CHECK_TRUE(helper_.AddSegment(buffer, bufferSize), false, "Add payload for data bytes failed!"); in ReadData()
Dtrace_file_reader.h40 bool ReadData(uint8_t buffer[], uint32_t bufferSize);
/developtools/profiler/device/plugins/api/src/
Dcommand_poller.cpp46 uint32_t bufferSize = cmd.buffer_sizes(0); in OnCreateSessionCmd() local
58 if (bufferSize != 0) { in OnCreateSessionCmd()
59 PROFILER_LOG_DEBUG(LOG_CORE, "%s:bufferSize = %d", __func__, bufferSize); in OnCreateSessionCmd()
66 …CHECK_TRUE(pluginManager->CreateWriter(config.name(), bufferSize, smbFd, eventFd, config.is_protob… in OnCreateSessionCmd()
Dplugin_manager.h61 bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd,
Dplugin_manager.cpp469 bool PluginManager::CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventF… in CreateWriter() argument
479 if (bufferSize > 0) { in CreateWriter()
480 …PROFILER_LOG_DEBUG(LOG_CORE, "%s:%s Use ShareMemory %d", __func__, pluginName.c_str(), bufferSize); in CreateWriter()
484 (pluginName, pluginVersion, bufferSize, smbFd, eventFd, index), isProtobufSerialize); in CreateWriter()
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dftrace_data_reader_test.cpp86 long bufferSize = static_cast<long>(buffer.size()); variable
87 EXPECT_EQ(reader.Read(buffer.data(), buffer.size()), bufferSize);
/developtools/profiler/device/services/plugin_service/src/
Dplugin_command_builder.cpp29 uint32_t bufferSize) in BuildCreateSessionCmd() argument
36 csc->add_buffer_sizes(bufferSize); in BuildCreateSessionCmd()
/developtools/profiler/device/plugins/ftrace_plugin/src/
Dflow_controller.cpp355 auto bufferSize = static_cast<long>(memPool_->GetBlockSize()); in HmReadEventData() local
359 long rest = bufferSize; in HmReadEventData()
360 while ((nbytes = reader->Read(&buffer[used], rest)) > 0 && used < bufferSize) { in HmReadEventData()
364 if (used == bufferSize) { in HmReadEventData()
366 (unsigned int)bufferSize); in HmReadEventData()
531 auto bufferSize = static_cast<long>(memPool_->GetBlockSize()); in ReadEventData() local
535 long rest = bufferSize; in ReadEventData()
536 while ((nbytes = reader->Read(&buffer[used], rest)) > 0 && used < bufferSize) { in ReadEventData()
542 if (used == bufferSize) { in ReadEventData()
545 used, bufferSize); in ReadEventData()
/developtools/smartperf_host/ide/test/trace/component/setting/
DSpRecordSetting.test.ts30 expect(spEle.bufferSize).toEqual(64);
93 expect(spEle.bufferSize).toEqual(64);
/developtools/profiler/device/plugins/api/test/unittest/
Dcommand_poller_test.cpp95 virtual bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd, in CreateWriter() argument
98 if (bufferSize == 0) { in CreateWriter()
/developtools/profiler/device/plugins/api/include/
Dmanager_interface.h44 virtual bool CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd,
/developtools/profiler/interfaces/kits/test/unittest/
Dplugin_module_api_test.cpp71 static int MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize);
83 static int SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize);
98 int PluginModuleApiTest::MemPluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in MemPluginReportResult() argument
101 return memoryPlugin->Report(bufferData, bufferSize); in MemPluginReportResult()
158 int PluginModuleApiTest::SamplePluginReportResult(uint8_t* bufferData, uint32_t bufferSize) in SamplePluginReportResult() argument
161 return samplePlugin->Report(bufferData, bufferSize); in SamplePluginReportResult()
/developtools/profiler/interfaces/kits/
Dplugin_module_api.h58 typedef int (*PluginReportResultCallback)(uint8_t* bufferData, uint32_t bufferSize);
/developtools/profiler/device/plugins/native_daemon/src/
Dhook_manager.cpp224 …uint32_t bufferSize = static_cast<uint32_t>(hookConfig_.smb_pages()) * PAGE_BYTES; /* bufferConfig… in HandleHookContext() local
225 …MemoryBlock = ShareMemoryAllocator::GetInstance().CreateMemoryBlockLocal(ctx->smbName, bufferSize); in HandleHookContext()
497 bool HookManager::CreateWriter(std::string pluginName, uint32_t bufferSize, int smbFd, int eventFd, in CreateWriter() argument
501 …RegisterWriter(std::make_shared<BufferWriter>(pluginName, VERSION, bufferSize, smbFd, eventFd, age… in CreateWriter()

12