!wudfext.wudfdumpobjects
!wudfext.wudfdumpobjects 延伸模組會顯示未處理的 UMDF 物件。
!wudfext.wudfdumpobjects ObjTrackerAddress
參數
ObjTrackerAddress
指定要追蹤外洩物件的位址。 當發生外洩時,此位址會顯示在調試程式中的驅動程式停止訊息中。
DLL
Wudfext.dll
其他資訊
如需詳細資訊,請參閱 使用者模式驅動程式架構偵錯。
備註
如果 WDF 驗證器中已啟用 UMDF 物件追蹤選項 (TrackObjects),您可以使用 !wudfext.wudfdumpobjects 來查看驅動程式卸除之後保留的任何流失物件。
如果已啟用 TrackObjects 選項,偵測到流失時,就會自動顯示對象追蹤器的位址。 執行 !wudfext.wudfdumpobjects 時,請使用此地址作為 ObjTrackerAddress。
即使 UMDF 未中斷至調試程式,此擴充功能仍可以隨時使用。
如果 UMDF 是 1.9 版或更新版本,您可以使用 !wudfext.umdevstack 或 !wudfext.umdevstacks 來判斷物件追蹤器的位址。 然後,此位址可以傳遞至 !wudfext.wudfdumpobjects。 以下是範例:
0: kd> !umdevstacks
Number of device stacks: 1
Device Stack: 0x038c6f08 Pdo Name: \Device\USBPDO-11
Number of UM devices: 1
Device 0
Driver Config Registry Path: WUDFOsrUsbFx2
UMDriver Image Path: D:\Windows\system32\DRIVERS\UMDF\WUDFOsrUsbFx2.dll
Fx Driver: IWDFDriver 0x3076ff0
Fx Device: IWDFDevice 0x3082e70
IDriverEntry: WUDFOsrUsbFx2!CMyDriver 0x0306eff8
Open UM files (use !umfile <addr> for details):
0x04a8ef84
Device XFerMode: CopyImmediately RW: Buffered CTL: Buffered
Object Tracker Address: 0x03074fd8
Object Tracking ON
Refcount Tracking OFF
DevStack XFerMode: CopyImmediately RW: Buffered CTL: Buffered
0: kd> !wudfdumpobjects 0x03074fd8
WdfTypeDriver Object: 0x03076fb0, Interface: 0x03076ff0
WdfTypeDevice Object: 0x03082e30, Interface: 0x03082e70
WdfTypeIoTarget Object: 0x03088f50, Interface: 0x03088f90
WdfTypeIoQueue Object: 0x0308ce58, Interface: 0x0308ce98
WdfTypeIoQueue Object: 0x03090e58, Interface: 0x03090e98
WdfTypeIoQueue Object: 0x03092e58, Interface: 0x03092e98
WdfTypeIoTarget Object: 0x03098f40, Interface: 0x03098f80
WdfTypeFile Object: 0x0309cfa0, Interface: 0x0309cfe0
WdfTypeUsbInterface Object: 0x030a0f98, Interface: 0x030a0fd8
WdfTypeRequest Object: 0x030a2ef8, Interface: 0x030a2f38
WdfTypeIoTarget Object: 0x030a6f30, Interface: 0x030a6f70
WdfTypeIoTarget Object: 0x030aaf30, Interface: 0x030aaf70
WdfTypeIoTarget Object: 0x030aef30, Interface: 0x030aef70
WdfTypeRequest Object: 0x030c6ef8, Interface: 0x030c6f38
WdfTypeRequest Object: 0x030ceef8, Interface: 0x030cef38
WdfTypeMemoryObject Object: 0x030d6fb0, Interface: 0x030d6ff0
WdfTypeMemoryObject Object: 0x030dcfb0, Interface: 0x030dcff0
WdfTypeFile Object: 0x030e4fa8, Interface: 0x030e4fe8
WdfTypeFile Object: 0x030e6fa8, Interface: 0x030e6fe8
WdfTypeFile Object: 0x030e8fa8, Interface: 0x030e8fe8
WdfTypeRequest Object: 0x030eaef8, Interface: 0x030eaf38
WdfTypeMemoryObject Object: 0x030ecfb0, Interface: 0x030ecff0
WdfTypeMemoryObject Object: 0x030eefb0, Interface: 0x030eeff0