Hi,
I have installed Oprofile 0.9.5/0.9.6 in my server, but it get no samples at all. The log of oprofile is:
-- OProfile Statistics --
Nr. sample dumps: 288
Nr. non-backtrace samples: 0
Nr. kernel samples: 0
Nr. lost samples (no kernel/user): 0
Nr. lost kernel samples: 0
Nr. incomplete code structs: 0
Nr. samples lost due to sample file open failure: 0
Nr. samples lost due to no permanent mapping: 0
Nr. event lost due to buffer overflow: 0
Nr. samples lost due to no mapping: 0
Nr. samples lost due to no mm: 0
---- Statistics for cpu : 7
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 6
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 5
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 4
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 3
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 2
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 1
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
---- Statistics for cpu : 0
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
So, this means it get no sample at all from the kernel. But I found that the oprofile kernel module is inserted as desired. And my oprofile command:
root 26394 0.0 0.0 8084 1792 ? S Jul20 0:00 /usr/bin/oprofiled --session-dir=/var/lib/oprofile --separate-lib=0 --separate-kernel=0 --separate-thread=0 --separate-cpu=0 --events=CPU_CLK_UNHALTED:121:0:100000:0:1:1, --vmlinux=/usr/src/kernels/linux-2.6.10/vmlinux --kernel-range=ffffffff80100000,ffffffff803ff73f
And my CPU is:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5440 @ 2.83GHz
stepping : 10
cpu MHz : 2826.257
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 7
cpu cores : 4
fpu : yes
fpu_exception : yes
cpuid level : 13
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 syscall nx lm pni monitor ds_cpl est tm2 cx16 xtpr
bogomips : 5652.56
clflush size : 64
cache_alignment : 64
address sizes : 38 bits physical, 48 bits virtual
power management:
Please help, thanks a lot!