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.

108 lines
3.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATACACH.h
  5. Abstract:
  6. Header file for the Windows NT Cache Performance counters.
  7. This file contains definitions to construct the dynamic data
  8. which is returned by the Configuration Registry. Data from
  9. various system API calls is placed into the structures shown
  10. here.
  11. Author:
  12. Bob Watson 28-Oct-1996
  13. Revision History:
  14. --*/
  15. #ifndef _DATACACH_H_
  16. #define _DATACACH_H_
  17. //
  18. // Cache Performance Object
  19. //
  20. typedef struct _CACHE_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE CacheObjectType;
  22. PERF_COUNTER_DEFINITION cdDataMaps;
  23. PERF_COUNTER_DEFINITION cdSyncDataMaps;
  24. PERF_COUNTER_DEFINITION cdAsyncDataMaps;
  25. PERF_COUNTER_DEFINITION cdDataMapHits;
  26. PERF_COUNTER_DEFINITION cdDataMapHitsBase;
  27. PERF_COUNTER_DEFINITION cdDataMapPins;
  28. PERF_COUNTER_DEFINITION cdDataMapPinsBase;
  29. PERF_COUNTER_DEFINITION cdPinReads;
  30. PERF_COUNTER_DEFINITION cdSyncPinReads;
  31. PERF_COUNTER_DEFINITION cdAsyncPinReads;
  32. PERF_COUNTER_DEFINITION cdPinReadHits;
  33. PERF_COUNTER_DEFINITION cdPinReadHitsBase;
  34. PERF_COUNTER_DEFINITION cdCopyReads;
  35. PERF_COUNTER_DEFINITION cdSyncCopyReads;
  36. PERF_COUNTER_DEFINITION cdAsyncCopyReads;
  37. PERF_COUNTER_DEFINITION cdCopyReadHits;
  38. PERF_COUNTER_DEFINITION cdCopyReadHitsBase;
  39. PERF_COUNTER_DEFINITION cdMdlReads;
  40. PERF_COUNTER_DEFINITION cdSyncMdlReads;
  41. PERF_COUNTER_DEFINITION cdAsyncMdlReads;
  42. PERF_COUNTER_DEFINITION cdMdlReadHits;
  43. PERF_COUNTER_DEFINITION cdMdlReadHitsBase;
  44. PERF_COUNTER_DEFINITION cdReadAheads;
  45. PERF_COUNTER_DEFINITION cdFastReads;
  46. PERF_COUNTER_DEFINITION cdSyncFastReads;
  47. PERF_COUNTER_DEFINITION cdAsyncFastReads;
  48. PERF_COUNTER_DEFINITION cdFastReadResourceMiss;
  49. PERF_COUNTER_DEFINITION cdFastReadNotPossibles;
  50. PERF_COUNTER_DEFINITION cdLazyWriteFlushes;
  51. PERF_COUNTER_DEFINITION cdLazyWritePages;
  52. PERF_COUNTER_DEFINITION cdDataFlushes;
  53. PERF_COUNTER_DEFINITION cdDataPages;
  54. } CACHE_DATA_DEFINITION, * PCACHE_DATA_DEFINITION;
  55. typedef struct _CACHE_COUNTER_DATA {
  56. PERF_COUNTER_BLOCK CounterBlock;
  57. DWORD DataMaps;
  58. DWORD SyncDataMaps;
  59. DWORD AsyncDataMaps;
  60. DWORD DataMapHits;
  61. DWORD DataMapHitsBase;
  62. DWORD DataMapPins;
  63. DWORD DataMapPinsBase;
  64. DWORD PinReads;
  65. DWORD SyncPinReads;
  66. DWORD AsyncPinReads;
  67. DWORD PinReadHits;
  68. DWORD PinReadHitsBase;
  69. DWORD CopyReads;
  70. DWORD SyncCopyReads;
  71. DWORD AsyncCopyReads;
  72. DWORD CopyReadHits;
  73. DWORD CopyReadHitsBase;
  74. DWORD MdlReads;
  75. DWORD SyncMdlReads;
  76. DWORD AsyncMdlReads;
  77. DWORD MdlReadHits;
  78. DWORD MdlReadHitsBase;
  79. DWORD ReadAheads;
  80. DWORD FastReads;
  81. DWORD SyncFastReads;
  82. DWORD AsyncFastReads;
  83. DWORD FastReadResourceMiss;
  84. DWORD FastReadNotPossibles;
  85. DWORD LazyWriteFlushes;
  86. DWORD LazyWritePages;
  87. DWORD DataFlushes;
  88. DWORD DataPages;
  89. } CACHE_COUNTER_DATA, * PCACHE_COUNTER_DATA;
  90. extern CACHE_DATA_DEFINITION CacheDataDefinition;
  91. #endif _DATACACH_H_
  92.