linux-2.6.28-rc2 regression : oprofile doesnt work anymore ?

Eric Dumazet
2008-10-30T18:02:29Z

Hi

I tried to start my favorite tool, and discovered it wont fly on my HP BL460C G1

It samples few events then, seems to stop (no more NMI), other than that, machine
still running correctly.

(8 cpus like that one

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU E5450 @ 3.00GHz
stepping : 6
cpu MHz : 3000.253
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 lahf_lm tpr_shadow vnmi flexpriority
bogomips : 6000.50
clflush size : 64
power management:

It is working correctly on 2.6.27

I tried a git bisect but quickly found a point where machine was not useable...
(partly because of the problem with the VPD problem on 5708S (PCI: Limit VPD length for Broadcom 5708S)

# opcontrol --deinit
Stopping profiling.
Killing daemon.
# rm -rf /var/lib/oprofile/samples/current
# opcontrol --vmlinux=vmlinux --start
Using 2.6+ OProfile kernel interface.
Reading module info.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.

# opcontrol --dump; opreport
CPU: Core 2, speed 3000.25 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 10000
CPU_CLK_UNHALT...|
samples| %|
------------------
17 80.9524 vmlinux
2 9.5238 libc-2.3.4.so
1 4.7619 bash
1 4.7619 ld-2.3.4.so
# opcontrol --dump; opreport
CPU: Core 2, speed 3000.25 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 10000
CPU_CLK_UNHALT...|
samples| %|
------------------
17 80.9524 vmlinux
2 9.5238 libc-2.3.4.so
1 4.7619 bash
1 4.7619 ld-2.3.4.so
# opcontrol --dump; opreport
CPU: Core 2, speed 3000.25 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 10000
CPU_CLK_UNHALT...|
samples| %|
------------------
17 80.9524 vmlinux
2 9.5238 libc-2.3.4.so
1 4.7619 bash
1 4.7619 ld-2.3.4.so

# grep NMI /proc/interrupts
NMI: 8 2 2 6 11 7 6 5 Non-maskable interrupts
# grep NMI /proc/interrupts
NMI: 8 2 2 6 11 7 6 5 Non-maskable interrupts
# grep NMI /proc/interrupts
NMI: 8 2 2 6 11 7 6 5 Non-maskable interrupts
# grep NMI /proc/interrupts
NMI: 8 2 2 6 11 7 6 5 Non-maskable interrupts