mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
refactor: Add xe print debug key
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f55cb596c7
commit
a4f7dda98f
@@ -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")
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user