/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_EQ(plugin.Start(configData.data(), 0), 0); 204 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/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/cmds/src/ |
D | parse_plugin_config.cpp | 138 std::string configData = pluginConfigMap[pluginName]; in SetSerializeCpuConfig() local 140 if (!parser_.ParseFromString(configData, cpuConfigNolite.get())) { in SetSerializeCpuConfig() 156 std::string configData = pluginConfigMap[pluginName]; in SetSerializeDiskioConfig() local 158 if (!parser_.ParseFromString(configData, diskioConfigNolite.get())) { in SetSerializeDiskioConfig() 174 std::string configData = pluginConfigMap[pluginName]; in SetSerializeFtraceConfig() local 176 if (!parser_.ParseFromString(configData, ftraceConfigNolite.get())) { in SetSerializeFtraceConfig() 193 std::string configData = pluginConfigMap[pluginName]; in SetSerializeHidumpConfig() local 195 if (!parser_.ParseFromString(configData, hidumpConfigNolite.get())) { in SetSerializeHidumpConfig() 236 std::string configData = pluginConfigMap[pluginName]; in SetSerializeHilogConfig() local 238 if (!parser_.ParseFromString(configData, hilogConfigNolite.get())) { in SetSerializeHilogConfig() [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 | 178 std::vector<uint8_t> configData(configSize); in PluginStub() local 179 int ret = protoConfig.SerializeToArray(configData.data(), configData.size()); in PluginStub() 183 ret = memoryPlugin.Start(configData.data(), configData.size()); in PluginStub() 508 std::vector<uint8_t> configData(size); 509 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 533 std::vector<uint8_t> configData(size); 534 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); 537 EXPECT_NE(plugin.Start(configData.data(), size - 1), 0); 559 std::vector<uint8_t> configData(size); 560 ASSERT_GT(config.SerializeToArray(configData.data(), configData.size()), 0); [all …]
|
/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/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/smartperf_host/ide/test/trace/component/ |
D | SpRecordTrace.test.ts | 60 configData: { 158 configData: {}, 165 configData: { reportIoStats: 'IO_REPORT' }, 172 configData: { pid: 0, reportProcessInfo: true }, 179 configData: { 199 configData: {
|
/developtools/profiler/device/plugins/hiebpf_plugin/src/ |
D | hiebpf_module.cpp | 51 static int32_t HiebpfSessionStart(const uint8_t* configData, uint32_t configSize) in HiebpfSessionStart() argument 56 if (configData == nullptr || configSize < 0) { in HiebpfSessionStart() 61 …CHECK_TRUE(config.ParseFromArray(configData, configSize) > 0, RET_ERR, "Parameter parsing failed"); in HiebpfSessionStart()
|
/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/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/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/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/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/arkts_plugin/src/ |
D | arkts_module.cpp | 28 static int ArkTSPluginSessionStart(const uint8_t* configData, uint32_t configSize) in ArkTSPluginSessionStart() argument 31 g_plugin->Start(configData, configSize); in ArkTSPluginSessionStart()
|
/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/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()
|
/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/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()
|