Create Dummy CPU Performance counter register for Unit Testing of Driver

28 views Asked by At

I want to test device driver which fetches the CPU performance counter values from the CPU registers.

  1. Is there any way where the driver could read dummy data from memory/file instead of CPU registers ?
  2. 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.
0

There are 0 answers