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. samsung kernel tree can't compile for non-s5p chips

The tree http://android.git.kernel.org/?p=kernel/samsung.git can't compile
for non-s5p chips, for example s3c64xx.
Samsung common file arch/arm/plat-samsung/pm.c  access non-common registers:
...
         /* clear wakeup_stat register for next wakeup reason */
         __raw_writel(__raw_readl(S5P_WAKEUP_STAT), S5P_WAKEUP_STAT);
...

Then get some compiling errors:

arch/arm/plat-samsung/dev-i2c1.c: In function 's3c_i2c1_force_stop':
arch/arm/plat-samsung/dev-i2c1.c:77: warning: unused variable 'ioarea'
  CC      arch/arm/plat-samsung/dev-fb.o
  CC      arch/arm/plat-samsung/dev-uart.o
  CC      arch/arm/plat-samsung/dev-usb.o
  CC      arch/arm/plat-samsung/dev-usb-hsotg.o
  CC      arch/arm/plat-samsung/dev-wdt.o
  CC      arch/arm/plat-samsung/dev-nand.o
  CC      arch/arm/plat-samsung/dev-rtc.o
  CC      arch/arm/plat-samsung/dev-adc.o
  CC      arch/arm/plat-samsung/dev-ts.o
  CC      arch/arm/plat-samsung/dma.o
  CC      arch/arm/plat-samsung/pm.o
arch/arm/plat-samsung/pm.c:33:33: error: plat/irq-eint-group.h: No such file
or directory
arch/arm/plat-samsung/pm.c: In function 's3c_pm_enter':
arch/arm/plat-samsung/pm.c:371: error: 'S5P_WAKEUP_STAT' undeclared (first
use in this function)
arch/arm/plat-samsung/pm.c:371: error: (Each undeclared identifier is
reported only once
arch/arm/plat-samsung/pm.c:371: error: for each function it appears in.)
arch/arm/plat-samsung/pm.c:382: error: 'S5P_CLK_DIV0' undeclared (first use
in this function)
arch/arm/plat-samsung/pm.c:397: error: implicit declaration of function
's5pv210_restore_eint_group'
make[1]: *** [arch/arm/plat-samsung/pm.o] Error 1

-- 

2. Issue with USB device current consumption in Self Powered mode

Hello,

As per USB compliance update, a device that is actively drawing more
than 100mA from USB must report itself as bus-powered. But currently
in android composite device, the bMaxPower is set to 500 mA and in
bmAttributes, it's set to Self Powered. This is wrong as per the UsB
spec and USBCV throws error as :
A SELF POWERED device cannot draw more than 100ma from the USB bus.
Device consumes > 100ma when SELF POWERED : 500mA

The following patch corrects this.

diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/
android.c
index 5e778e6..d8cf4c9 100644
--- a/drivers/usb/gadget/android.c
+++ b/drivers/usb/gadget/android.c
@@ -183,7 +183,7 @@ static struct usb_configuration
android_config_driver = {
        .setup          = android_setup_config,
        .bConfigurationValue = 1,
        .bmAttributes   = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER,
-       .bMaxPower      = 0xFA, /* 500ma */
+       .bMaxPower      = CONFIG_USB_GADGET_VBUS_DRAW / 2,
 };

 static int android_setup_config(struct usb_configuration *c,
@@ -273,6 +273,19 @@ static int android_bind(struct usb_composite_dev
*cdev)
        strings_dev[STRING_SERIAL_IDX].id = id;
        device_desc.iSerialNumber = id;

+       /*
+        * As per USB compliance update, a device that is actively drawing
+        * more than 100mA from USB must report itself as bus-powered in
+        * the GetStatus(DEVICE) call.
+        */
+       if (android_config_driver.bMaxPower <=
+                       (USB_SELF_POWER_VBUS_MAX_DRAW / 2)) {
+               android_config_driver.bmAttributes =
+                       USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER;
+               usb_gadget_set_selfpowered(gadget);
+       } else
+               android_config_driver.bmAttributes = USB_CONFIG_ATT_ONE;
+
        /* register our configuration */
        ret = usb_add_config(cdev, &android_config_driver);
        if (ret) {
@@ -296,7 +309,6 @@ static int android_bind(struct usb_composite_dev
*cdev)
                device_desc.bcdDevice = __constant_cpu_to_le16(0x9999);
        }

-       usb_gadget_set_selfpowered(gadget);
        dev->cdev = cdev;
        product_id = get_product_id(dev);
        device_desc.idProduct = __constant_cpu_to_le16(product_id);

-- 

3. playing RTSP over HTTP tunnel (RTP/TCP/AVP)

4. Axioo Tergoda Bikin Ponsel Pintar berbasi android

5. Orientation sensorLandscape on Froyo

6. top-5-nand-android-roms-for-htc-hd2

7. Keeping ProGuard away of R class