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.

119 lines
4.5 KiB

  1. //******************************************
  2. // Copyright (c) 1997-2001 Microsoft Corporation
  3. //
  4. // Default TMF definitions
  5. // This file is handbuilt to reflect the hardware rlated descriptive trace 'events'
  6. // that are included with every trace log file.
  7. //******************************************
  8. // The #typev statement may be used to convert
  9. // messages into user readable forms.
  10. // Wherever possible parameters are processed as their native format
  11. // and the %x!x! style of FormatMessage should be used.
  12. // (The #type statement is obsolete)
  13. //
  14. // Note Parameter %1 through %9 are predefined
  15. // Parameter is #typev
  16. // %1 GUID Friendly Name string
  17. // %2 GUID SubType Name string
  18. // %3 Thread ID LONG
  19. // %4 System Time String
  20. // %5 Kernel Time or User Time String
  21. // %6 User Time or NULL String
  22. // %7 Sequence Number LONG
  23. // %8 Process Id LONG
  24. // %9 CPU Number LONG
  25. // %10 and above are the user parameters
  26. // %254 Is Reserved
  27. // %255 Is reserved
  28. //
  29. // Note these parameters are always present, but may not be valid
  30. // depending on the source.
  31. //
  32. // User defined messages always start at message number 10
  33. // Messages 0 through 9 are reserved for system use.
  34. // Message number 255 is reserved.
  35. //
  36. // Available formats for user arguments are -
  37. //
  38. //Name Description Format
  39. //ItemChar CHAR
  40. //ItemUChar UCHAR
  41. //ItemCharShort USHORT
  42. //ItemCharSign SHORT
  43. //ItemShort Signed Short SHORT
  44. //ItemUShort Unsigned Short USHORT
  45. //ItemLong Signed Long, decoded as decimal LONG
  46. //ItemULong Unsigned Long, decoded as decimal ULONG
  47. //ItemULongX Unsigned Long, seen as hexadecimal ULONG
  48. //ItemLongLong Signed 64 Bit value LONGLONG
  49. //ItemULongLong Unsigned 64 Bit value ULONGLONG
  50. //ItemWString Unicode String, null terminated String
  51. //ItemPString Counted Ascii String String
  52. //ItemPWString Counted Unicode String String
  53. //ItemUnknown String
  54. 68fdd900-4a3e-11d1-84f4-0000f80464e3 EventTrace
  55. #typev Header 0 "EventTrace"
  56. {
  57. BufferSize, ItemULong //10
  58. Version, ItemULong //11
  59. BuildNumber, ItemULong //12
  60. NumProc, ItemULong //13
  61. EndTime, ItemULongLong //14
  62. TimerResolution,ItemULong //15
  63. MaxFileSize, ItemULong //16
  64. LogFileMode, ItemULongX //17
  65. BuffersWritten, ItemULong //18
  66. StartBuffers, ItemULong //19
  67. PointerSize, ItemULong //20
  68. EventsLost, ItemULong //21
  69. CPUSpeed, ItemULong //22
  70. LoggerName, ItemPtr //23
  71. LogFileName, ItemPtr //24
  72. TimeZone, ItemCharHidden[176] //25
  73. BootTime, ItemULongLong //26
  74. PerfFrequency, ItemULongLong //27
  75. StartTime, ItemULongLong //28
  76. ReservedFlags, ItemULongX //29
  77. BuffersLost, ItemULong //30
  78. }
  79. 01853a65-418f-4f36-aefc-dc0f1d2fd235 HWConfig
  80. #typev CPU 10 "%15!s! :: CPU # %11!d!, Speed %10!d!Mhz, Memory %12!d!K, PageSize %13!d!K, AllocationGranularity %14!d!"
  81. {
  82. MHz, ItemULong // 10
  83. NumberOfProcessors, ItemULong // 11
  84. MemSize, ItemULong // 12
  85. PageSize, ItemULong // 13
  86. AllocationGranularity, ItemULong // 14
  87. ComputerName, ItemWString // 15
  88. }
  89. #typev PhyDisk 11 "Phsical Disk %10!d!(%19!s!), SectorSize: %11!d!, SectorsperTrack: %12!d!, TracksPerCylinder %13!d! Cylinders %14!d!, SCSI (Port=%15!d!, Path %16!d!, Target=%17!d!, Lun=%18!d!)"
  90. {
  91. DiskNumber, ItemULong // 10
  92. BytesPerSector, ItemULong // 11
  93. SectorsPerTrack, ItemULong // 12
  94. TracksPerCylinder, ItemULong // 13
  95. Cylinders, ItemULongLong // 14
  96. SCSIPort, ItemULong // 15
  97. SCSIPath, ItemULong // 16
  98. SCSITarget, ItemULong // 17
  99. SCSILun, ItemULong // 18
  100. Manufacturer, ItemWString // 19
  101. }
  102. #typev LogDisk 12 "Logical Disk %10!d! StartOffset: %11!d!, Size: %12!d!"
  103. {
  104. DiskNumber, ItemULong // 10
  105. Pad, ItemULong // 11
  106. StartOffset, ItemULongLong // 12
  107. PartitionSize, ItemULongLong // 13
  108. }
  109. #typev NIC 13 "NIC %10!s!"
  110. {
  111. NICName, ItemWString // 10
  112. }