Although I'm running a kernel 2.6.32-358.2.1.el6.x86_64, I want to patch this kernel with perfctr-2.6. When I run "/SRC/papi-5.1.0/src/perfctr-2.6.x/update-kernel --patch=2.6.32" from the kernel source folder, I get this error:
patching file arch/x86/include/asm/processor.h
Hunk #1 FAILED at 471.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/include/asm/processor.h.rej
Content of "arch/x86/include/asm/processor.h.rej" file is:
--- arch/x86/include/asm/processor.h.~1~ 2009-12-03 12:38:32.000000000 +0100
+++ arch/x86/include/asm/processor.h 2009-12-03 12:49:22.000000000 +0100
@@ -471,6 +471,8 @@
unsigned long iopl;
/* Max allowed port in the bitmap, in bytes: */
+/* performance counters */
+ struct vperfctr *perfctr;
/* MSR_IA32_DEBUGCTLMSR value to switch in if TIF_DEBUGCTLMSR is set. */
unsigned long debugctlmsr;
/* Debug Store context; see asm/ds.h */
So I can't patch kernen and I can't compile it.
Can anybody help me?