I am trying to get a few performance monitoring libraries going, but no luck so far. First of all, they all need the perfmon “patch” inside the kernel, but as far as I can tell, the kernel indeed does contain it.(i’m using 184.108.40.206-3.2).
If I install the pfmon package from the suse repository, running it will fail with a “can’t create perfmon context: Bad address”.
If I download the official libpfm source files and compile and install that, the example programs will fail with “Your kernel does not have performance monitoring support!” (but the kernel does contain the perfmon…)
If I try to compile and install the PAPI package (Performance API) from PAPI, then it compiles everything correctly, but when I try to run the test, it fails with “PAPI Error: detect_unavail_pmu_regs:pfm_create_context(): Function not implemented.”
Bottom line is, that although it seems that the kernel contains the performance monitoring patches, every single library that would need them fails spectacularly. I tried searching for the problem, but cannot really find anything to correct the error with. Any ideas? Is there some way to check that the perfmon in the kernel indeed works correctly without any extra libraries?