Hello,
I have been trying to install and test Perfmon2 on a 4-way Opteron system for past few days without much success. The system is loaded with a Red Hat Enterprise 4 with the 2.6.16 patched with the Perfmon2 patches. The kernel is patched and re-compiled without any error, and booted with the follow Perfmon messages in the log:
Initializing CPU#0
perfmon: installed CPU0 gate
…..
perfmon: version 2.2
perfmon: added sampling format default
…..
libpfm-3.2-060512 also compiled and installed without any error. However, when I try to run examples in libpfm directory, "pfm_create_context" would always fail even though everything seems to be installed correctly. The output of "whichcpu" seems to be correct as well:
PMU model detected by pfmlib: AMD X86-64
number of PMD registers : 4
implemented PMD registers : [ 0 1 2 3 ]
number of PMC registers : 4
implemented PMC registers : [ 0 1 2 3 ]
number of counters : 4
implemented counters : [ 0 1 2 3 ]
hardware counter width : 48
number of events supported : 209
I found couple interesting things when I run strace on the "self" executable in the example directory:
1. "/sys/kernel/perfmon/pmu_desc/mappings" does not exist in the system.
2. "/sys/kernel/perfmon/pmu_model" is Unknown.
Can anyone suggest how I can farther identify why "pfm_create_context always failed?
Thanks.
Jason
_______________________________________________ perfmon mailing list [email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/
