Hi,
I followed the following steps provided by Mr. Konig.Yuan
1) opcontrol --setup, if it failed, the oProfile is not built in
your android kernel.
you need to enable the CONFIG_OPROFILE=y CONFIG_PROFILING=y
CONFIG_OPROFILE_ARMV6=y
(2) If the opcontrol --setup successed. cat /dev/oproflie/cpu_type
check whether it is arm/armv6
Seems google android supports arvm6 by default.
(3) opcontrol --event TLB_MISS:150000 (you can change the events)
(4) echo 1 >/dev/oprofile/enable to start profiling (seems
"opcontrol --start" not work).
(5) opcontrol --status ,check whether oprofiled is runing or not
(6) echo 0 >/dev/oprofile/enable to stop the profiling(seems
opcontrol --stop not work).
Sample data will be collected to /data/oprofile/samples/
current/
Things seems to work fine. but the log in /data/oprofile/samples/
oprofiled.log contains
oprofiled.log
****************************************************************************************
oprofiled started Thu Jan 1 00:04:18 1970
kernel pointer size: 4
Thu Jan 1 00:14:18 1970
Nr. sample dumps: 2
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
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0
Thu Jan 1 00:24:18 1970
Nr. sample dumps: 2
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
Nr. samples lost cpu buffer overflow: 0
Nr. samples received: 0
Nr. backtrace aborted: 0
Nr. samples lost invalid pc: 0
****************************************************************************************
There is nothing like /data/oprofile/samples/current/
- How to get the log files?
- How can I view them?
- Is there any configuration I have missed, using "oprofiled"?
Regards
Click
On Mar 3, 11:40 am, "[email protected]" <[email protected]> wrote:
> Hi,
>
> I am facing problem with startingOprofilein the device. Following
> things are done.
>
> 1. Enabledoprofilein Kernel.
> 2. The utils 'oprofiled' and 'opcontrol' is present in '/system/xbin'.
>
> When I run '#opcontrol --start' I get the following error.
> "Cannot open /dev/oprofile/enable: No such file or directory"
>
> I am using ARM-6410.
>
> Please provide with information.
>
> Regards
> click321
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---