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. How to create bitmap directly from byte array?

Hi,
   Anyone' help is appreciated.
   I now want to create bitmap using a byte array which contains the
pixels data, one byte correspond one pixel.
   But I found that the no api of bitmap accept bytearray, only int
[] , 4 bytes correspond one pixel. If I convert my bytearray to int[],
it will cost too much memory.
   Do anyone know how to display the image using my bytearray
directly? Thanks a lot !

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

2. RIL Android Dev Phone 1 OS

So I am thinking of ordering a Android Dev Phone 1 and it says on the
product info page that:


Does that mean that the source (or a binary blob) of the Radio
Interface Layer (RIL) is available? I looked around on the Android
project source site and could not tell exactly if it is.

Does anyone know what is available for this? I doubt that the RIL has
been open sourced.

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

3. Hidden HTC Registry Edits for the G1? (Panorama camera feature etc.?)

4. why cannot stop my thread?

5. Ouch the dev 1 is too expensive!!! (outside of the US)

6. Why do getWidth() and related functions always return 0?

7. my custom Parcelable jams on cross-process read