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

Open discussion of PAPI.

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

Postby gaurav » Fri Oct 07, 2011 12:57 am

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
gaurav
 
Posts: 3
Joined: Fri Feb 11, 2011 7:10 am

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

Postby vweaver1 » Mon Oct 10, 2011 10:46 am

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.
vweaver1
 
Posts: 50
Joined: Wed Feb 17, 2010 4:02 pm


Return to General discussion

Who is online

Users browsing this forum: Rereesogy, Walterscum and 8 guests

cron