How to Use WinDbg to View the KMDF Log

KMDF includes an internal trace logger that generates a log for each KMDF driver. The log contains a recent history of events, such as those generated by the progress of IRPs through the framework and the corresponding requests through the driver. You can use WDF debugger extensions to view and save the KMDF log during interactive debugging. You can also make the KMDF log as part of a small memory dump, so that you can inspect the contents of the log after a crash.

To view the KMDF log during a debugging session:

  1. If you have not already done so, load the KMDF debugger extensions, as discussed earlier in this chapter.

  2. Set the search path for the KMDF TMF file.

    The file is named WdfVersionNumber.tmf and is located ...

Get Developing Drivers with the Windows® Driver Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.