Source Code:
View the libmsr source code on github here

Developer Documentation:
View doxygen code documentation here

User How-To Guides:
General libmsr usage
Using the batch interface
Using the RAPL Features
Monitoring performance counters
Monitoring PCI configuration registers

Additional Tools:

Welcome to libmsr

Libmsr provides an interface to accessing model-specific registers (MSRs) on Intel platforms, which provide privileged functionality for monitoring and controlling various CPU features. Functionality is agnostic to the target Intel architecture, assuming it is supported by libmsr in the platform_headers/ directory. In addition, libmsr now supports PCI configuration registers (CSRs), such as the integrated memory controller (iMC), QuickPath Interconnect (QPI), and power control unit (PCU). Further, libmsr is optimized for batch read/write operations for up to 8X speed-up when used with the msr-safe kernel.

For access to the latest code, clone the git repo.

$ git clone