Skip to content

[wperf-driver] Reset the counters on PMU_CTL_RESET

Stephen Long requested to merge steplongqc/windowsperf:large_first_val into main

We start the counters in arm64pmc_enable_default() which gets called during device creation. When we run wperf.exe stat, the first execution of the dpc function will retrieve the value of the counter which will be extremely high because it has started counting since device creation.

Also, KeCancelTimer() just cancels the dpc function, but doesn't stop the counters. So, any subsequent executions of wperf.exe stat will retrieve a large counter value since it has been counting since the previous execution of wperf.exe.

Merge request reports

Loading