fix: Improved logs for buffer submission and execution to use debug string

Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2025-06-23 16:41:18 +00:00
committed by Compute-Runtime-Automation
parent cbadc1285c
commit cb4fa456b7
2 changed files with 3 additions and 3 deletions

View File

@@ -305,7 +305,7 @@ void BufferObject::printExecutionBuffer(ExecBuffer &execbuf, const size_t &resid
logger << "Command ";
ioctlHelper->logExecObject(execObjectsStorage[i], logger, this->peekSize());
printf("%s\n", logger.str().c_str());
PRINT_DEBUG_STRING(debugManager.flags.PrintExecutionBuffer.get(), stdout, "%s\n", logger.str().c_str());
}
int bindBOsWithinContext(BufferObject *const boToPin[], size_t numberOfBos, OsContext *osContext, uint32_t vmHandleId, const bool forcePagingFence) {

View File

@@ -200,9 +200,9 @@ SubmissionStatus DrmCommandStreamReceiver<GfxFamily>::printBOsForSubmit(Residenc
}
PRINT_DEBUG_STRING(true, stdout, "Buffer object for submit\n");
for (const auto &bo : bosForSubmit) {
printf("BO-%d, range: %" SCNx64 " - %" SCNx64 ", size: %" SCNdPTR "\n", bo->peekHandle(), bo->peekAddress(), ptrOffset(bo->peekAddress(), bo->peekSize()), bo->peekSize());
PRINT_DEBUG_STRING(true, stdout, "BO-%d, range: %" SCNx64 " - %" SCNx64 ", size: %" SCNdPTR "\n", bo->peekHandle(), bo->peekAddress(), ptrOffset(bo->peekAddress(), bo->peekSize()), bo->peekSize());
}
printf("\n");
PRINT_DEBUG_STRING(true, stdout, "\n");
}
return SubmissionStatus::success;
}