Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 37) sorted by relevance

12

/developtools/profiler/device/plugins/api/src/
Dplugin_module.cpp85 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/
Dplugin_module_api_test.cpp203 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/
Dnetwork_plugin_test.cpp273 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/
Dtest_main.cpp38 …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()
Dcpu_module.cpp56 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/diskio_plugin/src/
Dtest_main.cpp90 diskioPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength); in main()
92 int len = diskioPlugin->callbacks->onPluginReportResult(dataBuffer.data(), in main()
114 diskioPlugin->callbacks->onPluginSessionStop(); in main()
Ddiskio_module.cpp56 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/diskio_plugin/test/unittest/
Ddiskio_data_plugin_unittest.cpp188 …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/
Dplugin_manager_test.cpp122 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/
Dhiperf_plugin_unittest.cpp92 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/
Dhisysevent_plugin_unittest.cpp155 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/
Dhidump_plugin_unittest.cpp109 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/
Dflow_controller_test.cpp265 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/
Dhilog_module.cpp59 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/stream_plugin/src/
Dstream_module.cpp58 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/arkts_plugin/src/
Darkts_module.cpp59 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/hisysevent_plugin/src/
Dhisysevent_module.cpp58 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/hidump_plugin/src/
Dhidump_module.cpp58 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/sample_plugin/src/
Dsample_module.cpp62 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/memory_plugin/src/
Dmemory_module.cpp62 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/network_plugin/src/
Dnetwork_module.cpp65 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/process_plugin/src/
Dprocess_module.cpp65 .callbacks = &g_callbacks,
/developtools/profiler/device/plugins/memory_plugin/test/unittest/
Dmemory_data_plugin_unittest.cpp514 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/
Dplugin_module_api.h254 PluginModuleCallbacks* callbacks; member
/developtools/profiler/device/plugins/process_plugin/test/unittest/
Dprocess_plugin_unittest.cpp402 …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…

12