Hello,
I've successfully built and booted Linux 2.6.19.2 following the instructions by DrOctavius and others. I am also able to run my application.
Now I'd like to gather some profiling information on my application; I built it with the -pg option and ran it on the board. After processing the gmon.out with gprof on the host I get correct call graph information but the times for all functions are reported to be 0.00. This is despite running the application for several minutes.
I also checked and confirmed that I've set the kernel options:
CONFIG_PROFILING=y
CONFIG_OPROFILE=y
Has anybody successfully used gprof on this board with this BSP? Is there anything I'm missing out?
I have also tried using a cross compiled version of oprofile. However when I try running 'opcontrol --init' and 'opcontrol --start' on the board I get the following error messages:
grep: /etc/mtab: No such file or directory
mount: Mounting nodev on /dev/oprofile failed: Device or resource busy
Kernel support not available, missing opcontrol --init as root?
I checked and the /dev/oprofile directory does exist and looks to be populated with reasonable data.
Does anyone have suggestions on what I can try?
Regards
M.
|