|
发表于 2005-5-28 12:27:47
|
显示全部楼层
[root@S01 opt]#tar zxvf iometer-2004.07.30.linux.i386-bin.tar.gz
[root@S01 opt]#cd iometer-2004.07.30
[root@S01 iometer-2004.07.30]#cd src/iomtr_kstat/
[root@S01 iomtr_kstat]#more README
[root@S01 iomtr_kstat]#more INSTALL
* Decide which kernel you are using. 2.4.x or 2.6.x, then
cp Makefile-Linux2x Makefile (x = 4 or 6)
Note: make sure to do this for 2.6.x kernel. a "make -f Makefile-26" doesnot work
* Change KERNELSRC if need in Makefile
* If you cross compile it for 2.4.x kernel, you need to change CROSS_COMPILE
* Build kernel module (use root if compile for 2.6.x)
make
* Load kernel module as root
./load
* Build user space test program
make -f Makefile-user
* Run test program
./test
* run "dmesg" to check if reported data are same.
* Unload kernel module
./unload |
|