/developtools/profiler/device/plugins/api/src/ |
D | plugin_module.cpp | 85 if (structPtr_ && structPtr_->callbacks) { in GetSampleMode() 86 if (structPtr_->callbacks->onPluginReportResult != nullptr) { in GetSampleMode() 88 } else if (structPtr_->callbacks->onRegisterWriterStruct != nullptr) { in GetSampleMode() 207 if (structPtr_->callbacks == nullptr) { in BindFunctions() 212 if ((structPtr_->callbacks->onPluginSessionStart == nullptr) || in BindFunctions() 213 (structPtr_->callbacks->onPluginSessionStop == nullptr)) { in BindFunctions() 225 if (structPtr_ != nullptr && structPtr_->callbacks != nullptr) { in StartSession() 226 if (structPtr_->callbacks->onPluginSessionStart) { in StartSession() 228 return (structPtr_->callbacks->onPluginSessionStart(buffer, size) == 0); in StartSession() 238 if (structPtr_ != nullptr && structPtr_->callbacks != nullptr) { in StopSession() [all …]
|
/developtools/profiler/interfaces/kits/test/unittest/ |
D | plugin_module_api_test.cpp | 203 PluginModuleCallbacks callbacks = { variable 209 streamCallbacks_ = &callbacks; 221 PluginModuleCallbacks callbacks = { variable 227 streamCallbacks_ = &callbacks; 245 PluginModuleCallbacks callbacks = { variable 251 streamCallbacks_ = &callbacks; 270 PluginModuleCallbacks callbacks = { variable 276 sampleCallbacks_ = &callbacks; 284 PluginModuleCallbacks callbacks = { variable 290 memoryCallbacks_ = &callbacks; [all …]
|
/developtools/profiler/device/plugins/network_plugin/test/unittest/ |
D | network_plugin_test.cpp | 273 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 301 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 303 EXPECT_LT(plugin->callbacks->onPluginReportResult(dataBuffer.data(), dataBuffer.size()), 0); 305 EXPECT_EQ(plugin->callbacks->onPluginReportResult(dataBuffer.data(), dataBuffer.size()), 0); 307 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0); 333 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 334 EXPECT_GT(plugin->callbacks->onPluginReportResult(dataBuffer.data(), dataBuffer.size()), 0); 335 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
D | test_main.cpp | 38 …int len = cpuPlugin->callbacks->onPluginReportResult(dataBuffer.data(), cpuPlugin->resultBufferSiz… in Report() 111 cpuPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength); in main() 117 int len = cpuPlugin->callbacks->onPluginReportResult(dataBuffer.data(), in main() 127 cpuPlugin->callbacks->onPluginSessionStop(); in main()
|
D | cpu_module.cpp | 56 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/diskio_plugin/src/ |
D | test_main.cpp | 90 diskioPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength); in main() 92 int len = diskioPlugin->callbacks->onPluginReportResult(dataBuffer.data(), in main() 114 diskioPlugin->callbacks->onPluginSessionStop(); in main()
|
D | diskio_module.cpp | 56 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/diskio_plugin/test/unittest/ |
D | diskio_data_plugin_unittest.cpp | 188 …EXPECT_EQ(diskioPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength), RET_SU… 189 …ASSERT_GT(diskioPlugin->callbacks->onPluginReportResult(dataBuffer.data(), diskioPlugin->resultBuf… 190 EXPECT_EQ(diskioPlugin->callbacks->onPluginSessionStop(), RET_SUCC); 196 …EXPECT_EQ(diskioPlugin->callbacks->onPluginSessionStart(configBuffer2.data(), configLength+1), RET…
|
/developtools/profiler/device/plugins/api/test/unittest/ |
D | plugin_manager_test.cpp | 122 if (pluginModule.structPtr_ && pluginModule.structPtr_->callbacks) { 123 if (pluginModule.structPtr_->callbacks->onPluginReportResult != nullptr) { 125 } else if (pluginModule.structPtr_->callbacks->onRegisterWriterStruct != nullptr) {
|
/developtools/profiler/device/plugins/hiperf_plugin/test/unittest/ |
D | hiperf_plugin_unittest.cpp | 92 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 93 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 94 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/device/plugins/hisysevent_plugin/test/unittest/ |
D | hisysevent_plugin_unittest.cpp | 155 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 156 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 158 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/device/plugins/hidump_plugin/test/unittest/ |
D | hidump_plugin_unittest.cpp | 109 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 110 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 111 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
D | flow_controller_test.cpp | 265 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 266 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 267 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/device/plugins/hilog_plugin/src/ |
D | hilog_module.cpp | 59 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/stream_plugin/src/ |
D | stream_module.cpp | 58 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/arkts_plugin/src/ |
D | arkts_module.cpp | 59 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/hisysevent_plugin/src/ |
D | hisysevent_module.cpp | 58 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/hidump_plugin/src/ |
D | hidump_module.cpp | 58 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/sample_plugin/src/ |
D | sample_module.cpp | 62 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/memory_plugin/src/ |
D | memory_module.cpp | 62 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/network_plugin/src/ |
D | network_module.cpp | 65 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/process_plugin/src/ |
D | process_module.cpp | 65 .callbacks = &g_callbacks,
|
/developtools/profiler/device/plugins/memory_plugin/test/unittest/ |
D | memory_data_plugin_unittest.cpp | 514 EXPECT_EQ(plugin->callbacks->onRegisterWriterStruct(&writer), 0); 564 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 565 EXPECT_EQ(plugin->callbacks->onPluginReportResult(dataBuffer.data(), dataBuffer.size()), 0); 566 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0); 607 EXPECT_EQ(plugin->callbacks->onPluginSessionStart(configData.data(), configData.size()), 0); 611 int ret = plugin->callbacks->onPluginReportResult(dataBuffer.data(), dataBuffer.size()); 620 EXPECT_EQ(plugin->callbacks->onPluginSessionStop(), 0);
|
/developtools/profiler/interfaces/kits/ |
D | plugin_module_api.h | 254 PluginModuleCallbacks* callbacks; member
|
/developtools/profiler/device/plugins/process_plugin/test/unittest/ |
D | process_plugin_unittest.cpp | 402 …EXPECT_EQ(processPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength), RET_S… 403 …int len = processPlugin->callbacks->onPluginReportResult(dataBuffer.data(), processPlugin->resultB… 405 EXPECT_EQ(processPlugin->callbacks->onPluginSessionStop(), RET_SUCC); 408 …EXPECT_EQ(processPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength+1), RET…
|