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.

296 lines
7.2 KiB

  1. //
  2. // NWData.c
  3. //
  4. // This file contains the initalized Object and counter definition for NetWare
  5. // redirector performance extensible DLL.
  6. // This would be the place to add more counters and the change the definitions
  7. // of the current ones.
  8. //
  9. #include "windows.h"
  10. #include <winperf.h>
  11. #include "NWPerf.h"
  12. NW_DATA_DEFINITION NWDataDefinition = {
  13. { sizeof(NW_DATA_DEFINITION)+
  14. SIZE_OF_COUNTER_BLOCK, // Total Bytes ( Size of this header, the counter definitions
  15. // and the size of the actual counter data )
  16. sizeof(NW_DATA_DEFINITION), // Definition length ( This header and the counter definitions )
  17. sizeof(PERF_OBJECT_TYPE), // Header Length ( This header )
  18. NWOBJ, // Object Name Title Index
  19. 0, // Object Name Title
  20. NWOBJ, // Object Help Title Index
  21. 0, // Object Help Title
  22. PERF_DETAIL_NOVICE, // Detail Level
  23. (sizeof(NW_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  24. sizeof(PERF_COUNTER_DEFINITION), // Number of Counters
  25. 0, // Default Counters
  26. -1, // On NT5, signifies no instances
  27. 0, // Code Page
  28. {0,0}, // Perf Time
  29. {0,0} // Perf Freq
  30. },
  31. { sizeof(PERF_COUNTER_DEFINITION),
  32. 388,
  33. 0,
  34. 389,
  35. 0,
  36. -4,
  37. PERF_DETAIL_NOVICE,
  38. PERF_COUNTER_BULK_COUNT,
  39. sizeof(LARGE_INTEGER),
  40. BYTES_OFFSET
  41. },
  42. { sizeof(PERF_COUNTER_DEFINITION),
  43. 406,
  44. 0,
  45. 391,
  46. 0,
  47. 0,
  48. PERF_DETAIL_NOVICE,
  49. PERF_COUNTER_COUNTER,
  50. sizeof(DWORD),
  51. IO_OPERATIONS_OFFSET
  52. },
  53. { sizeof(PERF_COUNTER_DEFINITION),
  54. 400,
  55. 0,
  56. 401,
  57. 0,
  58. -1,
  59. PERF_DETAIL_NOVICE,
  60. PERF_COUNTER_BULK_COUNT,
  61. sizeof(LARGE_INTEGER),
  62. PACKETS_OFFSET
  63. },
  64. { sizeof(PERF_COUNTER_DEFINITION),
  65. 264,
  66. 0,
  67. 265,
  68. 0,
  69. -4,
  70. PERF_DETAIL_ADVANCED,
  71. PERF_COUNTER_BULK_COUNT,
  72. sizeof(LARGE_INTEGER),
  73. BYTES_RECEIVED_OFFSET
  74. },
  75. { sizeof(PERF_COUNTER_DEFINITION),
  76. 266,
  77. 0,
  78. 267,
  79. 0,
  80. -1,
  81. PERF_DETAIL_ADVANCED,
  82. PERF_COUNTER_BULK_COUNT,
  83. sizeof(LARGE_INTEGER),
  84. NCPS_RECEIVED_OFFSET
  85. },
  86. { sizeof(PERF_COUNTER_DEFINITION),
  87. 276,
  88. 0,
  89. 277,
  90. 0,
  91. -4,
  92. PERF_DETAIL_ADVANCED,
  93. PERF_COUNTER_BULK_COUNT,
  94. sizeof(LARGE_INTEGER),
  95. BYTES_TRANSMITTED_OFFSET
  96. },
  97. { sizeof(PERF_COUNTER_DEFINITION),
  98. 278,
  99. 0,
  100. 279,
  101. 0,
  102. -1,
  103. PERF_DETAIL_ADVANCED,
  104. PERF_COUNTER_BULK_COUNT,
  105. sizeof(LARGE_INTEGER),
  106. NCPS_TRANSMITTED_OFFSET
  107. },
  108. { sizeof(PERF_COUNTER_DEFINITION),
  109. 10,
  110. 0,
  111. 289,
  112. 0,
  113. 0,
  114. PERF_DETAIL_NOVICE,
  115. PERF_COUNTER_COUNTER,
  116. sizeof(DWORD),
  117. RDR_READ_OPERATIONS_OFFSET
  118. },
  119. { sizeof(PERF_COUNTER_DEFINITION),
  120. 290,
  121. 0,
  122. 291,
  123. 0,
  124. -1,
  125. PERF_DETAIL_ADVANCED,
  126. PERF_COUNTER_COUNTER,
  127. sizeof(DWORD),
  128. RANDOM_READ_OPERATIONS_OFFSET
  129. },
  130. { sizeof(PERF_COUNTER_DEFINITION),
  131. 292,
  132. 0,
  133. 293,
  134. 0,
  135. -1,
  136. PERF_DETAIL_ADVANCED,
  137. PERF_COUNTER_COUNTER,
  138. sizeof(DWORD),
  139. READ_NCPS_OFFSET
  140. },
  141. { sizeof(PERF_COUNTER_DEFINITION),
  142. 12,
  143. 0,
  144. 299,
  145. 0,
  146. 0,
  147. PERF_DETAIL_NOVICE,
  148. PERF_COUNTER_COUNTER,
  149. sizeof(DWORD),
  150. RDR_WRITE_OPERATIONS_OFFSET
  151. },
  152. { sizeof(PERF_COUNTER_DEFINITION),
  153. 300,
  154. 0,
  155. 301,
  156. 0,
  157. -1,
  158. PERF_DETAIL_ADVANCED,
  159. PERF_COUNTER_COUNTER,
  160. sizeof(DWORD),
  161. RANDOM_WRITE_OPERATIONS_OFFSET
  162. },
  163. { sizeof(PERF_COUNTER_DEFINITION),
  164. 302,
  165. 0,
  166. 303,
  167. 0,
  168. -1,
  169. PERF_DETAIL_ADVANCED,
  170. PERF_COUNTER_COUNTER,
  171. sizeof(DWORD),
  172. WRITE_NCPS_OFFSET
  173. },
  174. { sizeof(PERF_COUNTER_DEFINITION),
  175. 314,
  176. 0,
  177. 315,
  178. 0,
  179. 0,
  180. PERF_DETAIL_NOVICE,
  181. PERF_COUNTER_RAWCOUNT,
  182. sizeof(DWORD),
  183. SESSIONS_OFFSET
  184. },
  185. { sizeof(PERF_COUNTER_DEFINITION),
  186. 316,
  187. 0,
  188. 317,
  189. 0,
  190. 0,
  191. PERF_DETAIL_ADVANCED,
  192. PERF_COUNTER_RAWCOUNT,
  193. sizeof(DWORD),
  194. RECONNECTS_OFFSET
  195. },
  196. { sizeof(PERF_COUNTER_DEFINITION),
  197. CONNECT_2X_ID,
  198. 0,
  199. CONNECT_2X_ID,
  200. 0,
  201. 0,
  202. PERF_DETAIL_ADVANCED,
  203. PERF_COUNTER_RAWCOUNT,
  204. sizeof(DWORD),
  205. NETWARE_2X_CONNECTS_OFFSET
  206. },
  207. { sizeof(PERF_COUNTER_DEFINITION),
  208. CONNECT_3X_ID,
  209. 0,
  210. CONNECT_3X_ID,
  211. 0,
  212. 0,
  213. PERF_DETAIL_ADVANCED,
  214. PERF_COUNTER_RAWCOUNT,
  215. sizeof(DWORD),
  216. NETWARE_3X_CONNECTS_OFFSET
  217. },
  218. { sizeof(PERF_COUNTER_DEFINITION),
  219. CONNECT_4X_ID,
  220. 0,
  221. CONNECT_4X_ID,
  222. 0,
  223. 0,
  224. PERF_DETAIL_ADVANCED,
  225. PERF_COUNTER_RAWCOUNT,
  226. sizeof(DWORD),
  227. NETWARE_4X_CONNECTS_OFFSET
  228. },
  229. { sizeof(PERF_COUNTER_DEFINITION),
  230. 326,
  231. 0,
  232. 327,
  233. 0,
  234. 0,
  235. PERF_DETAIL_ADVANCED,
  236. PERF_COUNTER_RAWCOUNT,
  237. sizeof(DWORD),
  238. SERVER_DISCONNECTS_OFFSET
  239. },
  240. { sizeof(PERF_COUNTER_DEFINITION),
  241. PACKET_BURST_READ_ID,
  242. 0,
  243. PACKET_BURST_READ_ID,
  244. 0,
  245. 0,
  246. PERF_DETAIL_ADVANCED,
  247. PERF_COUNTER_COUNTER,
  248. sizeof(DWORD),
  249. PACKET_BURST_READ_OFFSET
  250. },
  251. { sizeof(PERF_COUNTER_DEFINITION),
  252. PACKET_BURST_READ_TO_ID,
  253. 0,
  254. PACKET_BURST_READ_TO_ID,
  255. 0,
  256. 0,
  257. PERF_DETAIL_ADVANCED,
  258. PERF_COUNTER_COUNTER,
  259. sizeof(DWORD),
  260. PACKET_BURST_READ_TO_OFFSET
  261. },
  262. { sizeof(PERF_COUNTER_DEFINITION),
  263. PACKET_BURST_WRITE_ID,
  264. 0,
  265. PACKET_BURST_WRITE_ID,
  266. 0,
  267. 0,
  268. PERF_DETAIL_ADVANCED,
  269. PERF_COUNTER_COUNTER,
  270. sizeof(DWORD),
  271. PACKET_BURST_WRITE_OFFSET
  272. },
  273. { sizeof(PERF_COUNTER_DEFINITION),
  274. PACKET_BURST_WRITE_TO_ID,
  275. 0,
  276. PACKET_BURST_WRITE_TO_ID,
  277. 0,
  278. 0,
  279. PERF_DETAIL_ADVANCED,
  280. PERF_COUNTER_COUNTER,
  281. sizeof(DWORD),
  282. PACKET_BURST_WRITE_TO_OFFSET
  283. },
  284. { sizeof(PERF_COUNTER_DEFINITION),
  285. PACKET_BURST_IO_ID,
  286. 0,
  287. PACKET_BURST_IO_ID,
  288. 0,
  289. 0,
  290. PERF_DETAIL_ADVANCED,
  291. PERF_COUNTER_COUNTER,
  292. sizeof(DWORD),
  293. PACKET_BURST_IO_OFFSET
  294. }
  295. };