Skip to content

mattferroni/msr-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msr-driver

A simple kernel module to read MSRs on Intel machines. Freely inspired by: http://www.mindfruit.co.uk/2012/11/fun-with-msrs-counting-performance.html

How to

Make and install:

sudo make
sudo make install

Load kernel module and check if everything is ok:

sudo ./install
dmesg -e
lsmod | grep msrdrv

Compile and run the test code:

gcc -g -I. -O2 -o msrtest msrtest.c
./msrtest

Misc

Use asm_exec.c to execute and test a single assembly intruction.

gcc asm_exec.c
./a.out

About

A simple kernel module to read MSRs on Intel machines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published