共用方式為


記錄和調查

本主題描述 GPIO 實作的記錄和調查。

從核心調試程式即時偵錯列印

!wmitrace.start buttonTrace -kd ; !wmitrace.enable buttonTrace {5a81715a-84c0-4def-ae38-edde40df5b3a} -level 4 -flag 0xFFFFFFFF
<repro>
!wmitrace.stop buttonTrace

記錄和調查

來自 KD 的 IFR 紀錄:

!rcdrkd msgpiowin32 

LogMan:

 
logman start -ets buttonTrace -p {5a81715a-84c0-4def-ae38-edde40df5b3a} 0xFFFFFFFF 4
<repro>
logman stop -ets buttonTrace

驗證

您可以使用 IFR 記錄或 Logman 來驗證狀態是否已正確切換。

例如,如果預期有停駐指標變更,在觸發通知時,應該在記錄中找到下列專案。

--- start of log ---
10: Indicator_EvtDevicePrepareHardware - Received 0 resource descriptors, assuming indicator status will be injected via WriteFile
11: Indicator_EvtIoWrite - Indicator state change : DockMode_Indicator : old state : NotDocked
12: Indicator_UpdateRegistryValue - Indicator state update : DockMode_Indicator : new state : Docked