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

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

“currentIrpStack->Parameters.DeviceIoControl.IoControlCode”.

Yes

IOCTL_SCSI_EXECUTE_IN
IOCTL_SCSI_EXECUTE_OUT
IOCTL_SCSI_EXECUTE_NONE

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Thanks Maxim, for the reply.
I am interested in returning the various SRB status flags for test purpose and complete the IRP, as if returned from class port or miniport(the lower level).

So, in my filter driver, should I update the “Irp->UserBuffer” with SRB structure or “CurrentIrpStack->Parameters.Scsi.Srb” with the SRB structure. Or is there any other method.

I tried accessing the “CurrentIrpStack->Parameters.Scsi.Srb” variables, in the IRP_MJ_SCSI routine handler. But the system crashes if I access it’s values.

Best Regards
Ramesh

----- Original Message -----
From: To: “Windows System Software Devs Interest List”
Subject: Re: [ntdev] Tracing the SRB status
Date: Wed, 22 Dec 2004 01:55:59 +0300

>
> “currentIrpStack->Parameters.DeviceIoControl.IoControlCode”.
>
> Yes
>
> IOCTL_SCSI_EXECUTE_IN
> IOCTL_SCSI_EXECUTE_OUT
> IOCTL_SCSI_EXECUTE_NONE
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@lycos.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


_______________________________________________
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

Hi Jose,

I am planning to set the CurrentIrpStack->Parameters.Scsi->Srb (“srb”) structure and complete the Irp in the IRP_MJ_SCSI routine handler to simulate the error conditions. The problem is, if I access the parameters of the Srb or try to copy the “srb” the system is crashing. I checked the address of the “srb” which is valid. My intension is generate different SRB status for testing purpose.

Thanks and Regards
Ramesh

----- Original Message -----
From: “Jose Sua”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] Tracing the SRB status
Date: Tue, 21 Dec 2004 11:56:47 -0800

>
> 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
>
>
> —
> 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



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

You’re doing this only with requests that are IRP_MJ_SCSI (aka
IRP_MJ_INTERNAL_DEVICE_CONTROL) right?

Have you stepped through your code to see where you’re crashing when you
access the SRB? Presumably you have if you know that the srb address
you got is “valid”.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ramesh K
Sent: Wednesday, December 22, 2004 9:36 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Tracing the SRB status

Hi Jose,

I am planning to set the
CurrentIrpStack->Parameters.Scsi->Srb (“srb”) structure and
complete the Irp in the IRP_MJ_SCSI routine handler to
simulate the error conditions. The problem is, if I access
the parameters of the Srb or try to copy the “srb” the system
is crashing. I checked the address of the “srb” which is
valid. My intension is generate different SRB status for
testing purpose.

Thanks and Regards
Ramesh

----- Original Message -----
From: “Jose Sua”
> To: “Windows System Software Devs Interest List”
> Subject: RE: [ntdev] Tracing the SRB status
> Date: Tue, 21 Dec 2004 11:56:47 -0800
>
> >
> > 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/defau
> > lt
> > .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
> >
> >
> > —
> > 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
>
> –
>

> Find what you are looking for with the Lycos Yellow Pages
> http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> om/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
>

If all you want to do really is trace srbs sent to a scsiport driver you
might want to download scsiview from my website. It will trace srbs sent to
a scsiport driver. This might suffice.

=====================
Mark Roddy
Windows .NET/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Peter Wieland
Sent: Wednesday, December 22, 2004 2:19 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Tracing the SRB status

You’re doing this only with requests that are IRP_MJ_SCSI (aka
IRP_MJ_INTERNAL_DEVICE_CONTROL) right?

Have you stepped through your code to see where you’re
crashing when you access the SRB? Presumably you have if you
know that the srb address you got is “valid”.

-p

> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Ramesh K
> Sent: Wednesday, December 22, 2004 9:36 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Tracing the SRB status
>
> Hi Jose,
>
> I am planning to set the
> CurrentIrpStack->Parameters.Scsi->Srb (“srb”) structure and
> complete the Irp in the IRP_MJ_SCSI routine handler to simulate the
> error conditions. The problem is, if I access the parameters of the
> Srb or try to copy the “srb” the system is crashing. I checked the
> address of the “srb” which is valid. My intension is generate
> different SRB status for testing purpose.
>
> Thanks and Regards
> Ramesh
>
> ----- Original Message -----
> From: “Jose Sua”
> > To: “Windows System Software Devs Interest List”
>
> > Subject: RE: [ntdev] Tracing the SRB status
> > Date: Tue, 21 Dec 2004 11:56:47 -0800
> >
> > >
> > > 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/defau
> > > lt
> > > .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
> > >
> > >
> > > —
> > > 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
> >
> > –
> >

> > Find what you are looking for with the Lycos Yellow Pages
> > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> > om/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
> >
>
> —
> 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
>

Hi Peter,

I checked the address value and if it is valid then tried copying memory of
that
much (SRB) size. Even, I just tried to print the srb.Function or srb.Length.
But
system crashes after that. when I checked the input structure size it is 16
bytes. What could be the input structure here? Also please let me know how
to do the same for other IOCTLs.

Regards
Ramesh

----- Original Message -----
From: “Peter Wieland”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] Tracing the SRB status
Date: Wed, 22 Dec 2004 11:18:52 -0800

>
> You’re doing this only with requests that are IRP_MJ_SCSI (aka
> IRP_MJ_INTERNAL_DEVICE_CONTROL) right?
>
> Have you stepped through your code to see where you’re crashing when you
> access the SRB? Presumably you have if you know that the srb address
> you got is “valid”.
>
> -p
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Ramesh K
> > Sent: Wednesday, December 22, 2004 9:36 AM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Tracing the SRB status
> >
> > Hi Jose,
> >
> > I am planning to set the CurrentIrpStack->Parameters.Scsi->Srb
> > (“srb”) structure and complete the Irp in the IRP_MJ_SCSI routine
> > handler to simulate the error conditions. The problem is, if I
> > access the parameters of the Srb or try to copy the “srb” the
> > system is crashing. I checked the address of the “srb” which is
> > valid. My intension is generate different SRB status for testing
> > purpose.
> >
> > Thanks and Regards
> > Ramesh ----- Original Message -----
> > From: “Jose Sua”
> > To: “Windows System Software Devs Interest List”
> > Subject: RE: [ntdev] Tracing the SRB status
> > Date: Tue, 21 Dec 2004 11:56:47 -0800
> >
> > > > 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/defau
> > > lt
> > > .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
> > > > > —
> > > 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
> >
> > –
> >

> > Find what you are looking for with the Lycos Yellow Pages
> > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> > om/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
> >
>
> —
> 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


_______________________________________________
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

Hi Mark,

I also need to return the SRB status as if it is returned from lower level.
This for testing purpose. I tried using your software. But with that also
the system crashes. Even in idle condition the system is crashing. I tested
this on Windows 2003 server.

Thanks and Regards
Ramesh

----- Original Message -----
From: “Mark Roddy”
To: “Windows System Software Devs Interest List”
Subject: RE: [ntdev] Tracing the SRB status
Date: Wed, 22 Dec 2004 16:20:19 -0500

>
> If all you want to do really is trace srbs sent to a scsiport driver you
> might want to download scsiview from my website. It will trace srbs sent to
> a scsiport driver. This might suffice.
>
> =====================
> Mark Roddy
> Windows .NET/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Peter
> > Wieland
> > Sent: Wednesday, December 22, 2004 2:19 PM
> > To: Windows System Software Devs Interest List
> > Subject: RE: [ntdev] Tracing the SRB status
> >
> > You’re doing this only with requests that are IRP_MJ_SCSI (aka
> > IRP_MJ_INTERNAL_DEVICE_CONTROL) right?
> >
> > Have you stepped through your code to see where you’re crashing
> > when you access the SRB? Presumably you have if you know that
> > the srb address you got is “valid”.
> >
> > -p
> >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com >
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Ramesh K
> > > Sent: Wednesday, December 22, 2004 9:36 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: RE: [ntdev] Tracing the SRB status
> > > > Hi Jose,
> > > > I am planning to set the
> > > CurrentIrpStack->Parameters.Scsi->Srb (“srb”) structure and
> > > complete the Irp in the IRP_MJ_SCSI routine handler to simulate
> > the > error conditions. The problem is, if I access the
> > parameters of the > Srb or try to copy the “srb” the system is
> > crashing. I checked the > address of the “srb” which is valid. My
> > intension is generate > different SRB status for testing purpose.
> > > > Thanks and Regards
> > > Ramesh
> > > > ----- Original Message -----
> > > From: “Jose Sua”
> > > To: “Windows System Software Devs Interest List”
> > > Subject: RE: [ntdev] Tracing the SRB status
> > > Date: Tue, 21 Dec 2004 11:56:47 -0800
> > > > > > > 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/defau
> > > > lt
> > > > .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
> > > > > > > > —
> > > > 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
> > > > –
> > >

> > > Find what you are looking for with the Lycos Yellow Pages >
> > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.c
> > > om/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
> > > —
> > 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
> >
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@lycos.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com


_______________________________________________
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