fix: Return rawDataSize as zero when readIoStream call fails

Related-To: NEO-13707

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
shubham kumar
2025-01-10 19:05:56 +00:00
committed by Compute-Runtime-Automation
parent e4d87a1dee
commit 9dd065eeed
4 changed files with 119 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -88,6 +88,8 @@ ze_result_t OaMetricStreamerImp::readData(uint32_t maxReportCount, size_t *pRawD
result = metricGroup->readIoStream(reportCount, *pRawData);
if (result == ZE_RESULT_SUCCESS || result == ZE_RESULT_WARNING_DROPPED_DATA) {
*pRawDataSize = reportCount * rawReportSize;
} else {
*pRawDataSize = 0;
}
}