Thursday, July 18, 2013

Access MSR (memory specific register) on Linux

msr-tool

https://www.kernel.org/pub/linux/utils/cpu/msr-tools/

After download the tool, cd into the folder and do $make

Usage:
./rdmsr [ADDRESS]
./rdmsr [ADDRESS] [DATA]

If you have following error:
rdmsr:open: No such file or directory

Load the msr module
$modprobe msr

http://linux.koolsolutions.com/2009/09/19/howto-using-cpu-msr-tools-rdmsrwrmsr-in-debian-linux/


No comments: