Hi,
 
I am currently trying to do profiling on a ARM7 on a patched kernel.   But I could not get the result of the profilling from opreport.  Is there something I did incorrect?  The pre-installed oprofile is installed on TIMER mode.
 
Below is a screen log of my trail.
 
root@picocpe:~# opcontrol --reset
root@picocpe:~# killall oprofiled
killall: oprofiled: no process killed
root@picocpe:~# opcontrol --init
root@picocpe:~# opcontrol --vmlinux=/root/vmlinux-linux-2.6.18-picochip-2.0.4-cpe20x
root@picocpe:~# opcontrol --session-dir=/tmp
root@picocpe:~# opcontrol --callgraph=40
root@picocpe:~# opcontrol --separate=kernel
root@picocpe:~# opcontrol --image=/root/221/rnc
root@picocpe:~# opcontrol --start
Using 2.6+ OProfile kernel interface.
Using log file /var/lib/oprofile/samples/oprofiled.log
Daemon started.
Profiler running.

run_binary_here /root/221/rnc

root@picocpe:~/221# opcontrol --stop
Stopping profiling.
root@picocpe:~/221# opcontrol --shutdown
Stopping profiling.
Killing daemon.
root@picocpe:~/221# opreport --callgraph
opreport error: /var/lib/oprofile/samples/current/{root}/root/221/rnc/{dep}/{root}/root/221/rnc/TIMER.0.0.all.all.all: Invalid argument
root@picocpe:~/221# cd ../
root@picocpe:~# opreport --callgraph
opreport error: /var/lib/oprofile/samples/current/{root}/root/221/rnc/{dep}/{root}/root/221/rnc/TIMER.0.0.all.all.all: Invalid argument
root@picocpe:~# opreport --callgraph --session-dir=/tmp
opreport error: No sample file found: try running opcontrol --dump
or specify a session containing sample files
root@picocpe:~# cd /tmp
root@picocpe:/tmp# ls
oprofile.HiJgpB  oprofile.RjLrQe  oprofile.oiL4kT
root@picocpe:/tmp# ls -ls
   0 -rw-------    1 root     root            0 Jan  1 00:14 oprofile.HiJgpB
   0 -rw-------    1 root     root            0 Jan  1 00:14 oprofile.RjLrQe
   0 -rw-------    1 root     root            0 Jan  1 00:13 oprofile.oiL4kT
root@picocpe:/tmp# cd
root@picocpe:~# cd .oprofile/
root@picocpe:~/.oprofile# ls
daemonrc
root@picocpe:~/.oprofile# more daemonrc
SESSION_DIR=/var/lib/oprofile
NR_CHOSEN=0
SEPARATE_LIB=1
SEPARATE_KERNEL=1
SEPARATE_THREAD=0
SEPARATE_CPU=0
VMLINUX=/root/vmlinux-linux-2.6.18-picochip-2.0.4-cpe20x
IMAGE_FILTER=/root/221/rnc
CPU_BUF_SIZE=0
CALLGRAPH=40
XENIMAGE=none
 
 
Best regards,
 
Arthur