Hi,I wrote a very simple minded example that that makes use of the perfmon2 kernel api. This is a simple example to show how Perfmon2 kabi works. It sets up the cpu_clk_unhalted events to count. When the module is loaded it starts counting cpu_clk_unhalted. When the module is unloaded the module prints out the count using a printk. This is currently only works for the AMD64. It won't work with other processors without modifications and it is only designed to work on UP kernel.
The tarball of the code is attached. -Will
kpfm_test1.tar
Description: Unix tar archive
_______________________________________________ perfmon mailing list [email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/
