fix(sysman): add implementation for getActivityExt

Related-To: NEO-8554

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
This commit is contained in:
Joshua Santosh Ranjan 2023-12-20 23:55:04 +05:30 committed by Compute-Runtime-Automation
parent 4a59406f83
commit 2d62c4e058
2 changed files with 15 additions and 0 deletions

View File

@ -83,6 +83,10 @@ void LinuxEngineImp::init() {
}
}
ze_result_t LinuxEngineImp::getActivityExt(uint32_t *pCount, zes_engine_stats_t *pStats) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
LinuxEngineImp::~LinuxEngineImp() {
for (auto &fdPair : fdList) {
if (fdPair.first != -1) {

View File

@ -199,6 +199,17 @@ TEST_F(ZesEngineFixture, GivenValidEngineHandleWhenCallingZesEngineGetActivityAn
}
}
TEST_F(ZesEngineFixture, GivenValidEngineHandleWhenCallingZesEngineGetActivityExtThenVerifyFailureIsReturned) {
auto handles = getEngineHandles(handleComponentCount);
EXPECT_EQ(handleComponentCount, handles.size());
for (auto handle : handles) {
uint32_t count = 0;
zes_engine_stats_t stats = {};
EXPECT_EQ(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE, zesEngineGetActivityExt(handle, &count, &stats));
}
}
TEST_F(ZesEngineFixture, GivenValidEngineHandleWhenCallingZesEngineGetActivityAndperfEventOpenFailsThenVerifyEngineGetActivityReturnsFailure) {
pPmuInterface->mockPerfEventFailureReturnValue = -1;
MockEnginePmuInterfaceImp pPmuInterfaceImp(pLinuxSysmanImp);