Home
last modified time | relevance | path

Searched refs:configData (Results 1 – 25 of 61) sorted by relevance

123

/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/
Dflow_controller_test.cpp102 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 …]
Dftrace_parser_test.cpp67 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/
Dhisysevent_plugin_unittest.cpp78 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/
Dplugin_module_api_test.cpp70 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/
Dparse_plugin_config.cpp134 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/
Dnetwork_plugin_test.cpp103 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/
Dhidump_plugin_unittest.cpp71 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/
Dsample_plugin.cpp36 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()
Dsample_module.cpp28 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/
Dmemory_data_plugin_unittest.cpp184 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/
Dsample_plugin.h27 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/
Dbuffer_write_test.cpp183 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/
Dhiperf_plugin_unittest.cpp86 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/
Ddiskio_data_plugin.h44 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/
Dcpu_module.cpp27 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/
Dhidump_module.cpp27 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/
Ddiskio_module.cpp27 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/
Dhisysevent_module.cpp27 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/
Dhilog_module.cpp28 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/
Dstream_module.cpp28 static int StreamPluginSessionStart(const uint8_t* configData, uint32_t configSize) in StreamPluginSessionStart() argument
31 return g_plugin->Start(configData, configSize); in StreamPluginSessionStart()
Dstream_plugin.cpp26 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/
Dprocess_module.cpp28 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/
Dmemory_module.cpp27 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/
Dnetwork_module.cpp28 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/
Ddiskio_data_plugin_unittest.cpp88 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()

123