Hey guys,

I am trying to get some profiling done on an ARM/Xscale425 system. For some
reason, I am not able to generate any samples. I tried oprofile on my x86
desktop and I got back excellent results. Btw, Thank you! to all the developers
for this great toolkit.
Here is what I am doing:
opcontrol --reset ; opcontrol --vmlinux=vmlinux; opcontrol --start; wait for a bit; opcontrol --shutdown. No samples as seen in /var/lib/oprofile/oprofiled.log

There are some suspicious messages when I run opcontrol --start
---------------------------------------------------------------------------
IRQ handler type mismatch for IRQ 18
current handler: ixp400_eth
oprofile: unable to request IRQ18 for XScale PMU
---------------------------------------------------------------------------

Can one of you guys please look at the logs and let me know why there are no samples generated? I even tried profiling different events.

Thanks,
-Ligeo.

The complete log (sorry if it is too long for this list)
=============================================
# mount
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw)
none on /sys type sysfs (rw)
10.0.6.61:/opt/oprofile on /opt/oprofile type nfs (rw,vers=2,rsize=8192,wsize=8192,hard,nolock,proto=u)nodev on /dev/oprofile type oprofilefs (rw)
# opcontrol --reset
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
# opcontrol --vmlinux=/opt/oprofile/vmlinux
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
# opcontrol --start --verbose
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
Parameters used:
CPUTYPE arm/xscale2
BUF_SIZE default value
CPU_BUF_SIZE default value
SEPARATE_LIB 0
SEPARATE_KERNEL 0
SEPARATE_THREAD 0
SEPARATE_CPU 0
CALLGRAPH 0
VMLINUX /opt/oprofile/vmlinux
KERNEL_RANGE c001e000,c01f3398
Using default event: CPU_CYCLES:100000:0:1:1
executing oprofiled --separate-lib=0 --separate-kernel=0 --separate-thread=0 --separate-cpu=0 --eventslEvents: CPU_CYCLES:254:0:100000:0:1:1,
Using 2.6+ OProfile kernel interface.
kernel_start = c001e000, kernel_end = c01f3398
Reading module info.
module oprofile start bf10f000 end bf113018
module mc_pci start bf0e7000 end bf10dcc8
module mc_wlan start bf0d6000 end bf0e52a8
module mc_hal start bf0a1000 end bf0d4b98
module ixp400_eth start bf09b000 end bf09f87c
module ixp400 start bf000000 end bf099b94
Using log file /var/lib/oprofile/oprofiled.log
Daemon started.
IRQ handler type mismatch for IRQ 18
current handler: ixp400_eth
oprofile: unable to request IRQ18 for XScale PMU
Profiler running.
# find /proc/irq
/proc/irq
/proc/irq/31
/proc/irq/30
/proc/irq/29
/proc/irq/28
/proc/irq/28/wlan0
/proc/irq/27
/proc/irq/26
/proc/irq/25
/proc/irq/24
/proc/irq/23
/proc/irq/22
/proc/irq/21
/proc/irq/20
/proc/irq/19
/proc/irq/18
/proc/irq/18/ixp400_eth
/proc/irq/17
/proc/irq/16
/proc/irq/15
/proc/irq/15/serial
/proc/irq/14
/proc/irq/13
/proc/irq/12
/proc/irq/11
/proc/irq/10
/proc/irq/9
/proc/irq/8
/proc/irq/7
/proc/irq/6
/proc/irq/5
/proc/irq/4
/proc/irq/3
/proc/irq/3/ixp400_eth
/proc/irq/2
/proc/irq/2/IXP4XX NPE-C
/proc/irq/1
/proc/irq/1/IXP4XX NPE-B
/proc/irq/0
/proc/irq/0/IXP4XX NPE-A
# opcontrol --shutdown
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
Stopping profiling.
Killing daemon.
# cat /var/lib/oprofile/oprofiled.log
oprofiled started Thu Jan  1 00:07:00 1970
kernel pointer size: 4
Read buffer of 1467 entries.

.. lots of 'CPU_SWITCH to 0' lines ...

Thu Jan  1 00:07:46 1970

Nr. sample dumps: 1
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
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
Nr. backtrace aborted: 0
oprofiled stopped Thu Jan  1 00:07:46 1970
=================================================