Create an INI file with this:
Localwpp.ini
DEFINE_CPLX_TYPE(SRB,WPP_LOGSRB, SCSI_REQUEST_BLOCK *,ItemSRB,“s”,
SRB, 0);
WPP_FLAGS(-DWPP_LOGSRB(x) WPP_LOGPAIR( sizeof(SCSI_REQUEST_BLOCK),
(x)));
To trace use something like this, assuming one of the Flags is
TRACELEVELONE:
SCSI_REQUEST_BLOCK Srb;
DoTraceMessage(TRACELEVELONE, “Hello, %!SRB!”,&Srb );
In your sources file need to add the INI file
RUN_WPP= $(SOURCES) -km -ini:localwpp.ini
There is updated documentation on WPP in the latest DDK, specially there
is a table with supported extended format strings. It also explains how
to define syntax of the complex type defined above.
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 Ramesh K
Sent: Tuesday, December 21, 2004 10:28 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Tracing the SRB status
Hi all,
I want to trace the SRB commands sent to the scsiport. This I want to do
from a filter driver installed as a DiskDrive/ScsiPort. The problem is I
am not able confirm whether the command is SRB or not. Is there status
flag or field which confirms this, like in the case of IOCTL call we can
find out using
“currentIrpStack->Parameters.DeviceIoControl.IoControlCode”. Please let
me know the similar thing is possible for srb status. Also comment
whether I can trace all SRBs are not?
Thanks in advance
Ramesh
–
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default
.asp?SRC=lycos10
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com