OProfile driver in the 2.6 kernel works in UP kernels; this was not the case with OProfile driver in the 2.4 kernels. The 2.6 driver has fallback to a timer interrupt mechanism that will work in the UP kernels. Enabling this will avoid having to tell people to install SMP kernels to do performance measurements. It will also allow people to do performance characterization and tuning on UP machine machines such as laptops, where improved performance can reduce power consumption and increased battery life.
Created attachment 106503 [details] patch to enable oprofile on UP kernel A minimal enabling so that the oprofile timer interrupt mechanism is available to collect data on the UP kernel.
Internal RFE bug #139031 entered; will be considered for future releases.
*** Bug 144200 has been marked as a duplicate of this bug. ***
This change... +CONFIG_PROFILING=y +CONFIG_OPROFILE=m is present in kernel-2.6.9-i686.config, in kernel-2.6.9-6.31.EL. Is this all that is needed? Done for U1?
should be, though I've personally not tested the functionality.
I installed kernel-2.6.9-6.31.EL.i686.rpm, and verified that it worked as expected on a UP Athlon machine. $ opreport --long-filenames CPU: CPU with timer interrupt, speed 0 MHz (estimated) Profiling through timer interrupt TIMER:0| samples| %| ------------------ 3253 99.1768 /usr/lib/debug/lib/modules/2.6.9-6.31.EL/vmlinux 11 0.3354 /bin/bash 9 0.2744 /lib/tls/libc-2.3.4.so 3 0.0915 /ext3 3 0.0915 /usr/bin/oprofiled 1 0.0305 /jbd