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.

148 lines
3.3 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dataimag.c
  5. Abstract:
  6. a file containing the constant data structures used by the Performance
  7. Monitor data for the Image Details Performance data objects
  8. Created:
  9. Bob Watson 22-Oct-1996
  10. Revision History:
  11. None.
  12. --*/
  13. //
  14. // Include Files
  15. //
  16. #include <windows.h>
  17. #include <winperf.h>
  18. #include <ntprfctr.h>
  19. #include <perfutil.h>
  20. #include "dataimag.h"
  21. // dummy variable for field sizing.
  22. static IMAGE_COUNTER_DATA icd;
  23. //
  24. // Constant structure initializations
  25. // defined in dataimag.h
  26. //
  27. IMAGE_DATA_DEFINITION ImageDataDefinition = {
  28. { 0,
  29. sizeof (IMAGE_DATA_DEFINITION),
  30. sizeof (PERF_OBJECT_TYPE),
  31. IMAGE_OBJECT_TITLE_INDEX,
  32. 0,
  33. 741,
  34. 0,
  35. PERF_DETAIL_WIZARD,
  36. (sizeof(IMAGE_DATA_DEFINITION) - sizeof (PERF_OBJECT_TYPE))/
  37. sizeof(PERF_COUNTER_DEFINITION),
  38. 0,
  39. 0,
  40. UNICODE_CODE_PAGE,
  41. {0L,0L},
  42. {0L,0L}
  43. },
  44. { sizeof(PERF_COUNTER_DEFINITION),
  45. 788,
  46. 0,
  47. 789,
  48. 0,
  49. 0,
  50. PERF_DETAIL_WIZARD,
  51. PERF_COUNTER_LARGE_RAWCOUNT,
  52. sizeof(icd.ImageAddrNoAccess),
  53. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrNoAccess
  54. },
  55. { sizeof(PERF_COUNTER_DEFINITION),
  56. 790,
  57. 0,
  58. 791,
  59. 0,
  60. 0,
  61. PERF_DETAIL_WIZARD,
  62. PERF_COUNTER_LARGE_RAWCOUNT,
  63. sizeof(icd.ImageAddrReadOnly),
  64. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrReadOnly
  65. },
  66. { sizeof(PERF_COUNTER_DEFINITION),
  67. 792,
  68. 0,
  69. 793,
  70. 0,
  71. 0,
  72. PERF_DETAIL_WIZARD,
  73. PERF_COUNTER_LARGE_RAWCOUNT,
  74. sizeof(icd.ImageAddrReadWrite),
  75. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrReadWrite
  76. },
  77. { sizeof(PERF_COUNTER_DEFINITION),
  78. 794,
  79. 0,
  80. 795,
  81. 0,
  82. 0,
  83. PERF_DETAIL_WIZARD,
  84. PERF_COUNTER_LARGE_RAWCOUNT,
  85. sizeof(icd.ImageAddrWriteCopy),
  86. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrWriteCopy
  87. },
  88. { sizeof(PERF_COUNTER_DEFINITION),
  89. 796,
  90. 0,
  91. 797,
  92. 0,
  93. 0,
  94. PERF_DETAIL_WIZARD,
  95. PERF_COUNTER_LARGE_RAWCOUNT,
  96. sizeof(icd.ImageAddrExecute),
  97. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrExecute
  98. },
  99. { sizeof(PERF_COUNTER_DEFINITION),
  100. 798,
  101. 0,
  102. 799,
  103. 0,
  104. 0,
  105. PERF_DETAIL_WIZARD,
  106. PERF_COUNTER_LARGE_RAWCOUNT,
  107. sizeof(icd.ImageAddrExecuteReadOnly),
  108. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrExecuteReadOnly
  109. },
  110. { sizeof(PERF_COUNTER_DEFINITION),
  111. 800,
  112. 0,
  113. 801,
  114. 0,
  115. 0,
  116. PERF_DETAIL_WIZARD,
  117. PERF_COUNTER_LARGE_RAWCOUNT,
  118. sizeof(icd.ImageAddrExecuteReadWrite),
  119. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrExecuteReadWrite
  120. },
  121. { sizeof(PERF_COUNTER_DEFINITION),
  122. 802,
  123. 0,
  124. 803,
  125. 0,
  126. 0,
  127. PERF_DETAIL_WIZARD,
  128. PERF_COUNTER_LARGE_RAWCOUNT,
  129. sizeof(icd.ImageAddrExecuteWriteCopy),
  130. (DWORD)(ULONG_PTR)&((IMAGE_COUNTER_DATA *)0)->ImageAddrExecuteWriteCopy
  131. }
  132. };
  133.