Leaked source code of windows server 2003
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.

181 lines
3.9 KiB

  1. /*++
  2. Copyright (c) 1998-2002 Microsoft Corporation
  3. Module Name:
  4. http.mof
  5. Abstract:
  6. This file defines the MOF class for the HTTP ETW Provider
  7. Author:
  8. Melur Raghuraman (mraghu) 30-Apr-2001
  9. Revision History:
  10. --*/
  11. #pragma classflags("forceupdate")
  12. #pragma namespace ("\\\\.\\Root\\WMI")
  13. //
  14. // HTTP ETW Trace Control Guid
  15. //
  16. [Dynamic,
  17. Description("HTTP Service Trace") : amended,
  18. Guid("{dd5ef90a-6398-47a4-ad34-4dcecdef795f}"),
  19. locale("MS\\0x409")]
  20. class HttpEtwTrace:EventTrace
  21. {
  22. };
  23. [Dynamic,
  24. Description("HTTP Request Trace Event"): amended,
  25. DisplayName("HttpRequest"): amended,
  26. Guid("{3c419e3d-1d18-415b-a91a-9b558938de4b}"),
  27. locale("MS\\0x409")]
  28. class HttpRequest:HttpEtwTrace
  29. {
  30. };
  31. [Dynamic,
  32. Description("HTTP Receives a Request") : amended,
  33. EventType(1),
  34. EventTypeName("Start") : amended
  35. ]
  36. class HttpReceiveRequest:HttpRequest
  37. {
  38. [WmiDataId(1),
  39. Description("Request Object") : amended,
  40. PointerType,
  41. read]
  42. uint32 RequestObj;
  43. [WmiDataId(2),
  44. Description("Remote Address Type") : amended,
  45. values {"IP", "APPLETALK", "NETBIOS", "802.2", "IP Version 6"},
  46. valueMap{"2", "16", "17", "18", "23"},
  47. extension("TDIAddrType"),
  48. read]
  49. uint16 AddressType;
  50. [WmiDataId(3),
  51. Description("Remote Address") : amended,
  52. read]
  53. object IpAddr;
  54. };
  55. [Dynamic,
  56. Description("HTTP Parses a Request") : amended,
  57. EventType(10),
  58. EventTypeName("Parse") : amended
  59. ]
  60. class HttpParseRequest:HttpRequest
  61. {
  62. [WmiDataId(1),
  63. Description("Request Object") : amended,
  64. PointerType,
  65. read]
  66. uint32 RequestObj;
  67. [WmiDataId(2),
  68. Description("Http Verb") : amended,
  69. read]
  70. uint32 HttpVerb;
  71. [WmiDataId(3),
  72. Description("Url") : amended,
  73. StringTermination("NullTerminated"),
  74. format("w"),
  75. read]
  76. string Url;
  77. };
  78. [Dynamic,
  79. Description("HTTP Delivers the Request to UMode") : amended,
  80. EventType(11),
  81. EventTypeName("Deliver") : amended
  82. ]
  83. class HttpDeliverRequest:HttpRequest
  84. {
  85. [WmiDataId(1),
  86. Description("Request Object") : amended,
  87. PointerType,
  88. read]
  89. uint32 RequestObj;
  90. [WmiDataId(2),
  91. Description("Request Id") : amended,
  92. read]
  93. uint64 RequestId;
  94. [WmiDataId(3),
  95. Description("Site Id") : amended,
  96. read]
  97. uint32 SiteId;
  98. [WmiDataId(4),
  99. Description("Application Pool Name") : amended,
  100. StringTermination("NullTerminated"),
  101. format("w"),
  102. read]
  103. string AppPoolName;
  104. [WmiDataId(5),
  105. Description("Url") : amended,
  106. StringTermination("NullTerminated"),
  107. format("w"),
  108. read]
  109. string Url;
  110. };
  111. [Dynamic,
  112. Description("HTTP Receives Response from UMode") : amended,
  113. EventType{12, 13, 16},
  114. EventTypeName{"RecvResp", "RecvBody", "FastResp"} : amended
  115. ]
  116. class HttpReceiveResponse:HttpRequest
  117. {
  118. [WmiDataId(1),
  119. Description("Request Id") : amended,
  120. read]
  121. uint64 RequestId;
  122. };
  123. [Dynamic,
  124. Description("HTTP Completes Send to Caller") : amended,
  125. EventType{2, 15, 17, 18, 19},
  126. EventTypeName{"End", "CacheAndSend", "FastSend", "ZeroSend", "SndError"} : amended
  127. ]
  128. class HttpSendComplete:HttpRequest
  129. {
  130. [WmiDataId(1),
  131. Description("Request Id") : amended,
  132. read]
  133. uint64 RequestId;
  134. [WmiDataId(2),
  135. Description("Http Status") : amended,
  136. read]
  137. uint16 HttpStatus;
  138. };
  139. [Dynamic,
  140. Description("HTTP Completes CachedSend to Caller") : amended,
  141. EventType(14),
  142. EventTypeName("CachedEnd") : amended
  143. ]
  144. class HttpCachedSend:HttpRequest
  145. {
  146. [WmiDataId(1),
  147. Description("Request Object") : amended,
  148. PointerType,
  149. read]
  150. uint32 RequestObj;
  151. [WmiDataId(2),
  152. Description("Site Id") : amended,
  153. read]
  154. uint32 SiteId;
  155. [WmiDataId(3),
  156. Description("Bytes Sent") : amended,
  157. read]
  158. uint32 BytesSent;
  159. };