The latest version of this topic can be found at __readpmc.
rdpmc instruction, which reads the performance monitoring counter specified by
unsigned __int64 __readpmc( unsigned long counter );
The performance counter to read.
The value of the specified performance counter.
Header file <intrin.h>
This intrinsic is available in kernel mode only, and the routine is only available as an intrinsic.