source: trunk/lib_ir/AgnerTestP/DriverSrcLinux/DriverSrcLinux.txt @ 4221

Last change on this file since 4221 was 4221, checked in by linmengl, 5 years ago

initial checkin of Agner Fog's performance script

File size: 845 bytes
Line 
1Instructions for Linux driver                     2011-06-19 Agner Fog
2
3To install the Linux driver for PMCTest under Linux, 32 or 64 bit,
4unzip DriverSrcLinux.zip, make and install the driver according to
5the following commands. Must reinstall after reboot.
6The driver has only been tested in Ubuntu.
7
8
9make
10chmod 744 *.sh
11sudo ./install.sh
12
13
14In some older systems you may need to replace MSRdrv.c with MSRdrv1.c if
15compilation gives errors.
16
17If build directory is missing:
18
19sudo ln -s /usr/src/linux-headers-`uname -r` /lib/modules/`uname -r`/build
20
21Or if the target doesn't exist, e.g.:
22
23sudo ln -s /usr/src/linux-headers-2.6.24-23-server /lib/modules/`uname -r`/build
24
25
26install.sh:
27
28        mknod /dev/MSRdrv c 222 0
29        chmod 666 /dev/MSRdrv
30        insmod -f MSRdrv.ko
31       
32uninstall.sh:
33
34        rm -f /dev/MSRdrv
35        rmmod MSRdrv
Note: See TracBrowser for help on using the repository browser.