...
See
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|
Required bahaviour
Remove Ultimatelly remove the call to
WdfDeviceInitSetExclusive
.Create a persistent structure inside
wperf-driver
that capture driver’s “transition” current state, like if it is sampling, counting, if PMU resources are available or not. We want to capture:[bool flag] If driver is currently “counting” or “sampling” - this will set BUSY state to true.
[IOCTL request no.] Current IOCTL being processed - this is useful to determine in user space if we are actually counting/timeline or sampling or doing some other work.
How IOCTL will set BUSY state?
Some IOCTL will set (and clear after IOCTL is finished) busy state during IOCTL handling only, e.g.
PMU_CTL_RESET
orIOCTL_PMU_CTL_QUERY_HW_CFG
. This is because these “transactions” are pending during IOCTL handle and end after.Some IOCTLs will set BUSY state
Not all IOCTLs may set bus state as some do not “set in motion” the driver.
Update to driver ↔︎ user-space protocol.
We will send to user-space new set of flags: BUSY flag and at least info about which IOCTL is ongoing.
If BUSY state is true: IOCTL field is valid with IOCTL being processed now.
List of IOCTLs and BUSY state
...