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. The application camera has stopped error

Hello Experts,

I am trying to run my camera on my emulator, but every time i try
running it i get the following error.

the application camera (process com.android.camera) has stopped
unexpectedly. please try again

Please advice

Massive thanks

-- 

2. Attaching file to email won't work...

Hi,

I am trying really hard to attach files to an email... but so far I
didn't manage to get it working, I have tried different things that I
found while searching for a solution, but I hadn't any luck so far...


If someone could help me out here, please, that would be great :)
Thanks in advance

Cheers


Here is what I have done...

String [] proj={MediaStore.Video.Media.DATA};
                                videocursor =
managedQuery( MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj,
null,null,null);
                                videocursor.moveToPosition(position);

                         Uri uri = Uri.parse("file://" +
videocursor.getString(0));

                        Intent sendIntent = new Intent(Intent.ACTION_SEND);
                        sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
                        sendIntent.setType("video/3gp");
                        sendIntent.setType("video/mp4");
                        startActivity(sendIntent);
                        Log.d("EditGallerView path", uri.toString());


-- 

3. Object Relational Mapping --- Tiny ORM on GitWeb

4. unexpected crash, date questions

5. need help with Views

6. What to do when - java.io.FileNotFoundException: No content provider??

7. ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE