Page 1 of 1

papi-4.1.0 and redhat kernel patch

PostPosted: Wed Jul 14, 2010 2:11 pm
by ardavan
Hi,

I'm trying to install PAPI 4.1.0 on a machine running Red Hat Enterprise Linux Client release 5.5 (Tikanga x86_64) with kernel 2.6.18-194.8.1.el5 #1 SMP.

Do I need to patch my kernel?

The configure script can't find perfctr related headers and libraries:
checking for /sys/class/perfctr... no
checking for /dev/perfctr... no
checking for perfmon version... checking for /sys/kernel/perfmon/version... no
checking for /proc/perfmon... no
checking for /usr/include/linux/perf_event.h... no
checking for /usr/include/linux/perf_counter.h... no
checking for /lib/modules/2.6.18-194.8.1.el5/source/include/linux/perf_event.h... no
checking for /lib/modules/2.6.18-194.8.1.el5/source/include/linux/perf_counter.h... no


Does this mean I have to patch the kernel?

Re: papi-4.1.0 and redhat kernel patch

PostPosted: Wed Jul 14, 2010 6:24 pm
by jagode00
Yes, for the kernel version 2.6.18 you will definitively need to patch the kernel with perfctr or perfmon.
Only kernel versions >= 2.6.31 come with the built-in perf_events interface.

Thanks,
heike.