OPROFILE cannot get performance data

I use OPROFILE to collect performance data. but i'm in trouble.

Here is my shell:

~ # rm -f /root/.oprofile/daemonrc
~ # opcontrol --setup --no-vmlinux
~ # opcontrol --init
~ # opcontrol --reset
~ # opcontrol --start
~ # opcontrol --status

Daemon running: pid 14909    
Separate options: none
vmlinux file: none    
Image filter: none    
Call-graph depth: 0

~ # opcontrol --shutdown

Stopping profiling.
Killing daemon.

~ # opreport

error: no sample files found: profile specification too strict?

~ # tree /var/lib/oprofile/

/var/lib/oprofile/
β”œβ”€β”€ abi
β”œβ”€β”€ complete_dump
β”œβ”€β”€ jitdump
β”œβ”€β”€ opd_pipe
└── samples
    β”œβ”€β”€ current
    β”‚   └── stats
    β”‚       β”œβ”€β”€ bt_lost_no_mapping
    β”‚       β”œβ”€β”€ cpu0
    β”‚       β”‚   β”œβ”€β”€ backtrace_aborted
    β”‚       β”‚   β”œβ”€β”€ sample_invalid_eip
    β”‚       β”‚   β”œβ”€β”€ sample_lost_overflow
    β”‚       β”‚   └── sample_received
    β”‚       β”œβ”€β”€ event_lost_overflow
    β”‚       β”œβ”€β”€ multiplex_counter
    β”‚       β”œβ”€β”€ sample_lost_no_mapping
    β”‚       └── sample_lost_no_mm
    └── oprofiled.log


5 directories, 13 files

~ # dmesg |grep oprofile

oprofile: using NMI interrupt.


~ # uname -a

Linux localhost.localdomain 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux

~ # cat /proc/cpuinfo 

processor   : 0    
vendor_id   : GenuineIntel   
cpu family  : 6    
model       : 44    
model name  : Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz   
stepping    : 2    
cpu MHz     : 2400.085   
cache size  : 12288 KB   
fpu     : yes    
fpu_exception   : yes    
cpuid level : 11    
wp      : yes   
flags       : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc up arch_perfmon pebs bts xtopology tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes hypervisor lahf_lm ida arat epb dts    
bogomips    : 4800.17    
clflush size    : 64   
cache_alignment : 64   
address sizes   : 40 bits physical, 48 bits virtual   
power management:
+5
source share
2 answers

Some types of CPUs do not provide the necessary hardware supporthardware performance counters. On these machines, OProfile reverts to use timer interrupt for profiling, back to using the real-time clock interrupt for sample collection.

, timer = 1 module.If OProfile , "timer = 1" modprobe. "opcontrol -init" opcontrol modprobe, "timer = 1"

modprobe oprofile timer=1

+1

RHEL6. - perf, .

0

All Articles