There will be session on event tracing at this year’s WinHEC titled
“Diagnostic Tracing with Event Tracing for Windows and TraceView”. It
will talk about this very thing. Dynamically enable debug output with
minimal performance impact – pretty nifty.
In the meantime, take a look at the CDROM sample in the WinXP DDK, the
section marked “WPP Software Tracing” and the NT Insider article.
Compile a copy of the CDROM driver, create a .TMF from the .PDB, then
start poking around on a computer with Windows XP on it. You might be
surprised.
L
-----Original Message-----
From: xxxxx@tenpennies.com [mailto:xxxxx@tenpennies.com]
Sent: Wednesday, April 09, 2003 12:50 PM
To: NT Developers Interest List
FYI:
There was an article about event tracing in Windows in the Jan-Feb 2003
NT
Insider.
The article made reference to “WPP Software Tracing” in the DDK.
Shaun
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Roddy, Mark
Sent: Wednesday, April 09, 2003 11:50 AM
To: NT Developers Interest List
Subject: [ntdev] Re: How could Microsoft have signed this driver?
Well that (no diagnostic output in released drivers) is a bit of a
religious
issue isn’t it? It sort of assumes that released drivers are bug free
and
will never have to be debugged or diagnosed. I guess your experience
with
released drivers differs from mine
I much prefer configurable debug levels (as in DebugPrintEx, for
example)
that can be turned on/off up/down as needed in realtime with the system
up
and running. It also would be real nice if NT actually logged the debug
console in a circular buffer in core so that it could be retreived from
dump
files.
-----Original Message-----
From: Mathieu Routhier [mailto:xxxxx@guillemot.com]
Sent: Wednesday, April 09, 2003 1:56 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How could Microsoft have signed this driver?Was that ironic?
It’s not that hard to have a TRACE() macro which will call
DbgPrint() in checked builds and evaluate to nothing in free
builds. No need to clutter your code with #ifdefs to get the
job done.To my sense, a driver should never output unless it is a
driver you are in the process of developing/debugging. This
is only my opinion, though.Mat
-----Original Message-----
From: Christine Ames [mailto:xxxxx@PacificDigital.com]
Sent: Wednesday, April 09, 2003 1:47 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How could Microsoft have signed this driver?> -----Original Message-----
> From: Mathieu Routhier [mailto:xxxxx@guillemot.com]
> Sent: Wednesday, April 09, 2003 9:55 AM
>
> And even Windows Messenger! Which is there *by default* in XP.
>
> >
>
> Yes, well… I guess we’ve all seen someone’s inattention
> to detail flowing out the debug window at least once. Makes
> you think they’ve never heard of an “#ifdef”…as in:
>
> #ifdef MYDEBUG
> DebugPrint((1, “Dude, I make it HERE…\n”));
> #endif
>
> I realize this means you’ll need to wrap EACH AND EVERY
> SINGLE DEBUG OUT with the offending #ifdefs; AND you’ll have
> to #define MYDEBUG; AND you’ll need to UNDEFINE said
> definition and RECOMPILE on that fateful day when you
> actually release your code.
>
> That said, may I submit another Commandment?
>
> “If you wish to debug your code in the event of difficulties,
> you shall wrap each and every debug out with #ifdefs, yes,
> even though these #ifdefs triple the size of your code and
> produce aches in your typing fingers; for if you think,
> “nobody is ever going to see these but me”, your peers shall
> surely embarrass you for your arrogance.”
>
> Harmony,
>
> --Christine
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@guillemot.com To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@stratus.com To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@tenpennies.com
To unsubscribe send a blank email to xxxxx@lists.osr.com