enabling KMDFDV

Hi,
I have a KMDF based volume filter and I tried enabling KMDFDV by
following the instructions on
http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx

However, after the reboot when I break in and use “!wdfkd.wdfdriverinfo
dtiw 1” to see the settings, I see " WDF Verifier settings for dtiw.sys
is OFF".

Please advice on how to enable KMDFDV.
I am using KMDF 1.1

Thanks
Harish

The settings are established when you call WdfDriverCreate. When I’ve seen this before, it was because someone took the snap at DriverEntry (before this call is made).

When are you breaking in?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] enabling KMDFDV

Hi,
I have a KMDF based volume filter and I tried enabling KMDFDV by
following the instructions on
http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx

However, after the reboot when I break in and use “!wdfkd.wdfdriverinfo
dtiw 1” to see the settings, I see " WDF Verifier settings for dtiw.sys
is OFF".

Please advice on how to enable KMDFDV.
I am using KMDF 1.1

Thanks
Harish


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

After the driver is loaded and more than one devices(volumes!) added.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271389-
xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Wednesday, November 29, 2006 1:18 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] enabling KMDFDV

The settings are established when you call WdfDriverCreate. When I’ve
seen this before, it was because someone took the snap at DriverEntry
(before this call is made).

When are you breaking in?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271383-
xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] enabling KMDFDV

Hi,
I have a KMDF based volume filter and I tried enabling KMDFDV by
following the instructions on
http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx

However, after the reboot when I break in and use
“!wdfkd.wdfdriverinfo
dtiw 1” to see the settings, I see " WDF Verifier settings for
dtiw.sys
is OFF".

Please advice on how to enable KMDFDV.
I am using KMDF 1.1

Thanks
Harish


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I think I overlooked an important piece here.

When I issue the KD cmd, I get error saying “Your debugger is not using
correct symbols” and then it complains about “_FX_DRIVER_GLOBALS”.

My symbol path has always included MS symbol server
SRV*c:\wnet_web_symbols*http://msdl.microsoft.com/download/symbols

Is the verifier setting related to this and if so how can I resolve this
symbol error?

Harish

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271389-
xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Wednesday, November 29, 2006 1:18 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] enabling KMDFDV

The settings are established when you call WdfDriverCreate. When I’ve
seen this before, it was because someone took the snap at DriverEntry
(before this call is made).

When are you breaking in?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271383-
xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] enabling KMDFDV

Hi,
I have a KMDF based volume filter and I tried enabling KMDFDV by
following the instructions on
http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx

However, after the reboot when I break in and use
“!wdfkd.wdfdriverinfo
dtiw 1” to see the settings, I see " WDF Verifier settings for
dtiw.sys
is OFF".

Please advice on how to enable KMDFDV.
I am using KMDF 1.1

Thanks
Harish


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

>>I think I overlooked an important piece here.

When I issue the KD cmd, I get error saying “Your debugger is not using
correct symbols” and then it complains about “_FX_DRIVER_GLOBALS”.

My symbol path has always included MS symbol server
SRV*c:\wnet_web_symbols*http://msdl.microsoft.com/download/symbols

Is the verifier setting related to this and if so how can I resolve this
symbol error?<<

That would indeed be the problem.

The symbols you need are in the KMDF 1.1 package (winddk\wdf\kmdf10\symbols<platform>\wdf\sys).

The you choose matches the checked/free version of KMDF, not of your driver.

Change that last path item to tmf for the location for the TMF File if/when you need to look at a log.

I don’t think KMDF v1.1 or v1.0 symbols are on the server (I can check
and get this fixed tomorrow). Until then, you need to add the DDK path
which contains the symbols where installed KMDf v1.1 is installed

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

I think I overlooked an important piece here.

When I issue the KD cmd, I get error saying “Your debugger is not using
correct symbols” and then it complains about “_FX_DRIVER_GLOBALS”.

My symbol path has always included MS symbol server
SRV*c:\wnet_web_symbols*http://msdl.microsoft.com/download/symbols

Is the verifier setting related to this and if so how can I resolve this
symbol error?

Harish

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271389-
xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
Sent: Wednesday, November 29, 2006 1:18 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] enabling KMDFDV

The settings are established when you call WdfDriverCreate. When I’ve
seen this before, it was because someone took the snap at DriverEntry
(before this call is made).

When are you breaking in?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271383-
xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] enabling KMDFDV

Hi,
I have a KMDF based volume filter and I tried enabling KMDFDV by
following the instructions on
http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx

However, after the reboot when I break in and use
“!wdfkd.wdfdriverinfo
dtiw 1” to see the settings, I see " WDF Verifier settings for
dtiw.sys
is OFF".

Please advice on how to enable KMDFDV.
I am using KMDF 1.1

Thanks
Harish


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Thanks Doron and bob, I managed to fix the issue and now KMDFDV is
active.

The system has become extremely slow :-(.
Task manager shows System process consuming > 90% of CPU consistently.
Even when I stop my IO test, cpu usage remains the same.
This wasn’t the case when KMDFDV was OFF.

!wdfkd.wdfdriverinfo shows following settings
Pool tracking is ON
Handle verification is ON
IO verification is ON
Lock verification is ON
Handle reference tracking is OFF

Harish

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271413-
xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, November 29, 2006 2:37 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

I don’t think KMDF v1.1 or v1.0 symbols are on the server (I can check
and get this fixed tomorrow). Until then, you need to add the DDK
path
which contains the symbols where installed KMDf v1.1 is installed

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

I think I overlooked an important piece here.

When I issue the KD cmd, I get error saying “Your debugger is not
using
correct symbols” and then it complains about “_FX_DRIVER_GLOBALS”.

My symbol path has always included MS symbol server
SRV*c:\wnet_web_symbols*http://msdl.microsoft.com/download/symbols

Is the verifier setting related to this and if so how can I resolve
this
symbol error?

Harish

> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-271389-
> xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
> Sent: Wednesday, November 29, 2006 1:18 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] enabling KMDFDV
>
> The settings are established when you call WdfDriverCreate. When
I’ve
> seen this before, it was because someone took the snap at
DriverEntry
> (before this call is made).
>
> When are you breaking in?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-271383-
> xxxxx@lists.osr.com] On Behalf Of Harish Arora
> Sent: Wednesday, November 29, 2006 1:09 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] enabling KMDFDV
>
> Hi,
> I have a KMDF based volume filter and I tried enabling KMDFDV by
> following the instructions on
> http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx
>
> However, after the reboot when I break in and use
“!wdfkd.wdfdriverinfo
> dtiw 1” to see the settings, I see " WDF Verifier settings for
dtiw.sys
> is OFF".
>
> Please advice on how to enable KMDFDV.
> I am using KMDF 1.1
>
> Thanks
> Harish
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

The KMDF DV will incur a bigger hit on request processing (there is more
locking going on), but it should be proportionate to i/o activity. If
your device is idle, there should not be much of a change in CPU usage.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 3:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

Thanks Doron and bob, I managed to fix the issue and now KMDFDV is
active.

The system has become extremely slow :-(.
Task manager shows System process consuming > 90% of CPU consistently.
Even when I stop my IO test, cpu usage remains the same.
This wasn’t the case when KMDFDV was OFF.

!wdfkd.wdfdriverinfo shows following settings
Pool tracking is ON
Handle verification is ON
IO verification is ON
Lock verification is ON
Handle reference tracking is OFF

Harish

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-271413-
xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Wednesday, November 29, 2006 2:37 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

I don’t think KMDF v1.1 or v1.0 symbols are on the server (I can check
and get this fixed tomorrow). Until then, you need to add the DDK
path
which contains the symbols where installed KMDf v1.1 is installed

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Harish Arora
Sent: Wednesday, November 29, 2006 1:41 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] enabling KMDFDV

I think I overlooked an important piece here.

When I issue the KD cmd, I get error saying “Your debugger is not
using
correct symbols” and then it complains about “_FX_DRIVER_GLOBALS”.

My symbol path has always included MS symbol server
SRV*c:\wnet_web_symbols*http://msdl.microsoft.com/download/symbols

Is the verifier setting related to this and if so how can I resolve
this
symbol error?

Harish

> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-271389-
> xxxxx@lists.osr.com] On Behalf Of Bob Kjelgaard
> Sent: Wednesday, November 29, 2006 1:18 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] enabling KMDFDV
>
> The settings are established when you call WdfDriverCreate. When
I’ve
> seen this before, it was because someone took the snap at
DriverEntry
> (before this call is made).
>
> When are you breaking in?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:bounce-271383-
> xxxxx@lists.osr.com] On Behalf Of Harish Arora
> Sent: Wednesday, November 29, 2006 1:09 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] enabling KMDFDV
>
> Hi,
> I have a KMDF based volume filter and I tried enabling KMDFDV by
> following the instructions on
> http://blogs.msdn.com/doronh/archive/2006/05/17/600335.aspx
>
> However, after the reboot when I break in and use
“!wdfkd.wdfdriverinfo
> dtiw 1” to see the settings, I see " WDF Verifier settings for
dtiw.sys
> is OFF".
>
> Please advice on how to enable KMDFDV.
> I am using KMDF 1.1
>
> Thanks
> Harish
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

>>The system has become extremely slow :-(.
Task manager shows System process consuming > 90% of CPU consistently.
Even when I stop my IO test, cpu usage remains the same.
This wasn’t the case when KMDFDV was OFF.<<

Well, that isn’t normally what happens…

I think what I’d try is breaking in a few times at random and using the !wdflogdump extension. The log records are sequence numbered, and even before you get a TMF File set up properly, you can just look at them and see if something is causing tons of logging messages to be generated. Of course, with the TMF properly set up, you can also get an idea what you are doing as well [a list of GUIDS and “unknown format” doesn’t help a lot].

But there are some other approaches, as well- !process on the system process a few times should point out which thread(s) are eating all that time, for instance [but that’s a painstakingly slow approach].