Hi All,
I have a one shot timer running in my driver. This timer starts when the driver (D0PostIntrEnable) loads and then stops On (D0PreInterruptDisable). When I do the load unload test on the driver with driver verifier enabled, the driver verifier breaks in to debugger (only sometimes) with the following stack
MyDriverCmdTimer function is the function which is the timer callback and it restarts the timer. When I look at driver verifier code, I can see that it has "driver rundown checks" which basically says that "Why is driver calling StartTimer when the driver is being run down" . If I ignore the assertion and let the debugger continue, there is not problem and the test continues.
I do not think that I am doing anything illegal here.
Would appreciate any thoughts on this.
Thanks,
Aj
Honestly there is no specific reason just that I want to have control. Its a timer which monitors the IO queues. Needs to be running for the life time of the driver. I can make it a auto fire timer, if that what you mean.
I tried this. The problem is that when the TimerCallback is scheduled for a PassiveLevel Callback, we cannot specify a specific period. The Period for the periodic timer has to be 0.
Debugged this a little more. The Driver is asserting here because it thinks that there is a code in driver which is starting the timer while the driver is running down. I also cannot move the timer from one shot to Periodic because the periodic timers are not supported at passive level.
I modified the code to start the timer only when there is command to time. If not, I do not start the timer. This works.
Thanks
Aj
The Verifier breaks in WinDbg on WdfTimerStart issue typically indicates that the Windows Driver Framework (WDF) Timer is encountering problems related to system verification. This break could be due to mismanagement of the timer object, issues with the driver code, or conflicts with other system components. Debugging involves analyzing the call stack and verifying that the timer is correctly configured and managed according to WDF guidelines.