Oprofile querry

by click...@gmail.com » Tue, 03 Mar 2009 14:40:30 GMT


Sponsored Links
 Hi,

I am facing problem with starting Oprofile in the device. Following
things are done.

1. Enabled oprofile in 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


--~--~---------~--~----~------------~-------~--~----~



Oprofile querry

by click...@gmail.com » Wed, 04 Mar 2009 13:07:20 GMT


 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






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Oprofile querry

by ATC » Sat, 07 Mar 2009 10:53:15 GMT


 id you have any success resolving it?

On Mar 3, 11:07 pm, "click...@gmail.com" <click...@gmail.com> wrote:

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Demo vs Paid and that 15 minutes of refund policy

Now that the market refund policy has changed to 15 minutes, it has
become more important to have a demo version for every paid app. What
are the best practices to maintain a demo version for a paid app,
specially when the development is done in Eclipse. I know that using
ant build file lot of crazy stuff can be done. However one would like
to avoid dealing with ant build files for hobby app development.

-- 

2. LocationManager.KEY_PROXIMITY_ENTERING

"LocationManager.KEY_PROXIMITY_ENTERING" is true for the intent of a 
proximityAlert I was adding. No matter where I am going, I never receive 
"false". Anybody else seeing this?

-- 

3. Developers near Orlando?

4. XmlSerializer issue

5. dell streak Rp3.500.000 bnib

6. SOLD WTS: Car Holder Moto Droid 1 - 2nd (original)

7. Android dan ios