I want to test device driver which fetches the CPU performance counter values from the CPU registers.
- Is there any way where the driver could read dummy data from memory/file instead of CPU registers ?
- Is there any way where I could write a value directly in CPU perf counter registers and read it back after executing asm code snippet.