IF you just want to capture a trace and view it later then use the command line tools instead of Traceview.
The binary file that you see contains the raw events, to see them all you can use Tracefmt.exe which is provided with the WDK, MSDN has documentation on this.
I use a batch file something like this to capture the trace of the Tracedrv sample driver included in the WDK.
REM : Because I am not really interested in the times and other stuff I set my own prefix REM : You can set a prefix you want or completely remove the line set TRACE_FORMAT_PREFIX=[%%1!s!][%%2!s!][%%!FUNC!][%%!LEVEL!][%%!FLAGS!]
del *.tmf
tracelog.exe -start tracedrv -guid #d58c126f-b309-11d1-969e-0000f875a5bc -f tracedrv.log -flags 15 -level 0xFF tracectl.exe tracelog -stop tracedrv Tracepdb -f tracedrv.pdb tracefmt -display -p . tracedrv.log
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Friday, August 24, 2007 6:39 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Viewing TraceEvents Messages
Dear All,
I copied dbghelp.dll from the WDK to the tools/tracing directory where the traceview.exe is located.
Now I am able to add the provided by using PDB directly as well as generating the TMF files using tracepdb.exe I am able to see the trace messages that I added in the source code.
Wandel was correct. This was previously discussed in the list.
I searched the list with the error message I got. I should have searched with either traceview or tracepdb keyboards.
When I redirect the to file using Log Trace Event Data To File option, the output file is generating but it is filled with some binary data instead of actual real time data that is getting displayed in the traceviewer.
Is there any optional way to redirect the output to some file so that one can view entire contents at a strech.
Regards.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer