This may be handy to check some bit settings and for debugging.
To us dumpmsr you need to have "msr" compiled into the Linux kernel or loaded as module (sudo modprobe msr).
To run this program run "sudo ./dumpmsr <cpunr> <register>"
CPU number is the number of the CPU to check (starting with "0" for the first CPU).
Register is the hexadecimal expression of the register address.
A valid set of parameters may be (for example)
sudo ./dumpmsr 0 0x199
The output will look like that:
The 2nd line is for helping to count the bit-number (starting with bit 0 and ending with bit 63 on a 8 Byte register)
Code: Select all
sudo ./dumpmsr.py 0 0x199 [ EDX ] [ EAX ] [63 47 32] [31 15 0] [00000000|00000000|00000000|00000000] [00000000|00000000|00000134|00000015] 00000000 00000000 00000000 00000000 00000000 00000000 10000110 00001111
The 3rd line is a zero-filled decimal expression of the Byte.
The 4th line is the binary expression of the register.
Download Version 0.1: