/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
D | flow_controller_test.cpp | 102 std::vector<uint8_t> configData(config.ByteSizeLong()); variable 103 int ret = config.SerializeToArray(configData.data(), configData.size()); 105 EXPECT_EQ(controller.LoadConfig(configData.data(), configData.size()), 0); 124 std::vector<uint8_t> configData(config.ByteSizeLong()); variable 125 int ret = config.SerializeToArray(configData.data(), configData.size()); 127 EXPECT_EQ(controller.LoadConfig(configData.data(), configData.size()), -1); 146 std::vector<uint8_t> configData(config.ByteSizeLong()); variable 147 int ret = config.SerializeToArray(configData.data(), configData.size()); 149 EXPECT_EQ(controller.LoadConfig(configData.data(), configData.size()), -1); 169 std::vector<uint8_t> configData(config.ByteSizeLong()); variable [all …]
|
D | ftrace_parser_test.cpp | 67 std::vector<uint8_t> configData(config.ByteSizeLong()); in SetUpTestCase() local 68 config.SerializeToArray(configData.data(), configData.size()); in SetUpTestCase() 69 controller.LoadConfig(configData.data(), configData.size()); in SetUpTestCase()
|
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/ |
D | hisysevent_plugin_unittest.cpp | 78 std::vector<uint8_t> configData(size); in PluginStart() local 79 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart() 84 ret = plugin.Start(configData.data(), configData.size()); in PluginStart() 149 std::vector<uint8_t> configData(size); 150 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 156 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 196 std::vector<uint8_t> configData(size); 197 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 200 EXPECT_NE(plugin.Start(configData.data(), 0), 0); 201 EXPECT_NE(plugin.Start(nullptr, configData.size()), 0); [all …]
|
/developtools/profiler/interfaces/kits/test/unittest/ |
D | plugin_module_api_test.cpp | 70 static int MemDataPluginSessionStart(const uint8_t* configData, uint32_t configSize); 75 static int StreamPluginSessionStart(const uint8_t* configData, uint32_t configSize); 82 static int SamplePluginSessionStart(const uint8_t* configData, uint32_t configSize); 85 void SetSampleConfig(std::vector<uint8_t>& configData, uint32_t& configSize); 86 void SetMemoryConfig(std::vector<uint8_t>& configData, uint32_t& configSize); 87 void SetStreamConfig(std::vector<uint8_t>& configData, uint32_t& configSize); 91 int PluginModuleApiTest::MemDataPluginSessionStart(const uint8_t* configData, uint32_t configSize) in MemDataPluginSessionStart() argument 95 return memoryPlugin->Start(configData, configSize); in MemDataPluginSessionStart() 114 int PluginModuleApiTest::StreamPluginSessionStart(const uint8_t* configData, uint32_t configSize) in StreamPluginSessionStart() argument 118 return streamPlugin->Start(configData, configSize); in StreamPluginSessionStart() [all …]
|
/developtools/profiler/device/cmds/src/ |
D | parse_plugin_config.cpp | 134 std::string configData = pluginConfigMap[pluginName]; in SetSerializeCpuConfig() local 136 if (!parser_.ParseFromString(configData, cpuConfigNolite.get())) { in SetSerializeCpuConfig() 152 std::string configData = pluginConfigMap[pluginName]; in SetSerializeDiskioConfig() local 154 if (!parser_.ParseFromString(configData, diskioConfigNolite.get())) { in SetSerializeDiskioConfig() 170 std::string configData = pluginConfigMap[pluginName]; in SetSerializeFtraceConfig() local 172 if (!parser_.ParseFromString(configData, ftraceConfigNolite.get())) { in SetSerializeFtraceConfig() 189 std::string configData = pluginConfigMap[pluginName]; in SetSerializeHidumpConfig() local 191 if (!parser_.ParseFromString(configData, hidumpConfigNolite.get())) { in SetSerializeHidumpConfig() 207 std::string configData = pluginConfigMap[pluginName]; in SetSerializeHilogConfig() local 209 if (!parser_.ParseFromString(configData, hilogConfigNolite.get())) { in SetSerializeHilogConfig() [all …]
|
/developtools/profiler/device/plugins/network_plugin/test/unittest/ |
D | network_plugin_test.cpp | 103 std::vector<uint8_t> configData(configSize); in PluginStub() local 104 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStub() 107 ret = plugin.Start(configData.data(), configSize); in PluginStub() 224 std::vector<uint8_t> configData(size); 225 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 228 EXPECT_NE(plugin.Start(configData.data(), size - 1), 0); 267 std::vector<uint8_t> configData(size); 268 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 296 std::vector<uint8_t> configData(size); 297 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); [all …]
|
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/ |
D | hidump_plugin_unittest.cpp | 71 std::vector<uint8_t> configData(size); in PluginStart() local 72 int ret = config.SerializeToArray(configData.data(), configData.size()); in PluginStart() 77 ret = plugin.Start(configData.data(), configData.size()); in PluginStart() 103 std::vector<uint8_t> configData(size); 104 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 110 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 329 std::vector<uint8_t> configData(size); 330 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 333 EXPECT_NE(plugin.Start(configData.data(), size - 1), 0);
|
/developtools/profiler/device/plugins/sample_plugin/src/ |
D | sample_plugin.cpp | 36 int SamplePlugin::Start(const uint8_t* configData, uint32_t configSize) in Start() argument 39 CHECK_TRUE(configData != nullptr, -1, "SamplePlugin: param invalid!!!"); in Start() 41 HILOG_INFO(LOG_CORE, "%s:configData[%d] = 0x%02x", __func__, i, configData[i]); in Start() 45 if (protoConfig_.ParseFromArray(configData, configSize) <= 0) { in Start()
|
D | sample_module.cpp | 28 static int SamplePluginSessionStart(const uint8_t* configData, uint32_t configSize) in SamplePluginSessionStart() argument 32 return g_plugin->Start(configData, configSize); in SamplePluginSessionStart()
|
/developtools/profiler/device/plugins/memory_plugin/test/unittest/ |
D | memory_data_plugin_unittest.cpp | 184 std::vector<uint8_t> configData(configSize); in PluginStub() local 185 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginStub() 189 ret = memoryPlugin.Start(configData.data(), configData.size()); in PluginStub() 511 std::vector<uint8_t> configData(size); 512 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 536 std::vector<uint8_t> configData(size); 537 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 540 EXPECT_NE(plugin.Start(configData.data(), size - 1), 0); 562 std::vector<uint8_t> configData(size); 563 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); [all …]
|
/developtools/profiler/device/plugins/sample_plugin/include/ |
D | sample_plugin.h | 27 int Start(const uint8_t* configData, uint32_t configSize); 28 int Report(uint8_t* configData, uint32_t configSize);
|
/developtools/profiler/device/plugins/api/test/unittest/ |
D | buffer_write_test.cpp | 183 ProfilerPluginConfig configData; variable 184 configData.set_name("111"); 185 configData.set_plugin_sha256("222"); 186 configData.set_sample_interval(1000); 187 size_t size = configData.ByteSizeLong(); 188 configData.SerializeToArray(data, size); 190 EXPECT_TRUE(write->WriteMessage(configData, "111"));
|
/developtools/profiler/device/plugins/hiperf_plugin/test/unittest/ |
D | hiperf_plugin_unittest.cpp | 86 std::vector<uint8_t> configData(size); 87 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 93 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0);
|
/developtools/profiler/device/plugins/diskio_plugin/include/ |
D | diskio_data_plugin.h | 44 int Start(const uint8_t* configData, uint32_t configSize); 45 int Report(uint8_t* configData, uint32_t configSize);
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
D | cpu_module.cpp | 27 static int CpuDataPluginSessionStart(const uint8_t* configData, uint32_t configSize) in CpuDataPluginSessionStart() argument 31 return g_plugin->Start(configData, configSize); in CpuDataPluginSessionStart()
|
/developtools/profiler/device/plugins/hidump_plugin/src/ |
D | hidump_module.cpp | 27 static int HidumpSessionStart(const uint8_t* configData, uint32_t configSize) in HidumpSessionStart() argument 31 return g_plugin->Start(configData, configSize); in HidumpSessionStart()
|
/developtools/profiler/device/plugins/diskio_plugin/src/ |
D | diskio_module.cpp | 27 static int DiskioDataPluginSessionStart(const uint8_t* configData, uint32_t configSize) in DiskioDataPluginSessionStart() argument 31 return g_plugin->Start(configData, configSize); in DiskioDataPluginSessionStart()
|
/developtools/profiler/device/plugins/hisysevent_plugin/src/ |
D | hisysevent_module.cpp | 27 static int HisyseventSessionStart(const uint8_t* configData, uint32_t configSize) in HisyseventSessionStart() argument 31 return g_plugin->Start(configData, configSize); in HisyseventSessionStart()
|
/developtools/profiler/device/plugins/hilog_plugin/src/ |
D | hilog_module.cpp | 28 static int HilogPluginSessionStart(const uint8_t* configData, uint32_t configSize) in HilogPluginSessionStart() argument 32 return g_plugin->Start(configData, configSize); in HilogPluginSessionStart()
|
/developtools/profiler/device/plugins/stream_plugin/src/ |
D | stream_module.cpp | 28 static int StreamPluginSessionStart(const uint8_t* configData, uint32_t configSize) in StreamPluginSessionStart() argument 31 return g_plugin->Start(configData, configSize); in StreamPluginSessionStart()
|
D | stream_plugin.cpp | 26 int StreamPlugin::Start(const uint8_t* configData, uint32_t configSize) in Start() argument 29 if (protoConfig_.ParseFromArray(configData, configSize) <= 0) { in Start()
|
/developtools/profiler/device/plugins/process_plugin/src/ |
D | process_module.cpp | 28 static int ProcessDataPluginSessionStart(const uint8_t* configData, uint32_t configSize) in ProcessDataPluginSessionStart() argument 32 return g_plugin->Start(configData, configSize); in ProcessDataPluginSessionStart()
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
D | memory_module.cpp | 27 static int MemDataPluginSessionStart(const uint8_t* configData, uint32_t configSize) in MemDataPluginSessionStart() argument 31 return g_plugin->Start(configData, configSize); in MemDataPluginSessionStart()
|
/developtools/profiler/device/plugins/network_plugin/src/ |
D | network_module.cpp | 28 static int NetworkPluginSessionStart(const uint8_t* configData, uint32_t configSize) in NetworkPluginSessionStart() argument 32 return g_plugin->Start(configData, configSize); in NetworkPluginSessionStart()
|
/developtools/profiler/device/plugins/diskio_plugin/test/unittest/ |
D | diskio_data_plugin_unittest.cpp | 88 std::vector<uint8_t> configData(protoConfig.ByteSizeLong()); in PluginDiskioInfoStub() local 89 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginDiskioInfoStub() 95 ret = diskioPlugin.Start(configData.data(), configData.size()); in PluginDiskioInfoStub()
|