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.

69 lines
1.5 KiB

  1. /*++
  2. Module Name:
  3. ktracep.h
  4. Abstract:
  5. Private include for ktrace.c and ktrace.mac to use.
  6. Author:
  7. Roy D'Souza (rdsouza@gomez.sc.intel.com) 22-April-1996
  8. Environment:
  9. User or Kernel mode.
  10. Revision History:
  11. --*/
  12. /* The number of slots in the trace */
  13. #define KTRACE_LOG_SIZE 0x400
  14. /* The record size in bytes
  15. IF YOU MAKE A CHANGE TO THE KTRACE TYPEDEF IN KTRACE.C
  16. YOU NEED TO RE-CALCULATE THE SIZE IN BYTES AND UPDATE THE
  17. FOLLOWING: */
  18. #define RECORD_SIZE_IN_BYTES 0x70
  19. /* The maximum value a module ID can take */
  20. #define MAX_MODULE_ID 0x80000000
  21. /* The maximum value a message type can take */
  22. #define MAX_MESSAGE_TYPE 0x10000
  23. /* The maximum value a message index can take */
  24. #define MAX_MESSAGE_INDEX 0x10000
  25. /***********************************************************************
  26. Message Types:
  27. ***********************************************************************/
  28. #define MESSAGE_INFORMATION 0x1
  29. #define MESSAGE_WARNING 0x2
  30. #define MESSAGE_ERROR 0x4
  31. /***********************************************************************
  32. Module IDs:
  33. ***********************************************************************/
  34. #define MODULE_INIT 0x1
  35. #define MODULE_KE 0x2
  36. #define MODULE_EX 0x4
  37. #define MODULE_MM 0x8
  38. #define MODULE_LPC 0x10
  39. #define MODULE_SE 0x20
  40. #define MODULE_TDI 0x40
  41. #define MODULE_RTL 0x80
  42. #define MODULE_PO 0x100
  43. #define MODULE_PNP 0x200
  44. #define DRIVER_1 0x10000000
  45. #define DRIVER_2 0x20000000
  46. #define DRIVER_3 0x40000000
  47. #define DRIVER_4 0x80000000