Description of problem: Modern x86 CPU's that are listed as i386/arch_perfmon seem to not work with the Fedora profile Version-Release number of selected component (if applicable): Both in Fedora 10: - oprofile-0.9.4-6.fc10.x86_64 and Fedora 11 rawhide: - oprofile-0.9.4-6.fc11.i586 How reproducible: Seems to reproduce on both my 64-bit Nehalem box and a 32-bit EeePC Atom laptop. Steps to Reproduce: 1. Use a modern CPU and a new kernel 2. Do "oprofile --start" 3. No profit Actual results: dmesg shows: oprofile: using NMI interrupt. and /dev/oprofile/cpu_type shows i386/arch_perfmon but doing "oprofile --start" gives: cpu_type 'unset' is not valid you should upgrade oprofile or force the use of timer mode cpu_type 'unset' is not valid you should upgrade oprofile or force the use of timer mode Using default event: cpu_type 'unset' is not valid you should upgrade oprofile or force the use of timer mode and profiling obviously doesn't work. Expected results: Expected useful system-wide profiling. It works on Core 2: Using default event: CPU_CLK_UNHALTED:100000:0:1:1 Using 2.6+ OProfile kernel interface. Reading module info. oprofiled: /proc/modules not readable, can't process module samples. Using log file /var/lib/oprofile/samples/oprofiled.log Daemon started. Profiler running. Additional info: This kind of makes oprofile totally useless on most modern Intel CPUs, whether low-performance netbook or high-performance workstation.
The changes to oprofile to support the Intel performance architecture were after 0.9.4 released (july 2008): 2008-11-12 Andi Kleen <andi> * events/i386/arch_perfmon/events: Fix event name to avoid parsing error 2008-08-28 Andi Kleen <andi> * events/i386/arch_perfmon/events: * events/i386/arch_perfmon/unit_masks: * events/Makefile.am: * libop/op_cpu_type.c: * libop/op_cpu_type.h: * libop/op_events.c: * libop/op_events.h: * libop/op_hw_specific.h: * libpp/op_header.cpp: * utils/ophelp.c: support for Intel arch perfmon Will need to back port the support.
Built a version of oprofile with the patches for Intel performance monitoring events. The build is available at: http://koji.fedoraproject.org/koji/buildinfo?buildID=99387 If it works, will build for Fedora 10/11.
I downloaded the x86-64 oprofile[-gui] RPM's, installed, and it seems to work fine on my Nehalem. I haven't tried the 32-bit build with Atom, but I assume it works too, since both Nehalem and Atom end up using the same "arch_perfmon" infrastructure. Thanks.
Did a quick test of the i586 rpm's on atom, and yes, from the limited testing that seems to all work too.
oprofile-0.9.4-7.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/oprofile-0.9.4-7.fc11
oprofile-0.9.4-7.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/oprofile-0.9.4-7.fc10
oprofile-0.9.4-7.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update oprofile'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-4043
oprofile-0.9.4-7.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update oprofile'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4581
oprofile-0.9.4-7.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
oprofile-0.9.4-7.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.