Hello,

I'm new to OProfile and am running into the "Your kernel's Performance Events Subsystem does not support your processor type." message when running operf.

I built the 2.6.34.14 kernel and selected OProfile support when I configured the kernel:

CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_EVENTS=y
CONFIG_OPROFILE=y
# CONFIG_OPROFILE_EVENT_MULTIPLEX is not set
CONFIG_HAVE_OPROFILE=y

I also built oprofile-0.9.8 using --with-kernel to point to the kernel's source tree. I had to make a symlink to asm->asm_generic in the kernel's include dir. I also had to remove references to  PERF_RECORD_MISC_GUEST_KERNEL and to PERF_RECORD_MISC_GUEST_USER in libperf_events/operf_utils.cpp since these aren't in 2.6.34.

# diff operf_utils.cpp operf_utils.cpp.orig
734a735,740
>                       case PERF_RECORD_MISC_GUEST_KERNEL:
>                               domain = "guest OS";
>                               break;
>                       case PERF_RECORD_MISC_GUEST_USER:
>                               domain = "guest user";
>                               break;

I'm not sure why operf says my kernel's perf_events doesn't support my processor type (AMD Opteron 6220). Is it true that I can't use operf on this kernel/architecture? What I am missing here?

--
Kevin Van Workum, PhD
Sabalcore Computing Inc.
"Where Data Becomes Discovery"
http://www.sabalcore.com
877-492-8027 ext. 11