Hi All,
I am using Android 1.6 on OMAP3430 Board. With This SDK I have kernel
which is android-2.6.26.
When I want to add profile support, It shows only below two
lines .config file of kernel folder.
       CONFIG_OPROFILE=y
       CONFIG_HAVE_OPROFILE=y

But I do not see  CONFIG_OPROFILE_OMAP_GPTIMER=y option in .config
file.
Next, when I compile my kernel with above settings & use it on target
(OMAP3430) I get following.

# opcontrol --setup
No output.
#opcontrol --start
No Output.

#opcontrol --status

 It shows profile device location as /dev/oprofile/
Profile data folder as /data/oprofile

Counter 0 is disabled.
Counter 1 is disabled.
Counter 2 is disabled.
oprofiled is not running.

Can somebody identify why oprofiled is not starting?

Also, when I type cat /dev/oprofile/cpu_type , it shows output as
'timer'.

Below is the command I typed to compile my kernel on host.
# make ARCH=arm CROSS_COMPILE=/path/for/cross-compiler/toolchain
uImage

Does it mean that Hardware counter support is not available for my
Hardware?

How to overcome this situation?

Thanks,
Ashutosh Deshmukh



On Apr 8, 11:24 am, Namit Jain <namit.k.j...@gmail.com> wrote:
> Hi All ,
>
> Here are the steps I followed
>
> 1. opcontrol --setup
>
> 2. opcontrol --vmlinux=/sdcard/vmlinux --kernel-
> range=0xc002f000,0xc0326000 --event=CPU_CYCLES:64
>
> 3 opcontrol --start
> Run application
>
> 4  opcontrol --stop
>
> But i dont see any file created in /data/oprofile/samples.
>
> And also here is oprofiled.log
>
> -- OProfile Statistics --
> 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
>
> ---- Statistics for cpu : 1
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> Nr. samples lost invalid pc: 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
>
> Any idea why samples are not generated
>
> Regards
> Namit

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to