Yes there is
You can use the command line tools instead.
With simple cmd files you can enable/disable tracing and view the
corresponding log file.
The trace tools are part of the WDK/DDK:
Tracelog.exe
Tracepdb.exe
Tracefmt.exe
Here is a simple cmd file:
del *.tmf
tracelog.exe -start mySession -guid #mycontrolguid -f tracefile.log
-flags FLAGS -level Level
This will start a trace session called mySession and it will enable the
mycontrolguid with flags=FLAGS and level=LEVEL. The flags are the ones
you define in WPP_CONTROL_GUIDS, this parameter can be a file instead
of a single guid.
See MSDN for all the options.
You can also use Logman to start the trace session, the tool is part of
the OS.
Then run your driver.
Tracelog -stop mySession
To view the events:
Tracepdb -f driver.pdb // you can provide the path where the pdb for the
driver is, and the destination. See tracepdb documentation
This command will decode the tracefile
tracefmt -display -p . tracefile.log // here the path to the TMF
files is in the same local directory but you can change that.
You can have a script that generates the TMF files out of the PDB as
part of yuou build process.
Thanks,
Jose Sua
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jeremy Chaney
Sent: Tuesday, September 05, 2006 11:16 AM
To: Kernel Debugging Interest List
Subject: Re:[windbg] questions about WPP tracing
Is there some way to get TraceView to reload the PDB without having to
create a new workspace?
–Jeremy
Don Burn wrote:
Well if you
#define WPP_DEBUG(m) KdPrint(m)
You will basically turn the trace statements into debug print
statements,
and still allow them to be used with TraceView. The behavior you
describe
is expected, because the data for tracing is pulled out of the PDB so
it has
to match the compiled driver.
You are currently subscribed to windbg as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com