TraceEvents in KMDF

Dear All,

In the WinDDK\6001\src\kmdf\hidusbfx2\sys and hidmapper code, I find the usage of traceevents. The trace is initialized in the DriverEntry function using WPP_INIT_TRACING.

When I copy hidusbfx2.pdb to tools-traceview folder and launch traceviewer, it says cannot find pdb file on selecting add provider. I am able to add the provider of UMDF sample.

The same problem for the UMDF sample is resolved by copying dbghelp.dll from bin to trace directory. Do I need to copy any other kernel related dll in the case of KMDF.

On running tracepdb it gives the information that WPPFMT no trace entries are found in hidusbfx2.pdb

Can somebody kindly suggest the way to view given traceevents in KMDF sample.

Regards.

I downloaded dbgview form www.sysinternals.com and able to see the trace messages in it. Just run the exe before loading the driver to view the messages. No need to provide any .pdb files.

Hope this helps someone who is facing difficulty with windbg on test sytem, development system.

Regards.

Unless you have set things up with special macro’s DbgView will not show you
WPP tracing. The macros map trace statements into DbgPrint statements. If
you don’t have those macros set you will not see the tracing.

TraceView form the WDK will show you tracing in all circumstances, including
when those macros are not set. Do not confuse the two, they have different
models and performance.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
>
> I downloaded dbgview form www.sysinternals.com and able to see the trace
> messages in it. Just run the exe before loading the driver to view the
> messages. No need to provide any .pdb files.
>
> Hope this helps someone who is facing difficulty with windbg on test
> sytem, development system.
>
> Regards.
>