로깅 및 조사

이 항목에서는 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