From: bdg <bis...@gm...> - 2009-09-25 05:00:58
|
Hi, I am adding the PMNC register dump in case it helps. After starting the profiler: ------------------------ PMNC =0x41002008 CNTENS=0x80000000 INTENS=0x80000000 FLAGS =0x00000000 SELECT=0x00000000 CCNT =0xfffdb610 CNT[0] count =0x00000000 CNT[0] evtsel=0x00000000 CNT[1] count =0x00000000 CNT[1] evtsel=0x00000000 CNT[2] count =0x00000000 CNT[2] evtsel=0x00000000 CNT[3] count =0x00000000 CNT[3] evtsel=0x00000000 ---------------- After stopping the profiler ------------------------- PMNC =0x41002009 CNTENS=0x80000000 INTENS=0x80000000 FLAGS =0x80000000 SELECT=0x00000003 CCNT =0x8df3a2f9 CNT[0] count =0x00000000 CNT[0] evtsel=0x00000000 CNT[1] count =0x00000000 CNT[1] evtsel=0x00000000 CNT[2] count =0x00000000 CNT[2] evtsel=0x00000000 CNT[3] count =0x00000000 CNT[3] evtsel=0x00000000 bdg wrote: > > Hi All, > > We are new to linux and to oprofile and need some help. > > We use the oprofile code v0.9.5 on linux kernel v2.6.29 > > We tried cross-compiling the latest oprofile code for arm-linux on linux > kernel v2.6.29 and was able to start the profiler. However we could not > see any sample getting logged. The value stored in file > /var/lib/oprofile/samples/current/stats/cpu0/sample_received is 0 which is > same as in files backtrace_aborted, sample_lost_overflow and > sample_invalid_eip. > > The profiler was started with following commands: > ======================================= > opcontrol --vmlinux=/root/vmlinux --event=CPU_CYCLES:150000 > opcontrol --start > opcontrol --status #this showed that the profiler daemon is running > Then after sometime we did > opcontrol --dump > opcontrol --stop > opcontrol --shutdown > ========================================= > When we run the opreport tool, it says "error: no sample files found: > profile specification too strict? " > Interchanging the sop and dump calls do not creat any difference. > > The oprofiled.log is as follows: > ===================================================== > oprofiled started Thu Jan 1 01:01:00 1970 > kernel pointer size: 4 > > Thu Jan 1 01:02:38 1970 > > -- OProfile Statistics -- > Nr. sample dumps: 4 > 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. backtraces skipped due to no file mapping: 0 > Nr. samples lost due to no mm: 0 > > ---- Statistics for cpu : 0 > Nr. samples lost cpu buffer overflow: 0 > Nr. samples received: 0 > Nr. backtrace aborted: 0 > Nr. samples lost invalid pc: 0 > oprofiled stopped Thu Jan 1 01:02:38 1970 > ===================================== > > The /.oprofile/deamonrc file is as follows: > ==================================== > SESSION_DIR=/var/lib/oprofile > CHOSEN_EVENTS_0=CPU_CYCLES:150000:0:1:1 > NR_CHOSEN=1 > SEPARATE_LIB=0 > SEPARATE_KERNEL=0 > SEPARATE_THREAD=0 > SEPARATE_CPU=0 > VMLINUX=/root/vmlinux > IMAGE_FILTER= > CPU_BUF_SIZE=0 > CALLGRAPH=0 > KERNEL_RANGE=c0037000,c0407000 > XENIMAGE=none > ======================================== > > Following an earlier mail in this forum we did a grep on > "tracing-core-for-linus" in our kernel source tree to check for any patch > but found nothing. > > On debugging the profiler driver we found that the variable "available" in > function sync_buffer() in file drivers/oprofile/buffer_sync.c is always > getting a value 0 and hence no sample is getting added. > > ====== > Can someone please help us on this? > > Thanks in advance. > > > -- View this message in context: http://www.nabble.com/No-samples-created-when-running-oprofile-on-armv7-tp25569785p25606566.html Sent from the oprofile-list mailing list archive at Nabble.com. |