!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