Using Hardware Performance Counters on Windows
This paper describes how drivers can safely use hardware performance counters on Windows 7 platforms. Today's processors expose hardware performance counters that count many different events. Performance tools - the typical consumers of these events - uses these counters to measure retired instructions, cache misses, and other hardware events. However, other tools and applications sometimes also use the same hardware performance counters.