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. KGDB on Nexus One

I'm trying to do kernel debugging on my Nexus One, and I have been
following instructions from this website, 
http://bootloader.wikidot.com/android:kgdb;
but when I add the changes I run into errors, and I have been trying
to resolve them. I was wondering if someone got this to work or has
there been recent changes to the kernel to allow for kgdb? The branch
of the kernel that I have been modifying and using is: android-
msm-2.6.29-nexusone.

-- 

2. Custom Contact Sync Adapter - Icons and Titles

Hi guys,

Based on the SampleSyncAdapter provided in the Android API
documentation, I have developed an AccountAuthenticator and
SyncAdapter that allows people to initially sign-in to a web-based
account and then regularly sync their contacts list from the server to
their phone.

Now, this is all good and works fine, but there is a little section
that I have been unable to find any information on - I suspect that
this may be because of the specifics of the Samsung Galaxy S phone I'm
testing on (Android 2.2). Any clarification on this would be great
too.

When my contacts from the server are synced to my phone, they
correctly join together based on first name, last name, etc. If I
scroll down on one of these contacts to where it lists all the joined
contacts, I can see a little blue "F" icon for the facebook account, a
black "G" for the google account, etc, however my custom sync appears
as a 'generic' green icon (green background with a white upper-body
sillouette on it).

If I click on this Joined Contacts section, it lists all the accounts,
where Google is called "Google", Facebook is called "Facebook", and my
custon sync is called "Unknown".

When I defined my application, I have specified icons and titles for
the sync adapter, account authenticator, and so forth. There icons and
titles are all displayed correctly when I try to create an account
through the "Accounts and Sync" menu in the settings. ie, my account-
authenticator XML file is defined with the following values, which are
used correctly...
    android:icon="@drawable/icon"
    android:smallIcon="@drawable/small_icon"
    android:label="@string/sync_name"

My question is, where are the "green icon" and the associated title
defined for my application. Its obvious that I'm overlooking
something, as it detects it as a "unknown" type against the contact. I
suspect that it may be something that I need to set on the Account
itself somewhere, or possibly its specific to the Samsung Galaxy S?

Any help would be appreciated.

Thanks,
Michael.

-- 

3. Best practices for automatic retrying of AsyncTask

4. Eclipse shows error, but no error found

5. Predefined styles

6. (WTA) MyTouch Music

7. How to detect the task initiated by touching a button in the kernel?