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:
Fabian Zwolinski
2023-03-16 12:03:21 +00:00
committed by Compute-Runtime-Automation
parent 9b35ba5e50
commit 65c73a690f
25 changed files with 245 additions and 78 deletions

View File

@@ -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