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.

223 lines
7.9 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. ctrstshr.cxx
  5. Abstract:
  6. This file contains array descriptions of counters
  7. that are needed for handling worker processes counters.
  8. Author:
  9. Emily Kruglick (EmilyK) 19-Sept-2000
  10. Revision History:
  11. --*/
  12. #include "iis.h"
  13. #include <winsock2.h>
  14. #include <ws2tcpip.h>
  15. #include "http.h"
  16. #include "httpp.h"
  17. #include "wpcounters.h"
  18. //
  19. // Every entry here has a corrosponding entry in the equivalent
  20. // enum and structure in IISCOUNTERS.h
  21. //
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif // __cplusplus
  25. //
  26. // Used By WAS and the WP to figure out offset, and sizes as well
  27. // as whether or not to zero a field.
  28. //
  29. HTTP_PROP_DESC aIISWPGlobalDescription[] =
  30. {
  31. { RTL_FIELD_SIZE(IISWPGlobalCounters, CurrentFileCacheMemoryUsage),
  32. FIELD_OFFSET(IISWPGlobalCounters, CurrentFileCacheMemoryUsage),
  33. FALSE },
  34. { RTL_FIELD_SIZE(IISWPGlobalCounters, MaxFileCacheMemoryUsage),
  35. FIELD_OFFSET(IISWPGlobalCounters, MaxFileCacheMemoryUsage),
  36. FALSE },
  37. { RTL_FIELD_SIZE(IISWPGlobalCounters, CurrentFilesCached),
  38. FIELD_OFFSET(IISWPGlobalCounters, CurrentFilesCached),
  39. FALSE },
  40. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalFilesCached),
  41. FIELD_OFFSET(IISWPGlobalCounters, TotalFilesCached),
  42. TRUE },
  43. { RTL_FIELD_SIZE(IISWPGlobalCounters, FileCacheHits),
  44. FIELD_OFFSET(IISWPGlobalCounters, FileCacheHits),
  45. TRUE },
  46. { RTL_FIELD_SIZE(IISWPGlobalCounters, FileCacheMisses),
  47. FIELD_OFFSET(IISWPGlobalCounters, FileCacheMisses),
  48. TRUE },
  49. { RTL_FIELD_SIZE(IISWPGlobalCounters, FileCacheFlushes),
  50. FIELD_OFFSET(IISWPGlobalCounters, FileCacheFlushes),
  51. TRUE },
  52. { RTL_FIELD_SIZE(IISWPGlobalCounters, ActiveFlushedFiles),
  53. FIELD_OFFSET(IISWPGlobalCounters, ActiveFlushedFiles),
  54. FALSE },
  55. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalFlushedFiles),
  56. FIELD_OFFSET(IISWPGlobalCounters, TotalFlushedFiles),
  57. TRUE },
  58. { RTL_FIELD_SIZE(IISWPGlobalCounters, CurrentUrisCached),
  59. FIELD_OFFSET(IISWPGlobalCounters, CurrentUrisCached),
  60. FALSE },
  61. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalUrisCached),
  62. FIELD_OFFSET(IISWPGlobalCounters, TotalUrisCached),
  63. TRUE },
  64. { RTL_FIELD_SIZE(IISWPGlobalCounters, UriCacheHits),
  65. FIELD_OFFSET(IISWPGlobalCounters, UriCacheHits),
  66. TRUE },
  67. { RTL_FIELD_SIZE(IISWPGlobalCounters, UriCacheMisses),
  68. FIELD_OFFSET(IISWPGlobalCounters, UriCacheMisses),
  69. TRUE },
  70. { RTL_FIELD_SIZE(IISWPGlobalCounters, UriCacheFlushes),
  71. FIELD_OFFSET(IISWPGlobalCounters, UriCacheFlushes),
  72. TRUE },
  73. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalFlushedUris),
  74. FIELD_OFFSET(IISWPGlobalCounters, TotalFlushedUris),
  75. TRUE },
  76. { RTL_FIELD_SIZE(IISWPGlobalCounters, CurrentBlobsCached),
  77. FIELD_OFFSET(IISWPGlobalCounters, CurrentBlobsCached),
  78. FALSE },
  79. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalBlobsCached),
  80. FIELD_OFFSET(IISWPGlobalCounters, TotalBlobsCached),
  81. TRUE },
  82. { RTL_FIELD_SIZE(IISWPGlobalCounters, BlobCacheHits),
  83. FIELD_OFFSET(IISWPGlobalCounters, BlobCacheHits),
  84. TRUE },
  85. { RTL_FIELD_SIZE(IISWPGlobalCounters, BlobCacheMisses),
  86. FIELD_OFFSET(IISWPGlobalCounters, BlobCacheMisses),
  87. TRUE },
  88. { RTL_FIELD_SIZE(IISWPGlobalCounters, BlobCacheFlushes),
  89. FIELD_OFFSET(IISWPGlobalCounters, BlobCacheFlushes),
  90. TRUE },
  91. { RTL_FIELD_SIZE(IISWPGlobalCounters, TotalFlushedBlobs),
  92. FIELD_OFFSET(IISWPGlobalCounters, TotalFlushedBlobs),
  93. TRUE }
  94. };
  95. //
  96. // Used by WAS and WP to navigate the IISWPSiteCounters structure.
  97. //
  98. HTTP_PROP_DESC aIISWPSiteDescription[] =
  99. {
  100. { RTL_FIELD_SIZE(IISWPSiteCounters, FilesSent),
  101. FIELD_OFFSET(IISWPSiteCounters, FilesSent),
  102. TRUE },
  103. { RTL_FIELD_SIZE(IISWPSiteCounters, FilesReceived),
  104. FIELD_OFFSET(IISWPSiteCounters, FilesReceived),
  105. TRUE },
  106. { RTL_FIELD_SIZE(IISWPSiteCounters, FilesTransferred),
  107. FIELD_OFFSET(IISWPSiteCounters, FilesTransferred),
  108. TRUE },
  109. { RTL_FIELD_SIZE(IISWPSiteCounters, CurrentAnonUsers),
  110. FIELD_OFFSET(IISWPSiteCounters, CurrentAnonUsers),
  111. FALSE },
  112. { RTL_FIELD_SIZE(IISWPSiteCounters, CurrentNonAnonUsers),
  113. FIELD_OFFSET(IISWPSiteCounters, CurrentNonAnonUsers),
  114. FALSE },
  115. { RTL_FIELD_SIZE(IISWPSiteCounters, AnonUsers),
  116. FIELD_OFFSET(IISWPSiteCounters, AnonUsers),
  117. TRUE },
  118. { RTL_FIELD_SIZE(IISWPSiteCounters, NonAnonUsers),
  119. FIELD_OFFSET(IISWPSiteCounters, NonAnonUsers),
  120. TRUE },
  121. { RTL_FIELD_SIZE(IISWPSiteCounters, MaxAnonUsers),
  122. FIELD_OFFSET(IISWPSiteCounters, MaxAnonUsers),
  123. FALSE },
  124. { RTL_FIELD_SIZE(IISWPSiteCounters, MaxNonAnonUsers),
  125. FIELD_OFFSET(IISWPSiteCounters, MaxNonAnonUsers),
  126. FALSE },
  127. { RTL_FIELD_SIZE(IISWPSiteCounters, LogonAttempts),
  128. FIELD_OFFSET(IISWPSiteCounters, LogonAttempts),
  129. TRUE },
  130. { RTL_FIELD_SIZE(IISWPSiteCounters, GetReqs),
  131. FIELD_OFFSET(IISWPSiteCounters, GetReqs),
  132. TRUE },
  133. { RTL_FIELD_SIZE(IISWPSiteCounters, OptionsReqs),
  134. FIELD_OFFSET(IISWPSiteCounters, OptionsReqs),
  135. TRUE },
  136. { RTL_FIELD_SIZE(IISWPSiteCounters, PostReqs),
  137. FIELD_OFFSET(IISWPSiteCounters, PostReqs),
  138. TRUE },
  139. { RTL_FIELD_SIZE(IISWPSiteCounters, HeadReqs),
  140. FIELD_OFFSET(IISWPSiteCounters, HeadReqs),
  141. TRUE },
  142. { RTL_FIELD_SIZE(IISWPSiteCounters, PutReqs),
  143. FIELD_OFFSET(IISWPSiteCounters, PutReqs),
  144. TRUE },
  145. { RTL_FIELD_SIZE(IISWPSiteCounters, DeleteReqs),
  146. FIELD_OFFSET(IISWPSiteCounters, DeleteReqs),
  147. TRUE },
  148. { RTL_FIELD_SIZE(IISWPSiteCounters, TraceReqs),
  149. FIELD_OFFSET(IISWPSiteCounters, TraceReqs),
  150. TRUE },
  151. { RTL_FIELD_SIZE(IISWPSiteCounters, MoveReqs),
  152. FIELD_OFFSET(IISWPSiteCounters, MoveReqs),
  153. TRUE },
  154. { RTL_FIELD_SIZE(IISWPSiteCounters, CopyReqs),
  155. FIELD_OFFSET(IISWPSiteCounters, CopyReqs),
  156. TRUE },
  157. { RTL_FIELD_SIZE(IISWPSiteCounters, MkcolReqs),
  158. FIELD_OFFSET(IISWPSiteCounters, MkcolReqs),
  159. TRUE },
  160. { RTL_FIELD_SIZE(IISWPSiteCounters, PropfindReqs),
  161. FIELD_OFFSET(IISWPSiteCounters, PropfindReqs),
  162. TRUE },
  163. { RTL_FIELD_SIZE(IISWPSiteCounters, ProppatchReqs),
  164. FIELD_OFFSET(IISWPSiteCounters, ProppatchReqs),
  165. TRUE },
  166. { RTL_FIELD_SIZE(IISWPSiteCounters, SearchReqs),
  167. FIELD_OFFSET(IISWPSiteCounters, SearchReqs),
  168. TRUE },
  169. { RTL_FIELD_SIZE(IISWPSiteCounters, LockReqs),
  170. FIELD_OFFSET(IISWPSiteCounters, LockReqs),
  171. TRUE },
  172. { RTL_FIELD_SIZE(IISWPSiteCounters, UnlockReqs),
  173. FIELD_OFFSET(IISWPSiteCounters, UnlockReqs),
  174. TRUE },
  175. { RTL_FIELD_SIZE(IISWPSiteCounters, OtherReqs),
  176. FIELD_OFFSET(IISWPSiteCounters, OtherReqs),
  177. TRUE },
  178. { RTL_FIELD_SIZE(IISWPSiteCounters, CurrentCgiReqs),
  179. FIELD_OFFSET(IISWPSiteCounters, CurrentCgiReqs),
  180. FALSE },
  181. { RTL_FIELD_SIZE(IISWPSiteCounters, CgiReqs),
  182. FIELD_OFFSET(IISWPSiteCounters, CgiReqs),
  183. TRUE },
  184. { RTL_FIELD_SIZE(IISWPSiteCounters, MaxCgiReqs),
  185. FIELD_OFFSET(IISWPSiteCounters, MaxCgiReqs),
  186. FALSE },
  187. { RTL_FIELD_SIZE(IISWPSiteCounters, CurrentIsapiExtReqs),
  188. FIELD_OFFSET(IISWPSiteCounters, CurrentIsapiExtReqs),
  189. FALSE },
  190. { RTL_FIELD_SIZE(IISWPSiteCounters, IsapiExtReqs),
  191. FIELD_OFFSET(IISWPSiteCounters, IsapiExtReqs),
  192. TRUE },
  193. { RTL_FIELD_SIZE(IISWPSiteCounters, MaxIsapiExtReqs),
  194. FIELD_OFFSET(IISWPSiteCounters, MaxIsapiExtReqs),
  195. FALSE },
  196. { RTL_FIELD_SIZE(IISWPSiteCounters, NotFoundErrors),
  197. FIELD_OFFSET(IISWPSiteCounters, NotFoundErrors),
  198. TRUE },
  199. { RTL_FIELD_SIZE(IISWPSiteCounters, LockedErrors),
  200. FIELD_OFFSET(IISWPSiteCounters, LockedErrors),
  201. TRUE },
  202. };
  203. #ifdef __cplusplus
  204. } // extern "C"
  205. #endif // __cplusplus