Home
last modified time | relevance | path

Searched refs:gpuPlugin (Results 1 – 2 of 2) sorted by relevance

/developtools/profiler/device/plugins/gpu_plugin/test/unittest/
Dgpu_data_plugin_unittest.cpp88 bool PluginGpuInfoStub(GpuDataPlugin& gpuPlugin, GpuData& gpuData, bool unusualBuff) in PluginGpuInfoStub() argument
98 ret = gpuPlugin.Start(configData.data(), configData.size()); in PluginGpuInfoStub()
103 gpuPlugin.file_.close(); in PluginGpuInfoStub()
104 gpuPlugin.file_.open(g_path); in PluginGpuInfoStub()
111 ret = gpuPlugin.Report(bufferData.data(), bufferData.size()); in PluginGpuInfoStub()
141 GpuDataPlugin gpuPlugin; variable
144 EXPECT_TRUE(PluginGpuInfoStub(gpuPlugin, gpuData, false));
147 EXPECT_EQ(gpuPlugin.ReadFile(), EXPECT_VAL);
149 EXPECT_EQ(gpuPlugin.ReadFile(), EXPECT_VAL);
150 EXPECT_EQ(gpuPlugin.Stop(), 0);
[all …]
/developtools/profiler/device/plugins/gpu_plugin/src/
Dtest_main.cpp29 PluginModuleStruct* gpuPlugin; in main() local
36 gpuPlugin = reinterpret_cast<PluginModuleStruct*>(dlsym(handle, "g_pluginModule")); in main()
37 std::cout << "test:name = " << gpuPlugin->name << std::endl; in main()
38 std::cout << "test:buffer size = " << gpuPlugin->resultBufferSizeHint << std::endl; in main()
48 std::vector<uint8_t> dataBuffer(gpuPlugin->resultBufferSizeHint); in main()
49 gpuPlugin->callbacks->onPluginSessionStart(configBuffer.data(), configLength); in main()
51 int len = gpuPlugin->callbacks->onPluginReportResult(dataBuffer.data(), in main()
52 gpuPlugin->resultBufferSizeHint); in main()
65 gpuPlugin->callbacks->onPluginSessionStop(); in main()