refactor: Add xe print debug key

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2024-02-02 10:00:45 +00:00
committed by Compute-Runtime-Automation
parent f55cb596c7
commit a4f7dda98f
5 changed files with 7 additions and 4 deletions

View File

@@ -281,6 +281,7 @@ DECLARE_DEBUG_VARIABLE(bool, PrintExecutionBuffer, false, "print execution buffe
DECLARE_DEBUG_VARIABLE(bool, PrintBOsForSubmit, false, "print all BOs passed to submission")
DECLARE_DEBUG_VARIABLE(bool, PrintDebugSettings, false, "Dump all debug variables settings to text file. Print to stdout if value is different than default.")
DECLARE_DEBUG_VARIABLE(bool, PrintDebugMessages, false, "when enabled, some debug messages will be propagated to console")
DECLARE_DEBUG_VARIABLE(bool, PrintXeLogs, false, "when enabled, xe logs will be propagated to console")
DECLARE_DEBUG_VARIABLE(bool, DumpZEBin, false, "Enables dumping zebin (elf) to a binary file (.elf extension)")
DECLARE_DEBUG_VARIABLE(bool, DumpKernels, false, "Enables dumping kernels' program source code to text files and program from binary to bin file")
DECLARE_DEBUG_VARIABLE(bool, DumpKernelArgs, false, "Enables dumping kernels args to binary files")

View File

@@ -1161,7 +1161,7 @@ int IoctlHelperXe::ioctl(DrmIoctl request, void *arg) {
}
void IoctlHelperXe::xeShowBindTable() {
if (debugManager.flags.PrintDebugMessages.get()) {
if (debugManager.flags.PrintXeLogs.get()) {
std::unique_lock<std::mutex> lock(xeLock);
xeLog("show bind: (<index> <handle> <userptr> <addr> <size>)\n", "");
for (unsigned int i = 0; i < bindInfo.size(); i++) {

View File

@@ -209,7 +209,7 @@ class IoctlHelperXe : public IoctlHelper {
template <typename... XeLogArgs>
void IoctlHelperXe::xeLog(XeLogArgs &&...args) const {
PRINT_DEBUG_STRING(debugManager.flags.PrintDebugMessages.get(), stderr, args...);
PRINT_DEBUG_STRING(debugManager.flags.PrintXeLogs.get(), stderr, args...);
}
} // namespace NEO