diff options
Diffstat (limited to 'src/kernel/KernelKit/TraceSrv.h')
| -rw-r--r-- | src/kernel/KernelKit/TraceSrv.h | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/kernel/KernelKit/TraceSrv.h b/src/kernel/KernelKit/TraceSrv.h index 9da48561..479f1b0b 100644 --- a/src/kernel/KernelKit/TraceSrv.h +++ b/src/kernel/KernelKit/TraceSrv.h @@ -1,4 +1,4 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel @@ -11,8 +11,8 @@ namespace Kernel { namespace TraceSrv { - inline constexpr auto kDebugCmdLen = 256U; - inline constexpr auto kDebugPort = 51820; + inline constexpr auto kDebugCmdLen = 256U; + inline constexpr auto kDebugPort = 51820; inline constexpr auto kDebugMagic = "NE1.0.0;"; inline constexpr auto kDebugVersion = 0x0100; inline constexpr auto kDebugDelim = ';'; @@ -35,14 +35,22 @@ namespace TraceSrv { inline constexpr auto kDebugSymbolLen = 0x0100; - struct TRACE_SOURCE_MESSAGE { - Int32 fType; - Int32 fChksum; - Char fSymbol[kDebugSymbolLen]; + struct TRACE_SOURCE_MESSAGE final { + Int32 fType; + Int32 fChksum; + Char fSymbol[kDebugSymbolLen]; UInt32 fOffset; UInt32 fOpcode; }; + struct TRACE_STRING_MESSAGE final { + Int32 fType; + Int32 fChksum; + Int32 fLevel; + Int32 fLength; + Char fMessage[kDebugCmdLen]; + }; + } // namespace TraceSrv } // namespace Kernel |
