Does anyone use the tool "oprofile" in the open source code

by luyen » Tue, 24 Feb 2009 07:22:51 GMT


Sponsored Links
 an user has this question:

Does anyone try the tool "oprofile" in the source code folder
"external".
When I use command "oprofile -r start", it will show "Unable to open
cpu_type file for reading Make sure you have done opcontrol --init"
After I finish opcontrol --init, it show the same.
Does I need to set up something first, there is no guide to tell how
to use it.

from:  http://androidcore.com/android-community.html?func=view& ;catid=22&id=17

Does anyone has the answer?
--~--~---------~--~----~------------~-------~--~----~



Does anyone use the tool "oprofile" in the open source code

by Konig.Yuan » Fri, 27 Feb 2009 12:46:49 GMT


 (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/










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


Sponsored Links


Does anyone use the tool "oprofile" in the open source code

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


 Hi,



I am trying to get OProfile working on Android



I have built the kernel with



make CONFIG_OPROFILE=y CONFIG_PROFILING=y CROSS_COMPILE=arm-none-eabi-
uImage



However, when I try to run it, it says the oprofiled is not running.
Is there quick way to make sure that oprofiled is running?



# echo 1 >/dev/oprofile/enable



# opcontrol --status

Driver directory: /dev/oprofile

Session directory: /data/oprofile

Counter 0 disabled

Counter 1 disabled

Counter 2 disabled

oprofiled is not running








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



Other Threads

1. Layanan wimax 4g

Dear androiders

Wah senangnya yg punya hh buat wimax
Coba browsing ke www.sitrawimax.com

regard
satriyo

sending from my droid device
powered by flexi unlimited
cintailah produk-produk indonesia

email & gtalk : gay...@gmail.com
YM : ryovie1...@yahoo.com
cnectd : satriyo

-- 
===============
"

2. (WTS) HTC desire garansi 2nd htc indonesia

Mau jual krn bosen n ngincer
Mainan lain.
Htc desire 2nd,
Pembelian oktober 2010. Garansi masih panjaaaaang
Kondisi fisik Mulus terpasang anti glare. Fungsi normal 100 present Saat ini
sudah froyo n rooted. Custom rom bisa disertakan di micro SD 2gb...supaya
bisa ganti rom
Posisi jakarta
SMS di 081315866390
Or japri ke email ini

-- 
===============
"

3. Cancel button on a status bar Notification.

4. App help

5. Bluetooth pairing request dialog

6. Publishing an application on an own web server

7. Encryption on Android devices