I am running Linux 2.6.26 on an MPC8248.  I am using the command sequence below.
 
1.  Why, except for the ./opcontrol --init command, am I getting the " mount: mounting nodev on /dev/oprofile failed: Device or resource busy" message.  I see that load_module is called everytime I issue the opcontrol command.  Is this to be expected?
 
2.  Why is no sample file found?  I am getting a large oprofiled.log file.
 
 
Eclipse # ./opcontrol --init
 
Eclipse # ./opcontrol --no-vmlinux
 
Entering try_reset_sample_file
mount: mounting nodev on /dev/oprofile failed: Device or resource busy
 
Eclipse # ./opcontrol --image=/root/freescale_test
mount: mounting nodev on /dev/oprofile failed: Device or resource busy
 
Eclipse # ./opcontrol --start-daemon -V
mount: mounting nodev on /dev/oprofile failed: Device or resource busy
Parameters used:
SESSION_DIR /var/lib/oprofile
LOCK_FILE /var/lib/oprofile/lock
SAMPLES_DIR /var/lib/oprofile/samples
CURRENT_SAMPLES_DIR /var/lib/oprofile/samples/current
CPUTYPE timer
BUF_SIZE default value
BUF_WATERSHED default value
CPU_BUF_SIZE default value
SEPARATE_LIB 0
SEPARATE_KERNEL 0
SEPARATE_THREAD 0
SEPARATE_CPU 0
CALLGRAPH 0
VMLINUX none
KERNEL_RANGE
XENIMAGE none
XEN_RANGE
 
Eclipse # ./opcontrol --start
mount: mounting nodev on /dev/oprofile failed: Device or resource busy
Profiler running.
 
Eclipse # /root/freescale_test
 
Eclipse # ./opcontrol --dump
mount: mounting nodev on /dev/oprofile failed: Device or resource busy
 
Eclipse # ./opreport -c
./opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files