L0 Debugger - DebugSession linux implementation

- new feature, enabled with PRELIM build
- implementation of debug session for linux
- move ResourceClass enum from Drm to drm_debug.h

Resolves: NEO-6814


Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2022-05-09 15:52:12 +00:00
committed by Compute-Runtime-Automation
parent 4e4560fe91
commit c021e2ec5e
27 changed files with 7906 additions and 85 deletions

View File

@@ -241,6 +241,12 @@ int DrmMockPrelimContext::handlePrelimRequest(unsigned long request, void *arg)
return uuidControlReturn;
} break;
case PRELIM_DRM_IOCTL_I915_DEBUGGER_OPEN: {
auto debugger_open = reinterpret_cast<prelim_drm_i915_debugger_open_param *>(arg);
if (debugger_open->pid != 0 && debugger_open->events == 0) {
return debuggerOpenRetval;
}
} break;
default:
return -1;
}