2009-10-12 03:35:35 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Kernel
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2015-10-04 11:54:25 +00:00
|
|
|
* FILE: ntoskrnl/include/internal/kd64.h
|
2009-10-12 03:35:35 +00:00
|
|
|
* PURPOSE: Internal header for the KD64 Library
|
|
|
|
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
|
|
|
|
*/
|
|
|
|
|
2017-12-12 11:42:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
2009-11-02 17:45:51 +00:00
|
|
|
//
|
|
|
|
// Default size of the DbgPrint log buffer
|
|
|
|
//
|
|
|
|
#if DBG
|
2019-11-17 21:28:42 +00:00
|
|
|
#define KD_DEFAULT_LOG_BUFFER_SIZE 0x8000
|
2009-11-02 17:45:51 +00:00
|
|
|
#else
|
2019-11-17 21:28:42 +00:00
|
|
|
#define KD_DEFAULT_LOG_BUFFER_SIZE 0x1000
|
2009-11-02 17:45:51 +00:00
|
|
|
#endif
|
|
|
|
|
2022-11-23 17:19:41 +00:00
|
|
|
//
|
|
|
|
// Default size of the Message and Path buffers
|
|
|
|
//
|
|
|
|
#define KDP_MSG_BUFFER_SIZE 0x1000
|
|
|
|
|
2015-08-28 03:03:26 +00:00
|
|
|
//
|
|
|
|
// Maximum supported number of breakpoints
|
|
|
|
//
|
|
|
|
#define KD_BREAKPOINT_MAX 32
|
|
|
|
|
|
|
|
//
|
|
|
|
// Highest limit starting which we consider that breakpoint addresses
|
|
|
|
// are either in system space, or in user space but inside shared DLLs.
|
|
|
|
//
|
|
|
|
// I'm wondering whether this can be computed using MmHighestUserAddress
|
|
|
|
// or whether there is already some #define somewhere else...
|
|
|
|
// See http://www.drdobbs.com/windows/faster-dll-load-load/184416918
|
|
|
|
// and http://www.drdobbs.com/rebasing-win32-dlls/184416272
|
|
|
|
// for a tentative explanation.
|
|
|
|
//
|
|
|
|
#define KD_HIGHEST_USER_BREAKPOINT_ADDRESS (PVOID)0x60000000 // MmHighestUserAddress
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
// Breakpoint Status Flags
|
|
|
|
//
|
2015-08-28 03:03:26 +00:00
|
|
|
#define KD_BREAKPOINT_ACTIVE 0x01
|
|
|
|
#define KD_BREAKPOINT_PENDING 0x02
|
|
|
|
#define KD_BREAKPOINT_SUSPENDED 0x04
|
|
|
|
#define KD_BREAKPOINT_EXPIRED 0x08
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Structure for Breakpoints
|
|
|
|
//
|
|
|
|
typedef struct _BREAKPOINT_ENTRY
|
|
|
|
{
|
|
|
|
ULONG Flags;
|
2015-08-28 03:03:26 +00:00
|
|
|
ULONG_PTR DirectoryTableBase;
|
2009-10-12 03:35:35 +00:00
|
|
|
PVOID Address;
|
|
|
|
KD_BREAKPOINT_TYPE Content;
|
|
|
|
} BREAKPOINT_ENTRY, *PBREAKPOINT_ENTRY;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Debug and Multi-Processor Switch Routine Definitions
|
|
|
|
//
|
|
|
|
typedef
|
|
|
|
BOOLEAN
|
|
|
|
(NTAPI *PKDEBUG_ROUTINE)(
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN PCONTEXT Context,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN BOOLEAN SecondChance
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Initialization Routines
|
|
|
|
//
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdInitSystem(
|
2022-11-18 15:23:06 +00:00
|
|
|
_In_ ULONG BootPhase,
|
|
|
|
_In_opt_ PLOADER_PARAMETER_BLOCK LoaderBlock
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdUpdateDataBlock(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2009-10-17 14:31:38 +00:00
|
|
|
//
|
|
|
|
// Determines if the kernel debugger must handle a particular trap
|
|
|
|
//
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdIsThisAKdTrap(
|
|
|
|
IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN PCONTEXT Context,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode
|
|
|
|
);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
// Multi-Processor Switch Support
|
|
|
|
//
|
2023-12-07 19:27:44 +00:00
|
|
|
KCONTINUE_STATUS
|
2009-10-12 03:35:35 +00:00
|
|
|
NTAPI
|
2023-12-07 19:27:44 +00:00
|
|
|
KdReportProcessorChange(
|
|
|
|
VOID);
|
2009-10-12 03:35:35 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Time Slip Support
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpTimeSlipWork(
|
|
|
|
IN PVOID Context
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpTimeSlipDpcRoutine(
|
|
|
|
IN PKDPC Dpc,
|
|
|
|
IN PVOID DeferredContext,
|
|
|
|
IN PVOID SystemArgument1,
|
|
|
|
IN PVOID SystemArgument2
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Debug Trap Handlers
|
|
|
|
//
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpStub(
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN PCONTEXT ContextRecord,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN BOOLEAN SecondChanceException
|
|
|
|
);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpTrap(
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN PCONTEXT ContextRecord,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN BOOLEAN SecondChanceException
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Port Locking
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpPortLock(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpPortUnlock(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpPollBreakInWithPortLock(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
2009-10-17 14:31:38 +00:00
|
|
|
// Debugger Enter, Exit, Enable and Disable
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdEnterDebugger(
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdExitDebugger(
|
2009-11-08 01:13:49 +00:00
|
|
|
IN BOOLEAN Enable
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdEnableDebuggerWithLock(
|
|
|
|
IN BOOLEAN NeedLock
|
|
|
|
);
|
|
|
|
|
2009-10-17 14:31:38 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdDisableDebuggerWithLock(
|
|
|
|
IN BOOLEAN NeedLock
|
|
|
|
);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
// Debug Event Handlers
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpPrint(
|
2019-11-17 21:28:42 +00:00
|
|
|
_In_ ULONG ComponentId,
|
|
|
|
_In_ ULONG Level,
|
|
|
|
_In_reads_bytes_(Length) PCHAR String,
|
|
|
|
_In_ USHORT Length,
|
|
|
|
_In_ KPROCESSOR_MODE PreviousMode,
|
|
|
|
_In_ PKTRAP_FRAME TrapFrame,
|
|
|
|
_In_ PKEXCEPTION_FRAME ExceptionFrame,
|
|
|
|
_Out_ PBOOLEAN Handled
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
2009-10-23 22:51:39 +00:00
|
|
|
USHORT
|
2009-10-12 03:35:35 +00:00
|
|
|
NTAPI
|
|
|
|
KdpPrompt(
|
2019-11-17 21:28:42 +00:00
|
|
|
_In_reads_bytes_(PromptLength) PCHAR PromptString,
|
|
|
|
_In_ USHORT PromptLength,
|
|
|
|
_Out_writes_bytes_(MaximumResponseLength) PCHAR ResponseString,
|
|
|
|
_In_ USHORT MaximumResponseLength,
|
|
|
|
_In_ KPROCESSOR_MODE PreviousMode,
|
|
|
|
_In_ PKTRAP_FRAME TrapFrame,
|
|
|
|
_In_ PKEXCEPTION_FRAME ExceptionFrame
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpSymbol(
|
|
|
|
IN PSTRING DllPath,
|
2009-10-25 15:56:38 +00:00
|
|
|
IN PKD_SYMBOLS_INFO SymbolInfo,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN BOOLEAN Unload,
|
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN PCONTEXT ContextRecord,
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpCommandString(
|
2009-11-02 17:45:51 +00:00
|
|
|
IN PSTRING NameString,
|
|
|
|
IN PSTRING CommandString,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN KPROCESSOR_MODE PreviousMode,
|
|
|
|
IN PCONTEXT ContextRecord,
|
|
|
|
IN PKTRAP_FRAME TrapFrame,
|
|
|
|
IN PKEXCEPTION_FRAME ExceptionFrame
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// State Change Notifications
|
|
|
|
//
|
2009-11-02 17:45:51 +00:00
|
|
|
VOID
|
2009-10-12 03:35:35 +00:00
|
|
|
NTAPI
|
|
|
|
KdpReportLoadSymbolsStateChange(
|
|
|
|
IN PSTRING PathName,
|
|
|
|
IN PKD_SYMBOLS_INFO SymbolInfo,
|
|
|
|
IN BOOLEAN Unload,
|
|
|
|
IN OUT PCONTEXT Context
|
|
|
|
);
|
|
|
|
|
2009-11-02 17:45:51 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpReportCommandStringStateChange(
|
|
|
|
IN PSTRING NameString,
|
|
|
|
IN PSTRING CommandString,
|
|
|
|
IN OUT PCONTEXT Context
|
|
|
|
);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpReportExceptionStateChange(
|
|
|
|
IN PEXCEPTION_RECORD ExceptionRecord,
|
|
|
|
IN OUT PCONTEXT Context,
|
|
|
|
IN BOOLEAN SecondChanceException
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Breakpoint Support
|
|
|
|
//
|
2009-10-17 14:31:38 +00:00
|
|
|
ULONG
|
2009-10-12 03:35:35 +00:00
|
|
|
NTAPI
|
2009-10-17 14:31:38 +00:00
|
|
|
KdpAddBreakpoint(
|
|
|
|
IN PVOID Address
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
2015-08-28 03:03:26 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdSetOwedBreakpoints(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpDeleteBreakpoint(
|
|
|
|
IN ULONG BpEntry
|
|
|
|
);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpDeleteBreakpointRange(
|
|
|
|
IN PVOID Base,
|
|
|
|
IN PVOID Limit
|
|
|
|
);
|
|
|
|
|
2009-10-17 14:31:38 +00:00
|
|
|
VOID
|
2009-10-12 03:35:35 +00:00
|
|
|
NTAPI
|
2009-10-17 14:31:38 +00:00
|
|
|
KdpSuspendBreakPoint(
|
|
|
|
IN ULONG BpEntry
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpRestoreAllBreakpoints(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpSuspendAllBreakPoints(
|
|
|
|
VOID
|
2009-10-12 03:35:35 +00:00
|
|
|
);
|
|
|
|
|
2009-11-08 01:13:49 +00:00
|
|
|
//
|
|
|
|
// Routine to determine if it is safe to disable the debugger
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpAllowDisable(
|
|
|
|
VOID
|
|
|
|
);
|
|
|
|
|
2009-10-31 01:02:35 +00:00
|
|
|
//
|
|
|
|
// Safe memory read & write Support
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpCopyMemoryChunks(
|
2019-11-17 21:28:42 +00:00
|
|
|
_In_ ULONG64 Address,
|
|
|
|
_In_ PVOID Buffer,
|
|
|
|
_In_ ULONG TotalSize,
|
|
|
|
_In_ ULONG ChunkSize,
|
|
|
|
_In_ ULONG Flags,
|
|
|
|
_Out_opt_ PULONG ActualSize
|
2009-10-31 01:02:35 +00:00
|
|
|
);
|
|
|
|
|
2015-10-15 12:56:19 +00:00
|
|
|
//
|
|
|
|
// Internal memory handling routines for KD isolation
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpMoveMemory(
|
2019-11-17 21:28:42 +00:00
|
|
|
_In_ PVOID Destination,
|
|
|
|
_In_ PVOID Source,
|
|
|
|
_In_ SIZE_T Length
|
2015-10-15 12:56:19 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpZeroMemory(
|
2019-11-17 21:28:42 +00:00
|
|
|
_In_ PVOID Destination,
|
|
|
|
_In_ SIZE_T Length
|
2015-10-15 12:56:19 +00:00
|
|
|
);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
2009-11-02 17:45:51 +00:00
|
|
|
// Low Level Support Routines for the KD API
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
// Version
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpSysGetVersion(
|
|
|
|
IN PDBGKD_GET_VERSION64 Version
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Context
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpGetStateChange(
|
|
|
|
IN PDBGKD_MANIPULATE_STATE64 State,
|
|
|
|
IN PCONTEXT Context
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdpSetContextState(
|
2009-10-25 15:56:38 +00:00
|
|
|
IN PDBGKD_ANY_WAIT_STATE_CHANGE WaitStateChange,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN PCONTEXT Context
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// MSR
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysReadMsr(
|
|
|
|
IN ULONG Msr,
|
|
|
|
OUT PLARGE_INTEGER MsrValue
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysWriteMsr(
|
|
|
|
IN ULONG Msr,
|
|
|
|
IN PLARGE_INTEGER MsrValue
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Bus
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysReadBusData(
|
|
|
|
IN ULONG BusDataType,
|
|
|
|
IN ULONG BusNumber,
|
|
|
|
IN ULONG SlotNumber,
|
|
|
|
IN ULONG Offset,
|
2009-10-17 14:31:38 +00:00
|
|
|
IN PVOID Buffer,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ActualLength
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysWriteBusData(
|
|
|
|
IN ULONG BusDataType,
|
|
|
|
IN ULONG BusNumber,
|
|
|
|
IN ULONG SlotNumber,
|
|
|
|
IN ULONG Offset,
|
2009-10-17 14:31:38 +00:00
|
|
|
IN PVOID Buffer,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ActualLength
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Control Space
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysReadControlSpace(
|
|
|
|
IN ULONG Processor,
|
|
|
|
IN ULONG64 BaseAddress,
|
|
|
|
IN PVOID Buffer,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ActualLength
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysWriteControlSpace(
|
|
|
|
IN ULONG Processor,
|
|
|
|
IN ULONG64 BaseAddress,
|
|
|
|
IN PVOID Buffer,
|
|
|
|
IN ULONG Length,
|
|
|
|
OUT PULONG ActualLength
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// I/O Space
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysReadIoSpace(
|
|
|
|
IN ULONG InterfaceType,
|
|
|
|
IN ULONG BusNumber,
|
|
|
|
IN ULONG AddressSpace,
|
|
|
|
IN ULONG64 IoAddress,
|
2009-10-13 19:45:40 +00:00
|
|
|
IN PVOID DataValue,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN ULONG DataSize,
|
|
|
|
OUT PULONG ActualDataSize
|
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysWriteIoSpace(
|
|
|
|
IN ULONG InterfaceType,
|
|
|
|
IN ULONG BusNumber,
|
|
|
|
IN ULONG AddressSpace,
|
|
|
|
IN ULONG64 IoAddress,
|
2009-10-13 19:45:40 +00:00
|
|
|
IN PVOID DataValue,
|
2009-10-12 03:35:35 +00:00
|
|
|
IN ULONG DataSize,
|
|
|
|
OUT PULONG ActualDataSize
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Low Memory
|
|
|
|
//
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
KdpSysCheckLowMemory(
|
|
|
|
IN ULONG Flags
|
|
|
|
);
|
|
|
|
|
|
|
|
//
|
|
|
|
// Internal routine for sending strings directly to the debugger
|
|
|
|
//
|
|
|
|
VOID
|
|
|
|
__cdecl
|
|
|
|
KdpDprintf(
|
2023-03-22 16:02:19 +00:00
|
|
|
_In_ PCSTR Format,
|
2022-11-23 17:19:41 +00:00
|
|
|
...);
|
2009-10-12 03:35:35 +00:00
|
|
|
|
2021-06-22 17:46:27 +00:00
|
|
|
BOOLEAN
|
|
|
|
NTAPI
|
|
|
|
KdpPrintString(
|
|
|
|
_In_ PSTRING Output);
|
|
|
|
|
[NTOS:KD64] Implement KdLogDbgPrint() for the WinDbg !dbgprint command.
See this command's documentation:
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/-dbgprint
and the section "DbgPrint buffer and the debugger"
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/reading-and-filtering-debugging-messages#dbgprint-buffer-and-the-debugger
for more details.
- Loosely implement the function, based on our existing circular printout
buffers in kdio.c.
- Enable its usage in the KdpPrint() and KdpPrompt() functions.
Notice that this function will *only* capture the strings being sent **to**
the debugger, and not the strings the debugger itself produce. (This means
that we cannot use the KdPrintCircularBuffer as a replacement for our
KDBG dmesg one, for example...)
How to test:
Run ReactOS under WinDbg, and use the !dbgprint command to view the
buffer. You can also use the Memory Window, place yourself at the
address pointed by KdPrintCircularBuffer and KdPrintWritePointer, and
read its contents.
What you should observe:
Prior notice: The circular buffer in debug builds of ReactOS and Windows
is 0x8000 bytes large. In release builds, its size is down to 0x1000.
1- When you start e.g. the 2nd-stage GUI installation of ReactOS, going
past the initial "devices installation" and letting it stabilize on
the Welcome page, break into WinDbg and run the !dbgprint command. You
should notice that the end of its output is weirdly truncated, compared
to what has been actually emitted to the debug output. Comparing this
with the actual contents of the circular buffer (via Memory Window),
shows that the buffer contents is actually correct.
2- Copy all the text that has been output by the !dbgprint command and
paste it in an editor; count the number of all characters appearing +
newlines (only CR or LF), and observe that this number is "mysteriously"
equal to 16384 == 0x4000.
3- Continue running ReactOS installation for a little while, breaking back
back into WinDbg and looking at !dbgprint again. Its output seems to be
still stopping at the same place as before (but the actual buffer memory
contents shows otherwise). Continue running ROS installation, and break
into the debugger when ROS is about to restart. You should now observe
that the dbgprint buffer rolled over:
dd nt!KdPrintRolloverCount shows 1.
Carefully analysing the output of !dbgprint, however, you will notice
that it looks a bit garbage-y: the first part of the output is actually
truncated after 16384 characters, then you get a second part of the
buffer showing what ReactOS was printing while shutting down. Then
you get again what was shown at the top of the !dbgprint output.
(Of course, comparing with the actual contents of the circular buffer
in memory shows that its contents are fine...)
The reason of these strange observations, is because there is an intrinsic
bug in the !dbgprint command implementation (in kdexts.dll). Essentially,
it displays the contents of the circular buffer in two single dprintf()
calls: one for the "older" (bottom) part of the buffer:
[WritePointer, EndOfBuffer]
and one for the "newer" (upper) part of the buffer:
[CircularBuffer, WritePointer[ .
The first aspect of the bug (causing observation 3), is that those two
parts are not necessarily NULL-terminated strings (especially after
rollover), so for example, displaying the upper part of the buffer, will
potentially also display part of the buffer's bottom part.
The second aspect of the bug (explaining observations 1 and 2), is due
to the implementation of the dprintf() function (callback in dbgenv.dll).
There, it uses a fixed-sized buffer of size 0x4000 == 16384 characters.
Since the output of the circular buffer is not done by little chunks,
but by the two large parts, if any of those are larger than 0x4000 they
get truncated on display.
(This last observation is confirmed in a completely different context by
https://community.osr.com/discussion/112439/dprintf-s-max-string-length .)
2022-11-23 22:24:59 +00:00
|
|
|
VOID
|
|
|
|
NTAPI
|
|
|
|
KdLogDbgPrint(
|
|
|
|
_In_ PSTRING String);
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
//
|
|
|
|
// Global KD Data
|
|
|
|
//
|
|
|
|
extern DBGKD_GET_VERSION64 KdVersionBlock;
|
|
|
|
extern KDDEBUGGER_DATA64 KdDebuggerDataBlock;
|
|
|
|
extern LIST_ENTRY KdpDebuggerDataListHead;
|
|
|
|
extern KSPIN_LOCK KdpDataSpinLock;
|
|
|
|
extern LARGE_INTEGER KdPerformanceCounterRate;
|
|
|
|
extern LARGE_INTEGER KdTimerStart;
|
|
|
|
extern ULONG KdDisableCount;
|
|
|
|
extern KD_CONTEXT KdpContext;
|
|
|
|
extern PKDEBUG_ROUTINE KiDebugRoutine;
|
|
|
|
extern BOOLEAN KdBreakAfterSymbolLoad;
|
|
|
|
extern BOOLEAN KdPitchDebugger;
|
|
|
|
extern BOOLEAN KdAutoEnableOnEvent;
|
2009-10-17 14:31:38 +00:00
|
|
|
extern BOOLEAN KdBlockEnable;
|
|
|
|
extern BOOLEAN KdIgnoreUmExceptions;
|
2009-10-12 03:35:35 +00:00
|
|
|
extern BOOLEAN KdPreviouslyEnabled;
|
|
|
|
extern BOOLEAN KdpDebuggerStructuresInitialized;
|
|
|
|
extern BOOLEAN KdEnteredDebugger;
|
|
|
|
extern KDPC KdpTimeSlipDpc;
|
|
|
|
extern KTIMER KdpTimeSlipTimer;
|
|
|
|
extern WORK_QUEUE_ITEM KdpTimeSlipWorkItem;
|
|
|
|
extern LONG KdpTimeSlipPending;
|
|
|
|
extern PKEVENT KdpTimeSlipEvent;
|
|
|
|
extern KSPIN_LOCK KdpTimeSlipEventLock;
|
|
|
|
extern BOOLEAN KdpPortLocked;
|
|
|
|
extern BOOLEAN KdpControlCPressed;
|
2009-11-02 17:45:51 +00:00
|
|
|
extern BOOLEAN KdpContextSent;
|
2009-10-12 03:35:35 +00:00
|
|
|
extern KSPIN_LOCK KdpDebuggerLock;
|
|
|
|
extern LARGE_INTEGER KdTimerStop, KdTimerStart, KdTimerDifference;
|
2019-11-17 16:16:55 +00:00
|
|
|
|
2022-11-23 17:19:41 +00:00
|
|
|
extern CHAR KdpMessageBuffer[KDP_MSG_BUFFER_SIZE];
|
|
|
|
extern CHAR KdpPathBuffer[KDP_MSG_BUFFER_SIZE];
|
[NTOS:KD64] Implement KdLogDbgPrint() for the WinDbg !dbgprint command.
See this command's documentation:
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/-dbgprint
and the section "DbgPrint buffer and the debugger"
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/reading-and-filtering-debugging-messages#dbgprint-buffer-and-the-debugger
for more details.
- Loosely implement the function, based on our existing circular printout
buffers in kdio.c.
- Enable its usage in the KdpPrint() and KdpPrompt() functions.
Notice that this function will *only* capture the strings being sent **to**
the debugger, and not the strings the debugger itself produce. (This means
that we cannot use the KdPrintCircularBuffer as a replacement for our
KDBG dmesg one, for example...)
How to test:
Run ReactOS under WinDbg, and use the !dbgprint command to view the
buffer. You can also use the Memory Window, place yourself at the
address pointed by KdPrintCircularBuffer and KdPrintWritePointer, and
read its contents.
What you should observe:
Prior notice: The circular buffer in debug builds of ReactOS and Windows
is 0x8000 bytes large. In release builds, its size is down to 0x1000.
1- When you start e.g. the 2nd-stage GUI installation of ReactOS, going
past the initial "devices installation" and letting it stabilize on
the Welcome page, break into WinDbg and run the !dbgprint command. You
should notice that the end of its output is weirdly truncated, compared
to what has been actually emitted to the debug output. Comparing this
with the actual contents of the circular buffer (via Memory Window),
shows that the buffer contents is actually correct.
2- Copy all the text that has been output by the !dbgprint command and
paste it in an editor; count the number of all characters appearing +
newlines (only CR or LF), and observe that this number is "mysteriously"
equal to 16384 == 0x4000.
3- Continue running ReactOS installation for a little while, breaking back
back into WinDbg and looking at !dbgprint again. Its output seems to be
still stopping at the same place as before (but the actual buffer memory
contents shows otherwise). Continue running ROS installation, and break
into the debugger when ROS is about to restart. You should now observe
that the dbgprint buffer rolled over:
dd nt!KdPrintRolloverCount shows 1.
Carefully analysing the output of !dbgprint, however, you will notice
that it looks a bit garbage-y: the first part of the output is actually
truncated after 16384 characters, then you get a second part of the
buffer showing what ReactOS was printing while shutting down. Then
you get again what was shown at the top of the !dbgprint output.
(Of course, comparing with the actual contents of the circular buffer
in memory shows that its contents are fine...)
The reason of these strange observations, is because there is an intrinsic
bug in the !dbgprint command implementation (in kdexts.dll). Essentially,
it displays the contents of the circular buffer in two single dprintf()
calls: one for the "older" (bottom) part of the buffer:
[WritePointer, EndOfBuffer]
and one for the "newer" (upper) part of the buffer:
[CircularBuffer, WritePointer[ .
The first aspect of the bug (causing observation 3), is that those two
parts are not necessarily NULL-terminated strings (especially after
rollover), so for example, displaying the upper part of the buffer, will
potentially also display part of the buffer's bottom part.
The second aspect of the bug (explaining observations 1 and 2), is due
to the implementation of the dprintf() function (callback in dbgenv.dll).
There, it uses a fixed-sized buffer of size 0x4000 == 16384 characters.
Since the output of the circular buffer is not done by little chunks,
but by the two large parts, if any of those are larger than 0x4000 they
get truncated on display.
(This last observation is confirmed in a completely different context by
https://community.osr.com/discussion/112439/dprintf-s-max-string-length .)
2022-11-23 22:24:59 +00:00
|
|
|
|
2009-11-02 17:45:51 +00:00
|
|
|
extern CHAR KdPrintDefaultCircularBuffer[KD_DEFAULT_LOG_BUFFER_SIZE];
|
[NTOS:KD64] Implement KdLogDbgPrint() for the WinDbg !dbgprint command.
See this command's documentation:
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/-dbgprint
and the section "DbgPrint buffer and the debugger"
https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/reading-and-filtering-debugging-messages#dbgprint-buffer-and-the-debugger
for more details.
- Loosely implement the function, based on our existing circular printout
buffers in kdio.c.
- Enable its usage in the KdpPrint() and KdpPrompt() functions.
Notice that this function will *only* capture the strings being sent **to**
the debugger, and not the strings the debugger itself produce. (This means
that we cannot use the KdPrintCircularBuffer as a replacement for our
KDBG dmesg one, for example...)
How to test:
Run ReactOS under WinDbg, and use the !dbgprint command to view the
buffer. You can also use the Memory Window, place yourself at the
address pointed by KdPrintCircularBuffer and KdPrintWritePointer, and
read its contents.
What you should observe:
Prior notice: The circular buffer in debug builds of ReactOS and Windows
is 0x8000 bytes large. In release builds, its size is down to 0x1000.
1- When you start e.g. the 2nd-stage GUI installation of ReactOS, going
past the initial "devices installation" and letting it stabilize on
the Welcome page, break into WinDbg and run the !dbgprint command. You
should notice that the end of its output is weirdly truncated, compared
to what has been actually emitted to the debug output. Comparing this
with the actual contents of the circular buffer (via Memory Window),
shows that the buffer contents is actually correct.
2- Copy all the text that has been output by the !dbgprint command and
paste it in an editor; count the number of all characters appearing +
newlines (only CR or LF), and observe that this number is "mysteriously"
equal to 16384 == 0x4000.
3- Continue running ReactOS installation for a little while, breaking back
back into WinDbg and looking at !dbgprint again. Its output seems to be
still stopping at the same place as before (but the actual buffer memory
contents shows otherwise). Continue running ROS installation, and break
into the debugger when ROS is about to restart. You should now observe
that the dbgprint buffer rolled over:
dd nt!KdPrintRolloverCount shows 1.
Carefully analysing the output of !dbgprint, however, you will notice
that it looks a bit garbage-y: the first part of the output is actually
truncated after 16384 characters, then you get a second part of the
buffer showing what ReactOS was printing while shutting down. Then
you get again what was shown at the top of the !dbgprint output.
(Of course, comparing with the actual contents of the circular buffer
in memory shows that its contents are fine...)
The reason of these strange observations, is because there is an intrinsic
bug in the !dbgprint command implementation (in kdexts.dll). Essentially,
it displays the contents of the circular buffer in two single dprintf()
calls: one for the "older" (bottom) part of the buffer:
[WritePointer, EndOfBuffer]
and one for the "newer" (upper) part of the buffer:
[CircularBuffer, WritePointer[ .
The first aspect of the bug (causing observation 3), is that those two
parts are not necessarily NULL-terminated strings (especially after
rollover), so for example, displaying the upper part of the buffer, will
potentially also display part of the buffer's bottom part.
The second aspect of the bug (explaining observations 1 and 2), is due
to the implementation of the dprintf() function (callback in dbgenv.dll).
There, it uses a fixed-sized buffer of size 0x4000 == 16384 characters.
Since the output of the circular buffer is not done by little chunks,
but by the two large parts, if any of those are larger than 0x4000 they
get truncated on display.
(This last observation is confirmed in a completely different context by
https://community.osr.com/discussion/112439/dprintf-s-max-string-length .)
2022-11-23 22:24:59 +00:00
|
|
|
extern PCHAR KdPrintWritePointer;
|
|
|
|
extern ULONG KdPrintRolloverCount;
|
|
|
|
extern PCHAR KdPrintCircularBuffer;
|
|
|
|
extern ULONG KdPrintBufferSize;
|
|
|
|
extern ULONG KdPrintBufferChanges;
|
|
|
|
extern KSPIN_LOCK KdpPrintSpinLock;
|
|
|
|
|
2009-10-12 03:35:35 +00:00
|
|
|
extern BREAKPOINT_ENTRY KdpBreakpointTable[KD_BREAKPOINT_MAX];
|
|
|
|
extern KD_BREAKPOINT_TYPE KdpBreakpointInstruction;
|
|
|
|
extern BOOLEAN KdpOweBreakpoint;
|
|
|
|
extern BOOLEAN BreakpointsSuspended;
|
|
|
|
extern ULONG KdpNumInternalBreakpoints;
|
[HAL/NDK]
- Make Vector parameter in HalEnableSystemInterrupt, HalDisableSystemInterrupt and HalBeginSystemInterrupt an ULONG, not an UCHAR
[NDK]
- 64bit fixes for HANDLE_TABLE, KPROCESS, SECTION_IMAGE_INFORMATION, MMADDRESS_LIST, MMVAD_FLAGS, MMVAD, MMVAD_LONG, MMVAD_SHORT, MEMORY_DESCRIPTOR, MEMORY_ALLOCATION_DESCRIPTOR, LdrVerifyMappedImageMatchesChecksum
- KDPC_DATA::DpcQueueDepth is signed on amd64, unsigned on x86
[NTOSKRNL]
- Fix hundreds of MSVC and amd64 warnings
- add a pragma message to FstubFixupEfiPartition, since it looks broken
- Move portable Ke constants from <arch>/cpu.c to krnlinit.c
- Fixed a bug in amd64 KiGeneralProtectionFaultHandler
svn path=/trunk/; revision=53734
2011-09-18 13:11:45 +00:00
|
|
|
extern ULONG_PTR KdpCurrentSymbolStart, KdpCurrentSymbolEnd;
|
2009-10-12 03:35:35 +00:00
|
|
|
extern ULONG TraceDataBuffer[40];
|
|
|
|
extern ULONG TraceDataBufferPosition;
|
2019-11-17 16:16:55 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Debug Filter Component Table
|
|
|
|
//
|
2020-07-18 17:42:30 +00:00
|
|
|
#define MAX_KD_COMPONENT_TABLE_ENTRIES (DPFLTR_ENDOFTABLE_ID + 1)
|
2019-11-17 16:16:55 +00:00
|
|
|
extern ULONG KdComponentTableSize;
|
|
|
|
extern PULONG KdComponentTable[MAX_KD_COMPONENT_TABLE_ENTRIES];
|
|
|
|
|
|
|
|
//
|
|
|
|
// Debug Filter Masks
|
|
|
|
//
|
|
|
|
extern ULONG Kd_WIN2000_Mask;
|
|
|
|
extern ULONG Kd_SYSTEM_Mask;
|
|
|
|
extern ULONG Kd_SMSS_Mask;
|
|
|
|
extern ULONG Kd_SETUP_Mask;
|
|
|
|
extern ULONG Kd_NTFS_Mask;
|
|
|
|
extern ULONG Kd_FSTUB_Mask;
|
|
|
|
extern ULONG Kd_CRASHDUMP_Mask;
|
|
|
|
extern ULONG Kd_CDAUDIO_Mask;
|
|
|
|
extern ULONG Kd_CDROM_Mask;
|
|
|
|
extern ULONG Kd_CLASSPNP_Mask;
|
|
|
|
extern ULONG Kd_DISK_Mask;
|
|
|
|
extern ULONG Kd_REDBOOK_Mask;
|
|
|
|
extern ULONG Kd_STORPROP_Mask;
|
|
|
|
extern ULONG Kd_SCSIPORT_Mask;
|
|
|
|
extern ULONG Kd_SCSIMINIPORT_Mask;
|
|
|
|
extern ULONG Kd_CONFIG_Mask;
|
|
|
|
extern ULONG Kd_I8042PRT_Mask;
|
|
|
|
extern ULONG Kd_SERMOUSE_Mask;
|
|
|
|
extern ULONG Kd_LSERMOUS_Mask;
|
|
|
|
extern ULONG Kd_KBDHID_Mask;
|
|
|
|
extern ULONG Kd_MOUHID_Mask;
|
|
|
|
extern ULONG Kd_KBDCLASS_Mask;
|
|
|
|
extern ULONG Kd_MOUCLASS_Mask;
|
|
|
|
extern ULONG Kd_TWOTRACK_Mask;
|
|
|
|
extern ULONG Kd_WMILIB_Mask;
|
|
|
|
extern ULONG Kd_ACPI_Mask;
|
|
|
|
extern ULONG Kd_AMLI_Mask;
|
|
|
|
extern ULONG Kd_HALIA64_Mask;
|
|
|
|
extern ULONG Kd_VIDEO_Mask;
|
|
|
|
extern ULONG Kd_SVCHOST_Mask;
|
|
|
|
extern ULONG Kd_VIDEOPRT_Mask;
|
|
|
|
extern ULONG Kd_TCPIP_Mask;
|
|
|
|
extern ULONG Kd_DMSYNTH_Mask;
|
|
|
|
extern ULONG Kd_NTOSPNP_Mask;
|
|
|
|
extern ULONG Kd_FASTFAT_Mask;
|
|
|
|
extern ULONG Kd_SAMSS_Mask;
|
|
|
|
extern ULONG Kd_PNPMGR_Mask;
|
|
|
|
extern ULONG Kd_NETAPI_Mask;
|
|
|
|
extern ULONG Kd_SCSERVER_Mask;
|
|
|
|
extern ULONG Kd_SCCLIENT_Mask;
|
|
|
|
extern ULONG Kd_SERIAL_Mask;
|
|
|
|
extern ULONG Kd_SERENUM_Mask;
|
|
|
|
extern ULONG Kd_UHCD_Mask;
|
|
|
|
extern ULONG Kd_RPCPROXY_Mask;
|
|
|
|
extern ULONG Kd_AUTOCHK_Mask;
|
|
|
|
extern ULONG Kd_DCOMSS_Mask;
|
|
|
|
extern ULONG Kd_UNIMODEM_Mask;
|
|
|
|
extern ULONG Kd_SIS_Mask;
|
|
|
|
extern ULONG Kd_FLTMGR_Mask;
|
|
|
|
extern ULONG Kd_WMICORE_Mask;
|
|
|
|
extern ULONG Kd_BURNENG_Mask;
|
|
|
|
extern ULONG Kd_IMAPI_Mask;
|
|
|
|
extern ULONG Kd_SXS_Mask;
|
|
|
|
extern ULONG Kd_FUSION_Mask;
|
|
|
|
extern ULONG Kd_IDLETASK_Mask;
|
|
|
|
extern ULONG Kd_SOFTPCI_Mask;
|
|
|
|
extern ULONG Kd_TAPE_Mask;
|
|
|
|
extern ULONG Kd_MCHGR_Mask;
|
|
|
|
extern ULONG Kd_IDEP_Mask;
|
|
|
|
extern ULONG Kd_PCIIDE_Mask;
|
|
|
|
extern ULONG Kd_FLOPPY_Mask;
|
|
|
|
extern ULONG Kd_FDC_Mask;
|
|
|
|
extern ULONG Kd_TERMSRV_Mask;
|
|
|
|
extern ULONG Kd_W32TIME_Mask;
|
|
|
|
extern ULONG Kd_PREFETCHER_Mask;
|
|
|
|
extern ULONG Kd_RSFILTER_Mask;
|
|
|
|
extern ULONG Kd_FCPORT_Mask;
|
|
|
|
extern ULONG Kd_PCI_Mask;
|
|
|
|
extern ULONG Kd_DMIO_Mask;
|
|
|
|
extern ULONG Kd_DMCONFIG_Mask;
|
|
|
|
extern ULONG Kd_DMADMIN_Mask;
|
|
|
|
extern ULONG Kd_WSOCKTRANSPORT_Mask;
|
|
|
|
extern ULONG Kd_VSS_Mask;
|
|
|
|
extern ULONG Kd_PNPMEM_Mask;
|
|
|
|
extern ULONG Kd_PROCESSOR_Mask;
|
|
|
|
extern ULONG Kd_DMSERVER_Mask;
|
|
|
|
extern ULONG Kd_SR_Mask;
|
|
|
|
extern ULONG Kd_INFINIBAND_Mask;
|
|
|
|
extern ULONG Kd_IHVDRIVER_Mask;
|
|
|
|
extern ULONG Kd_IHVVIDEO_Mask;
|
|
|
|
extern ULONG Kd_IHVAUDIO_Mask;
|
|
|
|
extern ULONG Kd_IHVNETWORK_Mask;
|
|
|
|
extern ULONG Kd_IHVSTREAMING_Mask;
|
|
|
|
extern ULONG Kd_IHVBUS_Mask;
|
|
|
|
extern ULONG Kd_HPS_Mask;
|
|
|
|
extern ULONG Kd_RTLTHREADPOOL_Mask;
|
|
|
|
extern ULONG Kd_LDR_Mask;
|
|
|
|
extern ULONG Kd_TCPIP6_Mask;
|
|
|
|
extern ULONG Kd_ISAPNP_Mask;
|
|
|
|
extern ULONG Kd_SHPC_Mask;
|
|
|
|
extern ULONG Kd_STORPORT_Mask;
|
|
|
|
extern ULONG Kd_STORMINIPORT_Mask;
|
|
|
|
extern ULONG Kd_PRINTSPOOLER_Mask;
|
|
|
|
extern ULONG Kd_VSSDYNDISK_Mask;
|
|
|
|
extern ULONG Kd_VERIFIER_Mask;
|
|
|
|
extern ULONG Kd_VDS_Mask;
|
|
|
|
extern ULONG Kd_VDSBAS_Mask;
|
|
|
|
extern ULONG Kd_VDSDYN_Mask; // Specified in Vista+
|
|
|
|
extern ULONG Kd_VDSDYNDR_Mask;
|
|
|
|
extern ULONG Kd_VDSLDR_Mask; // Specified in Vista+
|
|
|
|
extern ULONG Kd_VDSUTIL_Mask;
|
|
|
|
extern ULONG Kd_DFRGIFC_Mask;
|
|
|
|
extern ULONG Kd_DEFAULT_Mask;
|
|
|
|
extern ULONG Kd_MM_Mask;
|
|
|
|
extern ULONG Kd_DFSC_Mask;
|
|
|
|
extern ULONG Kd_WOW64_Mask;
|
|
|
|
//
|
|
|
|
// Components specified in Vista+, some of which we also use in ReactOS
|
|
|
|
//
|
|
|
|
extern ULONG Kd_ALPC_Mask;
|
|
|
|
extern ULONG Kd_WDI_Mask;
|
|
|
|
extern ULONG Kd_PERFLIB_Mask;
|
|
|
|
extern ULONG Kd_KTM_Mask;
|
|
|
|
extern ULONG Kd_IOSTRESS_Mask;
|
|
|
|
extern ULONG Kd_HEAP_Mask;
|
|
|
|
extern ULONG Kd_WHEA_Mask;
|
|
|
|
extern ULONG Kd_USERGDI_Mask;
|
|
|
|
extern ULONG Kd_MMCSS_Mask;
|
|
|
|
extern ULONG Kd_TPM_Mask;
|
|
|
|
extern ULONG Kd_THREADORDER_Mask;
|
|
|
|
extern ULONG Kd_ENVIRON_Mask;
|
|
|
|
extern ULONG Kd_EMS_Mask;
|
|
|
|
extern ULONG Kd_WDT_Mask;
|
|
|
|
extern ULONG Kd_FVEVOL_Mask;
|
|
|
|
extern ULONG Kd_NDIS_Mask;
|
|
|
|
extern ULONG Kd_NVCTRACE_Mask;
|
|
|
|
extern ULONG Kd_LUAFV_Mask;
|
|
|
|
extern ULONG Kd_APPCOMPAT_Mask;
|
|
|
|
extern ULONG Kd_USBSTOR_Mask;
|
|
|
|
extern ULONG Kd_SBP2PORT_Mask;
|
|
|
|
extern ULONG Kd_COVERAGE_Mask;
|
|
|
|
extern ULONG Kd_CACHEMGR_Mask;
|
|
|
|
extern ULONG Kd_MOUNTMGR_Mask;
|
|
|
|
extern ULONG Kd_CFR_Mask;
|
|
|
|
extern ULONG Kd_TXF_Mask;
|
|
|
|
extern ULONG Kd_KSECDD_Mask;
|
|
|
|
extern ULONG Kd_FLTREGRESS_Mask;
|
|
|
|
extern ULONG Kd_MPIO_Mask;
|
|
|
|
extern ULONG Kd_MSDSM_Mask;
|
|
|
|
extern ULONG Kd_UDFS_Mask;
|
|
|
|
extern ULONG Kd_PSHED_Mask;
|
|
|
|
extern ULONG Kd_STORVSP_Mask;
|
|
|
|
extern ULONG Kd_LSASS_Mask;
|
|
|
|
extern ULONG Kd_SSPICLI_Mask;
|
|
|
|
extern ULONG Kd_CNG_Mask;
|
|
|
|
extern ULONG Kd_EXFAT_Mask;
|
|
|
|
extern ULONG Kd_FILETRACE_Mask;
|
|
|
|
extern ULONG Kd_XSAVE_Mask;
|
|
|
|
extern ULONG Kd_SE_Mask;
|
|
|
|
extern ULONG Kd_DRIVEEXTENDER_Mask;
|
2020-07-18 14:25:45 +00:00
|
|
|
//
|
|
|
|
// Components specified in Windows 8
|
|
|
|
//
|
|
|
|
extern ULONG Kd_POWER_Mask;
|
|
|
|
extern ULONG Kd_CRASHDUMPXHCI_Mask;
|
|
|
|
extern ULONG Kd_GPIO_Mask;
|
|
|
|
extern ULONG Kd_REFS_Mask;
|
|
|
|
extern ULONG Kd_WER_Mask;
|
|
|
|
//
|
|
|
|
// Components specified in Windows 10
|
|
|
|
//
|
|
|
|
extern ULONG Kd_CAPIMG_Mask;
|
|
|
|
extern ULONG Kd_VPCI_Mask;
|
|
|
|
extern ULONG Kd_STORAGECLASSMEMORY_Mask;
|
|
|
|
extern ULONG Kd_FSLIB_Mask;
|