Hi,

did u have OPROFILE enabled in your kernel .config file??
       CONFIG_OPROFILE=y
       CONFIG_HAVE_OPROFILE=y


steps for oprofile build, using in android., sample o/p, analysis, etc
are documented at
http://omappedia.org/wiki/Android_Debugging#OProfile

-Deva


On Thu, Apr 8, 2010 at 11:54 AM, Namit Jain <[email protected]> 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: [email protected]
> website: http://groups.google.com/group/android-kernel
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to