Page 1 of 1

Unable to compile PAPI driver Perfctr on linux 2.6.32-71.el6

PostPosted: Fri Oct 07, 2011 12:57 am
by gaurav
Hi,

I am compiling linux kernel 2.6.32-71.el6.x86_64 in order to patch "perfctr" driver but while compilation(make CONFIG_DEBUG_SECTION_MISMATCH=y binrpm-pkg 2> ../build-err.log | tee ../build-out.log).
It produces following error.
scripts/kconfig/conf -s arch/x86/Kconfig
make KBUILD_SRC=
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC arch/x86/kernel/process_64.o-Compilation aborted with below shown errror

[root@localhost linux-2.6.32-71.el6.x86_64]# vim ../build-err.log
In file included from arch/x86/kernel/process_64.c:33:
include/linux/perfctr.h: In function âperfctr_copy_taskâ:
include/linux/perfctr.h:165: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_exit_threadâ:
include/linux/perfctr.h:176: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_flush_threadâ:
include/linux/perfctr.h:184: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_suspend_threadâ:
include/linux/perfctr.h:192: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_resume_threadâ:
include/linux/perfctr.h:200: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_sample_threadâ:
include/linux/perfctr.h:208: error: âstruct thread_structâ has no member named âperfctrâ
include/linux/perfctr.h: In function âperfctr_set_cpus_allowedâ:
include/linux/perfctr.h:219: error: âstruct thread_structâ has no member named âperfctrâ
make[4]: *** [arch/x86/kernel/process_64.o] Error 1
make[3]: *** [arch/x86/kernel] Error 2
make[2]: *** [arch/x86] Error 2
make[1]: *** [binrpm-pkg] Error 2
make: *** [binrpm-pkg] Error 2

Please suggest how this error can be resolved?
Perfctr version:perfctr-2.6.40 PaPI version:papi-4.1.4
Also share the link for newer version download.
Thanks in advance,
Gaurav

Re: Unable to compile PAPI driver Perfctr on linux 2.6.32-71

PostPosted: Mon Oct 10, 2011 10:46 am
by vweaver1
If you are running on a 2.6.32 kernel you do not need to compile perfctr. You can use PAPI with the "perf_event" subsystem included in your kernel.