mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Introduce Online, Offline, Disabled DebuggingModes
This change allows to set DebuggingMode via ZET_ENABLE_PROGRAM_DEBUGGING env var 0: Disabled 1: Online 2: Offline Related-To: NEO-7630 Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9b35ba5e50
commit
65c73a690f
@@ -46,8 +46,24 @@ class Debugger {
|
||||
|
||||
enum class DebuggingMode : uint32_t {
|
||||
Disabled,
|
||||
Enabled
|
||||
Online,
|
||||
Offline
|
||||
};
|
||||
|
||||
inline DebuggingMode getDebuggingMode(uint32_t programDebugging) {
|
||||
switch (programDebugging) {
|
||||
case 1: {
|
||||
return DebuggingMode::Online;
|
||||
}
|
||||
case 2: {
|
||||
return DebuggingMode::Offline;
|
||||
}
|
||||
case 0:
|
||||
default: {
|
||||
return DebuggingMode::Disabled;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static_assert(std::is_standard_layout<Debugger::SbaAddresses>::value);
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user