Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. DbgExt.h
  5. Abstract:
  6. Mpeg WinDbg debugger Extensions include
  7. Author:
  8. Paul Lever (a-paull) 2-Feb-1995
  9. Environment:
  10. Kernel mode only
  11. Revision History:
  12. --*/
  13. #define TRACE_BUFFER_SIZE 255 // size of individual trace entry
  14. typedef struct _TRACE_RECORD {
  15. ULONGLONG now; // time stamp
  16. CHAR desc[TRACE_BUFFER_SIZE]; // message
  17. } TRACE_RECORD, *PTRACE_RECORD;
  18. typedef struct _DEBUG_TRACE_INFO {
  19. LONG TraceHead; // head of trace circular buffer
  20. LONG Traced; // count of traced items
  21. PTRACE_RECORD pTraceBuffer; // ptr to trace buffer
  22. } DEBUG_TRACE_INFO, *PDEBUG_TRACE_INFO;
  23. typedef struct _MPEG_DEBUG_EXTENSION {
  24. PVOID pDriverObject; // pointer to this drivers Object
  25. DEBUG_TRACE_INFO TraceInfo; // trace buffer structure
  26. } MPEG_DEBUG_EXTENSION, *PMPEG_DEBUG_EXTENSION;
  27. #define SPRINT_TRACE_MASK 0x3ff
  28. #define SPRINT_MAX_ENTRIES SPRINT_TRACE_MASK+1
  29. void
  30. CircularBufferTrace( char *format, ...);
  31. #if DBG
  32. extern MPEG_DEBUG_EXTENSION MpegDebugExtension;
  33. #define TRACE(_d_)\
  34. CircularBufferTrace _d_
  35. #else
  36. #define TRACE(_d_)
  37. #endif