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.

687 lines
25 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. mcaia64.mof
  5. Abstract:
  6. This file defines the permament subscriptions needed to reflect
  7. the WMI MCA events into the eventlog.
  8. Revision History:
  9. --*/
  10. //
  11. // Machine Check Abort
  12. //
  13. #if defined(_IA64_) || defined(_X86_) || defined(_AMD64_)
  14. //
  15. // Define the permament eventlog event subscriptions
  16. //
  17. // The WMI eventlog consumer provider is a facility that is built into WMI
  18. // that will generate an eventlog message whenever a specific WMI event is
  19. // received. This can be useful to circumvent the limited size of an eventlog
  20. // that can be generated from kernel mode.
  21. //
  22. // In order to set this up you need an instnace of an __EventFilter, an
  23. // instance of an NTEventLogEventConsumer and an instance of
  24. // __FilterToConsumerBinding.
  25. //
  26. // __EventFilter describes the WQL query that specifies a set of events that
  27. // trigger generation of an eventlog.
  28. //
  29. // NTEventLogEventConsumer describes the type of eventlog event that should
  30. // be generated and some of the parameters for the eventlog. In general the
  31. // properties follow the parameters of the ReportEvent api. The
  32. // InsertionStringTemplates property is an array of strings that specify
  33. // what strings should be used as replacable parameters in the eventlog
  34. // message. If the string is withing % then it specifies that the value for
  35. // the replacable string should come from that property in the event that
  36. // triggered the eventlog generation. The NameOfRawDataProperty property
  37. // specifies the property from the event that triggered the eventlog
  38. // generation whose value is used as the additional data in the
  39. // generated eventlog.
  40. //
  41. // __FilterToConsumerBinding specifies a binding between the __EventFilter
  42. // instance and the NTEventLogEventConsumer instance. Basically it assigns
  43. // which eventlog should be generated from which event triggers.
  44. //
  45. // Note that this macro should be used only within the root\subscriptions
  46. // namespace.
  47. //
  48. //
  49. // UNIQUE_NAME must be a universally unique within the root\subscription
  50. // namespace. It is a unique name the event to eventlog
  51. // instances.
  52. //
  53. // QUNIQUE_NAME is the same as UNIQUE_NAME except it is surrounded by
  54. // double quotes
  55. //
  56. // EVENT_ID is the eventlog id for the eventlog that is generated
  57. //
  58. // EVENT_TYPE is the eventlog type for the eventlog that is generated
  59. //
  60. #define EVENTLOG_SUCCESS 0x0000
  61. #define EVENTLOG_ERROR_TYPE 0x0001
  62. #define EVENTLOG_WARNING_TYPE 0x0002
  63. #define EVENTLOG_INFORMATION_TYPE 0x0004
  64. #define EVENTLOG_AUDIT_SUCCESS 0x0008
  65. #define EVENTLOG_AUDIT_FAILURE 0x0010
  66. //
  67. // QUERY is the WQL that when succeeded will trigger eventlog generation
  68. //
  69. // SOURCE is the name of the eventlog source which is used to generate the
  70. // eventlog
  71. //
  72. // EXTRA_DATA is the name of the property in the trigger event whose value
  73. // is used as the additional data within the eventlog
  74. //
  75. // INSERTION_STRING_COUNT is the number of eventlog insertion strings
  76. //
  77. // INSERTION1 to INSERTION5 is the insertion string text for each insertion
  78. // string. If the value is within % then the value of the
  79. // property with that name is used as the insertion string
  80. //
  81. #define DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(UNIQUE_NAME, \
  82. QUNIQUE_NAME, \
  83. EVENT_ID, \
  84. EVENT_TYPE, \
  85. QUERY, \
  86. SOURCE, \
  87. EXTRA_DATA, \
  88. INSERTION_STRING_COUNT, \
  89. INSERTION1, \
  90. INSERTION2, \
  91. INSERTION3, \
  92. INSERTION4, \
  93. INSERTION5) \
  94. instance of __EventFilter as $Filter##UNIQUE_NAME \
  95. { \
  96. EventNamespace = "\\\\.\\root\\wmi"; \
  97. Name = ##QUNIQUE_NAME; \
  98. Query = ##QUERY; \
  99. QueryLanguage = "WQL"; \
  100. }; \
  101. \
  102. instance of NTEventLogEventConsumer as $Consumer##UNIQUE_NAME \
  103. { \
  104. Category = 0; \
  105. Name = QUNIQUE_NAME; \
  106. \
  107. EventType = ##EVENT_TYPE; \
  108. EventId = ##EVENT_ID; \
  109. SourceName = ##SOURCE; \
  110. NumberOfInsertionStrings = ##INSERTION_STRING_COUNT; \
  111. InsertionStringTemplates = {##INSERTION1, ##INSERTION2, ##INSERTION3, ##INSERTION4, ##INSERTION5}; \
  112. NameOfRawDataProperty = ##EXTRA_DATA; \
  113. }; \
  114. \
  115. instance of __FilterToConsumerBinding \
  116. { \
  117. Consumer = $Consumer##UNIQUE_NAME; \
  118. Filter = $Filter##UNIQUE_NAME; \
  119. };
  120. //
  121. // Define all event to eventlog subscriptions for MCA events/eventlogs
  122. //
  123. #pragma namespace("\\\\.\\root\\subscription")
  124. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  125. MCA0,
  126. "MCA0",
  127. 2147811388, // MCA_WARNING_CACHE
  128. EVENTLOG_WARNING_TYPE,
  129. "select * from MSMCAEvent_CPUError where (type = 2147811388) and (LogToEventlog <> 0)",
  130. "WMIxWDM",
  131. "RawRecord",
  132. 3, "%Cpu%", "%AdditionalErrors%", "%level%", "N/A", "N/A")
  133. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  134. MCA1,
  135. "MCA1",
  136. 3221553213, // MCA_ERROR_CACHE
  137. EVENTLOG_ERROR_TYPE,
  138. "select * from MSMCAEvent_CPUError where (type = 3221553213) and (LogToEventlog <> 0)",
  139. "WMIxWDM",
  140. "RawRecord",
  141. 3, "%Cpu%", "%AdditionalErrors%", "%level%", "N/A", "N/A")
  142. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  143. MCA2,
  144. "MCA2",
  145. 2147811390, // MCA_WARNING_TLB
  146. EVENTLOG_WARNING_TYPE,
  147. "select * from MSMCAEvent_CPUError where (type = 2147811390) and (LogToEventlog <> 0)",
  148. "WMIxWDM",
  149. "RawRecord",
  150. 3, "%Cpu%", "%AdditionalErrors%", "%level%", "N/A", "N/A")
  151. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  152. MCA3,
  153. "MCA3",
  154. 3221553215, // MCA_ERROR_TLB
  155. EVENTLOG_ERROR_TYPE,
  156. "select * from MSMCAEvent_CPUError where (type = 3221553215) and (LogToEventlog <> 0)",
  157. "WMIxWDM",
  158. "RawRecord",
  159. 3, "%Cpu%", "%AdditionalErrors%", "%level%", "N/A", "N/A")
  160. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  161. MCA4,
  162. "MCA4",
  163. 2147811392, // MCA_WARNING_CPU_BUS
  164. EVENTLOG_WARNING_TYPE,
  165. "select * from MSMCAEvent_CPUError where (type = 2147811392) and (LogToEventlog <> 0)",
  166. "WMIxWDM",
  167. "RawRecord",
  168. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  169. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  170. MCA5,
  171. "MCA5",
  172. 3221553217, // MCA_ERROR_CPU_BUS
  173. EVENTLOG_ERROR_TYPE,
  174. "select * from MSMCAEvent_CPUError where (type = 3221553217) and (LogToEventlog <> 0)",
  175. "WMIxWDM",
  176. "RawRecord",
  177. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  178. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  179. MCA6,
  180. "MCA6",
  181. 2147811394, // MCA_WARNING_REGISTER_FILE
  182. EVENTLOG_WARNING_TYPE,
  183. "select * from MSMCAEvent_CPUError where (type = 2147811394) and (LogToEventlog <> 0)",
  184. "WMIxWDM",
  185. "RawRecord",
  186. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  187. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  188. MCA7,
  189. "MCA7",
  190. 3221553219, // MCA_ERROR_REGISTER_FILE
  191. EVENTLOG_ERROR_TYPE,
  192. "select * from MSMCAEvent_CPUError where (type = 3221553219) and (LogToEventlog <> 0)",
  193. "WMIxWDM",
  194. "RawRecord",
  195. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  196. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  197. MCA8,
  198. "MCA8",
  199. 2147811396, // MCA_WARNING_MAS
  200. EVENTLOG_WARNING_TYPE,
  201. "select * from MSMCAEvent_CPUError where (type = 2147811396) and (LogToEventlog <> 0) and not ((MSSid = 0) and ((MsOp <> 3) or (MSOp <> 4)))",
  202. "WMIxWDM",
  203. "RawRecord",
  204. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  205. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  206. MCA9,
  207. "MCA9",
  208. 3221553221, // MCA_ERROR_MAS
  209. EVENTLOG_ERROR_TYPE,
  210. "select * from MSMCAEvent_CPUError where (type = 3221553221) and (LogToEventlog <> 0) and not ((MSSid = 0) and ((MsOp <> 3) or (MSOp <> 4)))",
  211. "WMIxWDM",
  212. "RawRecord",
  213. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  214. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  215. MCA10,
  216. "MCA10",
  217. 2147811398, // MCA_WARNING_MEM_UNKNOWN
  218. EVENTLOG_WARNING_TYPE,
  219. "select * from MSMCAEvent_MemoryError where (type = 2147811398) and (LogToEventlog <> 0)",
  220. "WMIxWDM",
  221. "RawRecord",
  222. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  223. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  224. MCA11,
  225. "MCA11",
  226. 3221553223, // MCA_ERROR_MEM_UNKNOWN
  227. EVENTLOG_ERROR_TYPE,
  228. "select * from MSMCAEvent_MemoryError where (type = 3221553223) and (LogToEventlog <> 0)",
  229. "WMIxWDM",
  230. "RawRecord",
  231. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  232. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  233. MCA12,
  234. "MCA12",
  235. 2147811400, // MCA_WARNING_MEM_1_2
  236. EVENTLOG_WARNING_TYPE,
  237. "select * from MSMCAEvent_MemoryError where (type = 2147811400) and (LogToEventlog <> 0)",
  238. "WMIxWDM",
  239. "RawRecord",
  240. 3, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "N/A", "N/A")
  241. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  242. MCA13,
  243. "MCA13",
  244. 3221553225, // MCA_ERROR_MEM_1_2
  245. EVENTLOG_ERROR_TYPE,
  246. "select * from MSMCAEvent_MemoryError where (type = 3221553225) and (LogToEventlog <> 0)",
  247. "WMIxWDM",
  248. "RawRecord",
  249. 3, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "N/A", "N/A")
  250. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  251. MCA14,
  252. "MCA14",
  253. 2147811402, // MCA_WARNING_MEM_1_2_5
  254. EVENTLOG_WARNING_TYPE,
  255. "select * from MSMCAEvent_MemoryError where (type = 2147811402) and (LogToEventlog <> 0)",
  256. "WMIxWDM",
  257. "RawRecord",
  258. 4, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "%MEM_MODULE%", "N/A")
  259. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  260. MCA15,
  261. "MCA15",
  262. 3221553227, // MCA_ERROR_MEM_1_2_5
  263. EVENTLOG_ERROR_TYPE,
  264. "select * from MSMCAEvent_MemoryError where (type = 3221553227) and (LogToEventlog <> 0)",
  265. "WMIxWDM",
  266. "RawRecord",
  267. 4, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "%MEM_MODULE%", "N/A")
  268. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  269. MCA16,
  270. "MCA16",
  271. 2147811404, // MCA_WARNING_MEM_1_2_5_4
  272. EVENTLOG_WARNING_TYPE,
  273. "select * from MSMCAEvent_MemoryError where (type = 2147811404) and (LogToEventlog <> 0)",
  274. "WMIxWDM",
  275. "RawRecord",
  276. 5, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "%MEM_MODULE%", "%MEM_CARD%")
  277. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  278. MCA17,
  279. "MCA17",
  280. 3221553229, // MCA_ERROR_MEM_1_2_5_4
  281. EVENTLOG_ERROR_TYPE,
  282. "select * from MSMCAEvent_MemoryError where (type = 3221553229) and (LogToEventlog <> 0)",
  283. "WMIxWDM",
  284. "RawRecord",
  285. 5, "%Cpu%", "%AdditionalErrors%", "%MEM_PHYSICAL_ADDR%", "%MEM_MODULE%", "%MEM_CARD%")
  286. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  287. MCA18,
  288. "MCA18",
  289. 2147811406, // MCA_WARNING_SYSTEM_EVENT
  290. EVENTLOG_WARNING_TYPE,
  291. "select * from MSMCAEvent_SystemEventError where (type = 2147811406) and (LogToEventlog <> 0)",
  292. "WMIxWDM",
  293. "RawRecord",
  294. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  295. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  296. MCA19,
  297. "MCA19",
  298. 3221553231, // MCA_ERROR_SYSTEM_EVENT
  299. EVENTLOG_ERROR_TYPE,
  300. "select * from MSMCAEvent_SystemEventError where (type = 3221553231) and (LogToEventlog <> 0)",
  301. "WMIxWDM",
  302. "RawRecord",
  303. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  304. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  305. MCA20,
  306. "MCA20",
  307. 2147811408, // MCA_WARNING_PCI_BUS_PARITY
  308. EVENTLOG_WARNING_TYPE,
  309. "select * from MSMCAEvent_PCIBusError where (type = 2147811408) and (LogToEventlog <> 0)",
  310. "WMIxWDM",
  311. "RawRecord",
  312. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  313. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  314. MCA21,
  315. "MCA21",
  316. 3221553233, // MCA_ERROR_PCI_BUS_PARITY
  317. EVENTLOG_ERROR_TYPE,
  318. "select * from MSMCAEvent_PCIBusError where (type = 3221553233) and (LogToEventlog <> 0)",
  319. "WMIxWDM",
  320. "RawRecord",
  321. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  322. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  323. MCA22,
  324. "MCA22",
  325. 2147811410, // MCA_WARNING_PCI_BUS_PARITY_NO_INFO
  326. EVENTLOG_WARNING_TYPE,
  327. "select * from MSMCAEvent_PCIBusError where (type = 2147811410) and (LogToEventlog <> 0)",
  328. "WMIxWDM",
  329. "RawRecord",
  330. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  331. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  332. MCA23,
  333. "MCA23",
  334. 3221553235, // MCA_ERROR_PCI_BUS_PARITY_NO_INFO
  335. EVENTLOG_ERROR_TYPE,
  336. "select * from MSMCAEvent_PCIBusError where (type = 3221553235) and (LogToEventlog <> 0)",
  337. "WMIxWDM",
  338. "RawRecord",
  339. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  340. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  341. MCA24,
  342. "MCA24",
  343. 2147811412, // MCA_WARNING_PCI_BUS_SERR
  344. EVENTLOG_WARNING_TYPE,
  345. "select * from MSMCAEvent_PCIBusError where (type = 2147811412) and (LogToEventlog <> 0)",
  346. "WMIxWDM",
  347. "RawRecord",
  348. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  349. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  350. MCA25,
  351. "MCA25",
  352. 3221553237, // MCA_ERROR_PCI_BUS_SERR
  353. EVENTLOG_ERROR_TYPE,
  354. "select * from MSMCAEvent_PCIBusError where (type = 3221553237) and (LogToEventlog <> 0)",
  355. "WMIxWDM",
  356. "RawRecord",
  357. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  358. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  359. MCA26,
  360. "MCA26",
  361. 2147811414, // MCA_WARNING_PCI_BUS_SERR_NO_INFO
  362. EVENTLOG_WARNING_TYPE,
  363. "select * from MSMCAEvent_PCIBusError where (type = 2147811414) and (LogToEventlog <> 0)",
  364. "WMIxWDM",
  365. "RawRecord",
  366. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  367. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  368. MCA27,
  369. "MCA27",
  370. 3221553239, // MCA_ERROR_PCI_BUS_SERR_NO_INFO
  371. EVENTLOG_ERROR_TYPE,
  372. "select * from MSMCAEvent_PCIBusError where (type = 3221553239) and (LogToEventlog <> 0)",
  373. "WMIxWDM",
  374. "RawRecord",
  375. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  376. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  377. MCA28,
  378. "MCA28",
  379. 2147811416, // MCA_WARNING_PCI_BUS_MASTER_ABORT
  380. EVENTLOG_WARNING_TYPE,
  381. "select * from MSMCAEvent_PCIBusError where (type = 2147811416) and (LogToEventlog <> 0)",
  382. "WMIxWDM",
  383. "RawRecord",
  384. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  385. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  386. MCA29,
  387. "MCA29",
  388. 3221553241, // MCA_ERROR_PCI_BUS_MASTER_ABORT
  389. EVENTLOG_ERROR_TYPE,
  390. "select * from MSMCAEvent_PCIBusError where (type = 3221553241) and (LogToEventlog <> 0)",
  391. "WMIxWDM",
  392. "RawRecord",
  393. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  394. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  395. MCA30,
  396. "MCA30",
  397. 2147811418, // MCA_WARNING_PCI_BUS_MASTER_ABORT_NO_INFO
  398. EVENTLOG_WARNING_TYPE,
  399. "select * from MSMCAEvent_PCIBusError where (type = 2147811418) and (LogToEventlog <> 0)",
  400. "WMIxWDM",
  401. "RawRecord",
  402. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  403. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  404. MCA31,
  405. "MCA31",
  406. 3221553243, // MCA_ERROR_PCI_BUS_MASTER_ABORT_NO_INFO
  407. EVENTLOG_ERROR_TYPE,
  408. "select * from MSMCAEvent_PCIBusError where (type = 3221553243) and (LogToEventlog <> 0)",
  409. "WMIxWDM",
  410. "RawRecord",
  411. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  412. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  413. MCA32,
  414. "MCA32",
  415. 2147811420, // MCA_WARNING_PCI_BUS_TIMEOUT
  416. EVENTLOG_WARNING_TYPE,
  417. "select * from MSMCAEvent_PCIBusError where (type = 2147811420) and (LogToEventlog <> 0)",
  418. "WMIxWDM",
  419. "RawRecord",
  420. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  421. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  422. MCA33,
  423. "MCA33",
  424. 3221553245, // MCA_ERROR_PCI_BUS_TIMEOUT
  425. EVENTLOG_ERROR_TYPE,
  426. "select * from MSMCAEvent_PCIBusError where (type = 3221553245) and (LogToEventlog <> 0)",
  427. "WMIxWDM",
  428. "RawRecord",
  429. 5, "%Cpu%", "%AdditionalErrors%", "%PCI_BUS_CMD%", "%PCI_BUS_ADDRESS%", "%PCI_BUS_ID_BusNumber%")
  430. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  431. MCA34,
  432. "MCA34",
  433. 2147811422, // MCA_WARNING_PCI_BUS_TIMEOUT_NO_INFO
  434. EVENTLOG_WARNING_TYPE,
  435. "select * from MSMCAEvent_PCIBusError where (type = 2147811422) and (LogToEventlog <> 0)",
  436. "WMIxWDM",
  437. "RawRecord",
  438. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  439. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  440. MCA35,
  441. "MCA35",
  442. 3221553247, // MCA_ERROR_PCI_BUS_TIMEOUT_NO_INFO
  443. EVENTLOG_ERROR_TYPE,
  444. "select * from MSMCAEvent_PCIBusError where (type = 3221553247) and (LogToEventlog <> 0)",
  445. "WMIxWDM",
  446. "RawRecord",
  447. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  448. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  449. MCA36,
  450. "MCA36",
  451. 2147811424, // MCA_WARNING_PCI_BUS_UNKNOWN
  452. EVENTLOG_WARNING_TYPE,
  453. "select * from MSMCAEvent_PCIBusError where (type = 2147811424) and (LogToEventlog <> 0)",
  454. "WMIxWDM",
  455. "RawRecord",
  456. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  457. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  458. MCA37,
  459. "MCA37",
  460. 3221553249, // MCA_ERROR_PCI_BUS_UNKNOWN
  461. EVENTLOG_ERROR_TYPE,
  462. "select * from MSMCAEvent_PCIBusError where (type = 3221553249) and (LogToEventlog <> 0)",
  463. "WMIxWDM",
  464. "RawRecord",
  465. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  466. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  467. MCA38,
  468. "MCA38",
  469. 2147811426, // MCA_WARNING_PCI_DEVICE
  470. EVENTLOG_WARNING_TYPE,
  471. "select * from MSMCAEvent_PCIComponentError where (type = 2147811426) and (LogToEventlog <> 0)",
  472. "WMIxWDM",
  473. "RawRecord",
  474. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  475. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  476. MCA39,
  477. "MCA39",
  478. 3221553251, // MCA_ERROR_PCI_DEVICE
  479. EVENTLOG_ERROR_TYPE,
  480. "select * from MSMCAEvent_PCIComponentError where (type = 3221553251) and (LogToEventlog <> 0)",
  481. "WMIxWDM",
  482. "RawRecord",
  483. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  484. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  485. MCA40,
  486. "MCA40",
  487. 2147811428, // MCA_WARNING_SMBIOS
  488. EVENTLOG_WARNING_TYPE,
  489. "select * from MSMCAEvent_SMBIOSError where (type = 2147811428) and (LogToEventlog <> 0)",
  490. "WMIxWDM",
  491. "RawRecord",
  492. 4, "%Cpu%", "%AdditionalErrors%", "%SMBIOS_EVENT_TYPE%", "N/A", "N/A")
  493. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  494. MCA41,
  495. "MCA41",
  496. 3221553253, // MCA_ERROR_SMBIOS
  497. EVENTLOG_ERROR_TYPE,
  498. "select * from MSMCAEvent_SMBIOSError where (type = 3221553253) and (LogToEventlog <> 0)",
  499. "WMIxWDM",
  500. "RawRecord",
  501. 3, "%Cpu%", "%AdditionalErrors%", "%SMBIOS_EVENT_TYPE%", "N/A", "N/A")
  502. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  503. MCA42,
  504. "MCA42",
  505. 2147811430, // MCA_WARNING_PLATFORM_SPECIFIC
  506. EVENTLOG_WARNING_TYPE,
  507. "select * from MSMCAEvent_PlatformSpecificError where (type = 2147811430) and (LogToEventlog <> 0)",
  508. "WMIxWDM",
  509. "RawRecord",
  510. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  511. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  512. MCA43,
  513. "MCA43",
  514. 3221553255, // MCA_ERROR_PLATFORM_SPECIFIC
  515. EVENTLOG_ERROR_TYPE,
  516. "select * from MSMCAEvent_PlatformSpecificError where (type = 3221553255) and (LogToEventlog <> 0)",
  517. "WMIxWDM",
  518. "RawRecord",
  519. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  520. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  521. MCA44,
  522. "MCA44",
  523. 2147811432, // MCA_WARNING_UNKNOWN
  524. EVENTLOG_WARNING_TYPE,
  525. "select * from MSMCAEvent_InvalidError where (type = 2147811432) and (LogToEventlog <> 0)",
  526. "WMIxWDM",
  527. "RawRecord",
  528. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  529. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  530. MCA45,
  531. "MCA45",
  532. 3221553257, // MCA_ERROR_UNKNOWN
  533. EVENTLOG_ERROR_TYPE,
  534. "select * from MSMCAEvent_InvalidError where (type = 3221553257) and (LogToEventlog <> 0)",
  535. "WMIxWDM",
  536. "RawRecord",
  537. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  538. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  539. MCA46,
  540. "MCA46",
  541. 2147811434, // MCA_WARNING_UNKNOWN_NO_CPU
  542. EVENTLOG_WARNING_TYPE,
  543. "select * from MSMCAEvent_InvalidError where (type = 2147811434) and (LogToEventlog <> 0)",
  544. "WMIxWDM",
  545. "RawRecord",
  546. 0, "N/A", "N/A", "N/A", "N/A", "N/A")
  547. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  548. MCA47,
  549. "MCA47",
  550. 3221553259, // MCA_ERROR_UNKNOWN _NO_CPU
  551. EVENTLOG_ERROR_TYPE,
  552. "select * from MSMCAEvent_InvalidError where (type = 3221553259) and (LogToEventlog <> 0)",
  553. "WMIxWDM",
  554. "RawRecord",
  555. 0, "N/A", "N/A", "N/A", "N/A", "N/A")
  556. //
  557. // CPU Throttled event reported in a CPU error with a major error type
  558. // of MS Architecture and a thermal overtemperature operation
  559. //
  560. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  561. MCA48,
  562. "MCA48",
  563. 2147811439, // MCA_WARNING_CPU_THERMAL_THROTTLED
  564. EVENTLOG_WARNING_TYPE,
  565. "select * from MSMCAEvent_CPUError where (MajorErrorType = 4) and (MSSid = 0) and (MSOp = 3) and (LogToEventlog <> 0)",
  566. "WMIxWDM",
  567. "RawRecord",
  568. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  569. //
  570. // CPU no longer being throttled event reported in a CPU error with a
  571. // major error type of MS Architecture and a thermal normal temperature
  572. // operation
  573. //
  574. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  575. MCA49,
  576. "MCA49",
  577. 1074069616, // MCA_INFO_CPU_THERMAL_THROTTLING_REMOVED
  578. EVENTLOG_INFORMATION_TYPE,
  579. "select * from MSMCAEvent_CPUError where (MajorErrorType = 4) and (MSSid = 0) and (MSOp = 4) and (LogToEventlog <> 0)",
  580. "WMIxWDM",
  581. "RawRecord",
  582. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  583. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  584. MCA50,
  585. "MCA50",
  586. 2147811441, // MCA_WARNING_CPU
  587. EVENTLOG_WARNING_TYPE,
  588. "select * from MSMCAEvent_CPUError where (type = 2147811441) and (LogToEventlog <> 0)",
  589. "WMIxWDM",
  590. "RawRecord",
  591. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  592. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  593. MCA51,
  594. "MCA51",
  595. 3221553266, // MCA_ERROR_CPU
  596. EVENTLOG_ERROR_TYPE,
  597. "select * from MSMCAEvent_CPUError where (type = 3221553266) and (LogToEventlog <> 0)",
  598. "WMIxWDM",
  599. "RawRecord",
  600. 2, "%Cpu%", "%AdditionalErrors%", "N/A", "N/A", "N/A")
  601. DEFINE_EVENT_TO_EVENTLOG_SUBSCRIPTION(
  602. MCA52,
  603. "MCA52",
  604. 1074069620, // MCA_INFO_MEMORY_PAGE_MARKED_BAD
  605. EVENTLOG_INFORMATION_TYPE,
  606. "select * from MSMCAEvent_MemoryPageRemoved",
  607. "WMIxWDM",
  608. "PhysicalAddress",
  609. 1, "%PhysicalAddress%", "N/A", "N/A", "N/A", "N/A")
  610. #pragma namespace("\\\\.\\root\\wmi")
  611. #endif