OSDN Git Service

android-x86/system-extras.git
12 years agoatrace: make cpu freq governor tracing optional
Jamie Gennis [Tue, 10 Apr 2012 00:33:45 +0000 (17:33 -0700)]
atrace: make cpu freq governor tracing optional

This change allows atrace to run on kernels that do not have CPU frequency
interactive governor tracing enabled in the kernel.

Change-Id: Ibfde751da7b6cc9a55794355093a37feb28f5e52

12 years agoMerge "First checkin of cpustats"
Eric Rowe [Thu, 5 Apr 2012 01:31:20 +0000 (18:31 -0700)]
Merge "First checkin of cpustats"

12 years agoFirst checkin of cpustats
Eric Rowe [Mon, 26 Mar 2012 23:55:30 +0000 (16:55 -0700)]
First checkin of cpustats

This utility is similar to top but with two major differences. 1) It
removes the overhead of gathering process/thread stats. 2) It measures
the time spent in each frequency for each sample duration.

Bug: 6147843
Change-Id: Ie9073470f8cd1778fe902ea6383bef2311e91cf1

12 years agosu: do uid check earlier.
Nick Kralevich [Mon, 2 Apr 2012 20:29:35 +0000 (13:29 -0700)]
su: do uid check earlier.

Change-Id: Ied4894019d2b0021e7f727569ff85650d209e5da

12 years agoresolved conflicts for merge of 8f9b41d9 to master
Kenny Root [Sat, 31 Mar 2012 03:38:32 +0000 (20:38 -0700)]
resolved conflicts for merge of 8f9b41d9 to master

Change-Id: I9af02b9bba1176174540c849f905dece8ade54d8

12 years agoMerge changes I4f6755fe,Ief9c44ee
Kenny Root [Fri, 30 Mar 2012 22:18:08 +0000 (15:18 -0700)]
Merge changes I4f6755fe,Ief9c44ee

* changes:
  Extend make_ext4fs() interface to allow callers to pass selabel_handle.
  Extend make_ext4fs to support setting SELinux security contexts in ext4 images.

12 years agoExtend make_ext4fs() interface to allow callers to pass selabel_handle.
Stephen Smalley [Thu, 9 Feb 2012 19:19:24 +0000 (14:19 -0500)]
Extend make_ext4fs() interface to allow callers to pass selabel_handle.

Extend make_ext4fs() to allow callers to pass an selabel_handle for
labeling files in the ext4 image.  Previously, this was only done
via the _internal() function.  This extends the library interface
so that it can be used by the recovery and updater code for labeling
files from OTA and update packages.

Change-Id: I4f6755fe7c65b69587276d17ef5b971ebec0161f

12 years agoExtend make_ext4fs to support setting SELinux security contexts in ext4 images.
Stephen Smalley [Fri, 13 Jan 2012 14:00:56 +0000 (09:00 -0500)]
Extend make_ext4fs to support setting SELinux security contexts in ext4 images.

Extend make_ext4fs with support for looking up the right security context from
the file_contexts configuration and setting it in the generated image.  This is
similar to the existing support for looking up the UID/GID/mode via
android_filesystem_config.h and setting it, but via configuration rather than
defined in a header.

Change-Id: Ief9c44eeaaca4a44100a384b063f40b185469be3

12 years agomake_ext4fs: Allow custom filesystem configs
Kenny Root [Thu, 29 Mar 2012 21:43:22 +0000 (14:43 -0700)]
make_ext4fs: Allow custom filesystem configs

Before we used the "fs_config" function from
android_filesystem_config.h, but we want to use make_ext4fs with ASEC
containers which will not always be mounted in the same place.

Bug: 6258335
Change-Id: Icf62e3c46425f01434bf92a9823f8d542b0fa5b1

12 years agobugmailer: prevent building on pdk builds
Colin Cross [Mon, 26 Mar 2012 22:25:59 +0000 (15:25 -0700)]
bugmailer: prevent building on pdk builds

bugmailer is in java, so it won't build on pdk builds.  It should
probably be moved out of system/extras.

Change-Id: I9423b565cff2078290390fab22d6622a06959b05

12 years agoMerge "Pass extra parameter for user id."
Amith Yamasani [Thu, 22 Mar 2012 22:12:05 +0000 (15:12 -0700)]
Merge "Pass extra parameter for user id."

12 years agoMerge remote-tracking branch 'goog/ics-aah-exp'
Mike Lockwood [Wed, 21 Mar 2012 22:40:53 +0000 (15:40 -0700)]
Merge remote-tracking branch 'goog/ics-aah-exp'

12 years agoPass extra parameter for user id.
Amith Yamasani [Tue, 20 Mar 2012 20:25:09 +0000 (13:25 -0700)]
Pass extra parameter for user id.

Change-Id: I2c2ed833946e18aeabbd7e0a7cb3e515a0d95d4e

12 years agoMerge "perm_checker: fix permissions."
Nick Kralevich [Wed, 14 Mar 2012 22:38:10 +0000 (15:38 -0700)]
Merge "perm_checker: fix permissions."

12 years agoperm_checker: fix permissions.
Nick Kralevich [Wed, 14 Mar 2012 22:34:32 +0000 (15:34 -0700)]
perm_checker: fix permissions.

/data/local permissions have changed. Adjust the config file.

Tighten up requirements for /data/local/tmp

Change-Id: I06ef9a97d6c7c0b360c53b82637a19207db4a28c

12 years agoUpdate to follow IActivityManager change.
Dianne Hackborn [Wed, 14 Mar 2012 17:41:22 +0000 (10:41 -0700)]
Update to follow IActivityManager change.

Change-Id: I5ea3fcaffdaaae6bfeb0edd878fc952952012396

12 years agoMerge "Fix # of arguments to startActivity"
Siva Velusamy [Tue, 13 Mar 2012 01:40:32 +0000 (18:40 -0700)]
Merge "Fix # of arguments to startActivity"

12 years agoFix # of arguments to startActivity
Siva Velusamy [Tue, 13 Mar 2012 01:39:57 +0000 (18:39 -0700)]
Fix # of arguments to startActivity

Change-Id: I376864150349862e9dcb3b964aa316559c904a4a

12 years agoatrace: add some more command line options
Jamie Gennis [Tue, 6 Mar 2012 03:10:37 +0000 (19:10 -0800)]
atrace: add some more command line options

This change adds two command line optiosn:
  -b for setting the trace buffer size
  -f for enabling tracing of the CPU frequency
  -l for enabling tracing of the CPU load

Change-Id: Id99851a4c4eba5cfed218f29081e072bbe492133

12 years agoatrace: include the binary in debug builds
Jamie Gennis [Sun, 26 Feb 2012 23:50:35 +0000 (15:50 -0800)]
atrace: include the binary in debug builds

This change makes the atrace module tag 'debug' so that the binary is
included in all debug builds.

Change-Id: I1fdb87be0461daf686e52ded04b37b9a122edea3

12 years agoAdd the atrace utility.
Jamie Gennis [Thu, 23 Feb 2012 22:16:05 +0000 (14:16 -0800)]
Add the atrace utility.

This change adds a new system binary to help with capturing and dumping
kernel traces.

Change-Id: If2fc074480f822588a4c171312dc4c04fd305356

12 years agoPass file descriptor instead of file name
Anatol Pomazau [Wed, 11 Jan 2012 23:12:27 +0000 (15:12 -0800)]
Pass file descriptor instead of file name

Passing a file descriptor to make_ext4fs_internal() is more flexible.
We can use tmpfile() to create a temporary file.
tmpfile() is better than other solutions because it unlinks the file
right after creating it, so closing fd effectively removes temp file.
Thus we don't have to worry about large temp files accidently left
on the filesystem in case of the program crash.

Change-Id: Iba3758a0e13a898920d30d7fa5da696c22daa2b7

12 years agoMerge "img2simg: Drop using endian.h"
Scott Anderson [Fri, 17 Feb 2012 16:56:05 +0000 (08:56 -0800)]
Merge "img2simg: Drop using endian.h"

12 years agoimg2simg: Drop using endian.h
Scott Anderson [Thu, 16 Feb 2012 23:50:07 +0000 (15:50 -0800)]
img2simg: Drop using endian.h

All our hosts are currently little-endian, so drop using endian.h
in favor of being able to build and run on all hosts.

Change-Id: Iea86cf9387940448c9c6d356c7e16acc871d5467
Signed-off-by: Scott Anderson <saa@android.com>
12 years agoext4_utils: simg2img: Add LOCAL_MODULE_TAGS in Android.mk
Scott Anderson [Wed, 15 Feb 2012 23:44:39 +0000 (15:44 -0800)]
ext4_utils: simg2img: Add LOCAL_MODULE_TAGS in Android.mk

1) simg2img was being installed on the device.  For the
BUILD_EXECUTABLE add an "optional" tag (instead of the implied
default of "user") so this does not happen.

2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.

Change-Id: Ib8407e366b8154772e3b78cabb09655851ce77de
Signed-off-by: Scott Anderson <saa@android.com>
12 years agoAdapt ext4_utils for windows.
Raphael Moll [Sat, 4 Feb 2012 07:02:33 +0000 (23:02 -0800)]
Adapt ext4_utils for windows.

This is not a full port of ext4_utils for windows.
Instead it merely enables use to use the library
for the 'create an empty fs image' functionality
as used by 'fastboot format'.

Change-Id: Ia1ffacd64e4233c4fbb369c4ac5927ccd72ac526

12 years agoMerge "Broke the build. Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and...
Scott Anderson [Thu, 16 Feb 2012 16:55:48 +0000 (08:55 -0800)]
Merge "Broke the build. Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img""

12 years agoBroke the build.
Scott Anderson [Thu, 16 Feb 2012 16:55:37 +0000 (08:55 -0800)]
Broke the build.
Revert "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"

This reverts commit eec2bb9fda7772d8927603a29ca0880b8b10a8ed

12 years agoMerge "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"
Scott Anderson [Thu, 16 Feb 2012 16:39:43 +0000 (08:39 -0800)]
Merge "ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img"

12 years agoext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img
Scott Anderson [Wed, 15 Feb 2012 23:44:39 +0000 (15:44 -0800)]
ext4_utils: Fix LOCAL_MODULE_TAGS on img2simg and simg2img

There were a few problems with the LOCAL_MODULE_TAGS here:

1) simg2img was being installed on the device.  Add an "optional"
tag for the BUILD_EXECUTABLE from the implied default of user so
this does not happen.

2) In preparation of removing simg2img from user_tags.mk, add a
"debug" tag to the BUILD_HOST_EXECUTABLE so it will be put in the
host bin subdirectory for eng and userdebug builds.

3) img2simg was not being put into the host bin subdirectory by
default.  By changing the TAG from optional to debug, it is now
put there for eng and userdebug builds.

Change-Id: I3182781e78ffde2208644660d33b7eb068147561
Signed-off-by: Scott Anderson <saa@android.com>
12 years agoAdd simg_dump.py python script to dump sparse image information
Scott Anderson [Thu, 9 Feb 2012 01:36:28 +0000 (17:36 -0800)]
Add simg_dump.py python script to dump sparse image information

Change-Id: I97c1aec040b46c36bde82f7726a6d35b28ac6733
Signed-off-by: Scott Anderson <saa@android.com>
12 years agoMerge "Add img2simg tool that splits a large image into <n> sparse files"
Scott Anderson [Wed, 15 Feb 2012 00:39:53 +0000 (16:39 -0800)]
Merge "Add img2simg tool that splits a large image into <n> sparse files"

12 years agoMerge "Fix supplicant start"
Irfan Sheriff [Tue, 14 Feb 2012 23:38:24 +0000 (15:38 -0800)]
Merge "Fix supplicant start"

12 years agoAdd img2simg tool that splits a large image into <n> sparse files
Scott Anderson [Tue, 7 Feb 2012 18:29:20 +0000 (10:29 -0800)]
Add img2simg tool that splits a large image into <n> sparse files

img2simg can take a large binary and chop it into multiple sparse
images.  Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.

    Usage: img2simg [OPTIONS] <raw_image_file>
    The <raw_image_file> will be split into as many sparse
    files as needed.  Each sparse file will contain a single
    DONT CARE chunk to offset to the correct block and then
    a single RAW chunk containing a portion of the data from
    the raw image file.  The sparse files will be named by
    appending a number to the name of the raw image file.

    OPTIONS (Defaults are enclosed by square brackets):
      -s SUFFIX      Format appended number with SUFFIX [%03d]
      -B SIZE        Use a block size of SIZE [4K]
      -C SIZE        Use a chunk size of SIZE [64M]
    SIZE is a decimal integer that may optionally be
    followed by a suffix that specifies a multiplier for
    the integer:
   c         1 byte (the default when omitted)
   w         2 bytes
   b         512 bytes
   kB        1000 bytes
   K         1024 bytes
   MB        1000*1000 bytes
   M         1024*1024 bytes
   GB        1000*1000*1000 bytes
   G         1024*1024*1024 bytes

Change-Id: I5593be1c195e04d83c99454e996763b841951dd7
Signed-off-by: Scott Anderson <saa@android.com>
12 years agoMerge "Revert "Add img2simg tool that splits a large image into <n> sparse files""
Scott Anderson [Wed, 8 Feb 2012 20:47:24 +0000 (12:47 -0800)]
Merge "Revert "Add img2simg tool that splits a large image into <n> sparse files""

12 years agoRevert "Add img2simg tool that splits a large image into <n> sparse files"
Scott Anderson [Wed, 8 Feb 2012 20:00:49 +0000 (12:00 -0800)]
Revert "Add img2simg tool that splits a large image into <n> sparse files"

This reverts commit dba7d246a20d14663c2e90b2fa9051894e3c7e1b

Broke the build:
system/extras/ext4_utils/img2simg.c:23:20: error: endian.h: No such file or directory
system/extras/ext4_utils/img2simg.c: In function ‘main’:
system/extras/ext4_utils/img2simg.c:262: warning: implicit declaration of function ‘htole32’
system/extras/ext4_utils/img2simg.c:263: warning: implicit declaration of function ‘htole16’
make: * [out/host/darwin-x86/obj/EXECUTABLES/img2simg_intermediates/img2simg.o] Error 1

12 years agoMerge "munmap() should be called with the same length as mmap()"
Anatol Pomazau [Wed, 8 Feb 2012 17:23:58 +0000 (09:23 -0800)]
Merge "munmap() should be called with the same length as mmap()"

12 years agoAdd img2simg tool that splits a large image into <n> sparse files
Scott Anderson [Tue, 7 Feb 2012 18:29:20 +0000 (10:29 -0800)]
Add img2simg tool that splits a large image into <n> sparse files

img2simg can take a large binary and chop it into multiple sparse
images.  Each sparse image that is output has two chunks: a Don't
Care chunk to offset to where the data should be placed, and a
Raw chunk that actually contains the data to be placed there.
So, for example, if you have a 12 GB random file that you want to
place into userdata for testing e-MMC, you can run img2simg on it
to chop it into multiple sparse files and then "fastboot flash
userdata" on each of the sparse files.

    Usage: img2simg [OPTIONS] <raw_image_file>
    The <raw_image_file> will be split into as many sparse
    files as needed.  Each sparse file will contain a single
    DONT CARE chunk to offset to the correct block and then
    a single RAW chunk containing a portion of the data from
    the raw image file.  The sparse files will be named by
    appending a number to the name of the raw image file.

    OPTIONS (Defaults are enclosed by square brackets):
      -s SUFFIX      Format appended number with SUFFIX [%03d]
      -B SIZE        Use a block size of SIZE [4K]
      -C SIZE        Use a chunk size of SIZE [64M]
    SIZE is a decimal integer that may optionally be
    followed by a suffix that specifies a multiplier for
    the integer:
   c         1 byte (the default when omitted)
   w         2 bytes
   b         512 bytes
   kB        1000 bytes
   K         1024 bytes
   MB        1000*1000 bytes
   M         1024*1024 bytes
   GB        1000*1000*1000 bytes
   G         1024*1024*1024 bytes

Change-Id: I6d3ee9deef21dcbc6bc95e2c5b822154705b4e35
Signed-off-by: Scott Anderson <saa@android.com>
12 years agomunmap() should be called with the same length as mmap()
Anatol Pomazau [Wed, 8 Feb 2012 00:12:44 +0000 (16:12 -0800)]
munmap() should be called with the same length as mmap()

Change-Id: Ia4fc57d5111fac78f6647af279dd68808f3d6856

12 years agoFix indentation
Anatol Pomazau [Tue, 7 Feb 2012 17:49:57 +0000 (09:49 -0800)]
Fix indentation

Change-Id: I3c823ace4f0ab6952852b99de366cd33592df675

12 years agoRemove trailing whitespaces
Anatol Pomazau [Tue, 7 Feb 2012 01:42:27 +0000 (17:42 -0800)]
Remove trailing whitespaces

Change-Id: Ia0537cefe4dc121d5d8db7479154853200790605

12 years agoReplace 8-spaces indentation with tab
Anatol Pomazau [Tue, 7 Feb 2012 01:13:51 +0000 (17:13 -0800)]
Replace 8-spaces indentation with tab

8-space indentation looks completely alien here.
One should use either 4-spaces indentation or tab symbol.
Tab is more popular in system projects so use it here as well.

Change-Id: Ibfdb4b2a49996453731fc1e8bbefa158bde49e28

12 years agoRevert "Pass file descriptor instead of file name"
Anatol Pomazau [Sat, 4 Feb 2012 02:20:07 +0000 (18:20 -0800)]
Revert "Pass file descriptor instead of file name"

This reverts commit 89ddaab97e9214cf331baffee2de4595ad14dc79

12 years agoPass file descriptor instead of file name
Anatol Pomazau [Wed, 11 Jan 2012 23:12:27 +0000 (15:12 -0800)]
Pass file descriptor instead of file name

Passing a file descriptor to make_ext4fs_internal() is more flexible.
We can use tmpfile() to create a temporary file.
tmpfile() is better than other solutions because it unlinks the file
right after creating it, so closing fd effectively removes temp file.
Thus we don't have to worry about large temp files accidently left
on the filesystem in case of the program crash.

Change-Id: I44146704572c314e1d6cfca7ce918efa7fb92a7a

12 years agoRevert "Pass file descriptor instead of file name"
Anatol Pomazau [Fri, 3 Feb 2012 18:57:40 +0000 (10:57 -0800)]
Revert "Pass file descriptor instead of file name"

This reverts commit 93eb1dc9e68d2e9dea94f56d8bce478c1a52b354

12 years agoPass file descriptor instead of file name
Anatol Pomazau [Wed, 11 Jan 2012 23:12:27 +0000 (15:12 -0800)]
Pass file descriptor instead of file name

Passing a file descriptor to make_ext4fs_internal() is more flexible.
We can use tmpfile() to create a temporary file.
tmpfile() is better than other solutions because it unlinks the file
right after creating it, so closing fd effectively removes temp file.
Thus we don't have to worry about large temp files accidently left
on the filesystem in case of the program crash.

Change-Id: I44109e98854c314e1d6cfca7ce918efa7fb92a7a

12 years agoPass file descriptor instead of file name
Anatol Pomazau [Wed, 11 Jan 2012 23:12:27 +0000 (15:12 -0800)]
Pass file descriptor instead of file name

Passing a file descriptor to make_ext4fs_internal() is more flexible.
We can use tmpfile() to create a temporary file.
tmpfile() is better than other solutions because it unlinks the file
right after creating it, so closing fd effectively removes temp file.
Thus we don't have to worry about large temp files accidently left
on the filesystem in case of the program crash.

Change-Id: I44109e98854c314e1d6cfca7ce918efa7fb92a7a

12 years agoMerge "Fix various issues in procrank."
Selim Gurun [Wed, 25 Jan 2012 17:30:27 +0000 (09:30 -0800)]
Merge "Fix various issues in procrank."

12 years agoam 178509ef: am fa351ab2: Only do bugreport on user build with ADB enabled
Kenny Root [Wed, 25 Jan 2012 16:57:41 +0000 (08:57 -0800)]
am 178509ef: am fa351ab2: Only do bugreport on user build with ADB enabled

* commit '178509efc415f365ad09c11df2d68b51ac32aca4':
  Only do bugreport on user build with ADB enabled

12 years agoam fa351ab2: Only do bugreport on user build with ADB enabled
Kenny Root [Tue, 24 Jan 2012 23:37:22 +0000 (15:37 -0800)]
am fa351ab2: Only do bugreport on user build with ADB enabled

* commit 'fa351ab265957fa8815df3c4ca1f3c105f253e8b':
  Only do bugreport on user build with ADB enabled

12 years agoam fa351ab2: Only do bugreport on user build with ADB enabled
Kenny Root [Tue, 24 Jan 2012 23:37:09 +0000 (15:37 -0800)]
am fa351ab2: Only do bugreport on user build with ADB enabled

* commit 'fa351ab265957fa8815df3c4ca1f3c105f253e8b':
  Only do bugreport on user build with ADB enabled

12 years agoOnly do bugreport on user build with ADB enabled
Kenny Root [Tue, 24 Jan 2012 17:20:19 +0000 (09:20 -0800)]
Only do bugreport on user build with ADB enabled

This makes it less likely that users that don't know what a bugreport is
will trigger it, but leaves the possibility for developers to trigger a
bugreport with a key combo.

Bug: 5866877
Change-Id: Ifc3c5126ec9342880a3635845a89c5a4a40156d2

12 years agoOnly do bugreport on user build with ADB enabled
Kenny Root [Tue, 24 Jan 2012 17:20:19 +0000 (09:20 -0800)]
Only do bugreport on user build with ADB enabled

This makes it less likely that users that don't know what a bugreport is
will trigger it, but leaves the possibility for developers to trigger a
bugreport with a key combo.

Bug: 5866877
Change-Id: Ifc3c5126ec9342880a3635845a89c5a4a40156d2

12 years agoFix various issues in procrank.
Selim Gurun [Sat, 21 Jan 2012 03:44:54 +0000 (19:44 -0800)]
Fix various issues in procrank.

Fixed these problems:
1. Page swapped bit was not extracted correctly.
2. Pages were ignored when page present bit is not set.
3. Bit operations were not correct.
4. There was a compiler warning about unsigned/signed comparision.
5. Line limit was too short for the map file. This was causing procrank
   to generate a warning and remove the related process from results.

Change-Id: Ifed3913a49b15f59010cfa842090a13228074df9

12 years agoam 9883083a: am 412d55c7: Merge "fix fd leaking and deallocation freed resource"
Jean-Baptiste Queru [Fri, 20 Jan 2012 23:52:02 +0000 (15:52 -0800)]
am 9883083a: am 412d55c7: Merge "fix fd leaking and deallocation freed resource"

* commit '9883083afdb09845b0364f04c18d4fff24a89036':
  fix fd leaking and deallocation freed resource

12 years agoam 412d55c7: Merge "fix fd leaking and deallocation freed resource"
Jean-Baptiste Queru [Thu, 19 Jan 2012 01:58:19 +0000 (17:58 -0800)]
am 412d55c7: Merge "fix fd leaking and deallocation freed resource"

* commit '412d55c7ee5ce42dc52e0c03c3e0d1c5c2d9d870':
  fix fd leaking and deallocation freed resource

12 years agoMerge "fix fd leaking and deallocation freed resource"
Jean-Baptiste Queru [Wed, 18 Jan 2012 23:43:21 +0000 (15:43 -0800)]
Merge "fix fd leaking and deallocation freed resource"

12 years agoFix supplicant start
Irfan Sheriff [Wed, 18 Jan 2012 23:31:07 +0000 (15:31 -0800)]
Fix supplicant start

Change-Id: I203e8f573850d44c28fe5dbd2160e2ce421f4bdb

12 years agoam b30136b7: (-s ours) DO NOT MERGE Add iteration option to micro_bench
Eric Rowe [Thu, 12 Jan 2012 19:34:20 +0000 (11:34 -0800)]
am b30136b7: (-s ours) DO NOT MERGE Add iteration option to micro_bench

* commit 'b30136b7f51858db1a3272bf91801fe7faf16309':
  DO NOT MERGE Add iteration option to micro_bench

12 years agoam b30136b7: DO NOT MERGE Add iteration option to micro_bench
Eric Rowe [Thu, 12 Jan 2012 19:31:35 +0000 (11:31 -0800)]
am b30136b7: DO NOT MERGE Add iteration option to micro_bench

* commit 'b30136b7f51858db1a3272bf91801fe7faf16309':
  DO NOT MERGE Add iteration option to micro_bench

12 years agoMerge "libc: Add pthread and stdio benchmark test programs."
David 'Digit' Turner [Thu, 15 Dec 2011 11:00:39 +0000 (03:00 -0800)]
Merge "libc: Add pthread and stdio benchmark test programs."

12 years agoDO NOT MERGE Add iteration option to micro_bench
Eric Rowe [Fri, 9 Dec 2011 01:11:00 +0000 (17:11 -0800)]
DO NOT MERGE Add iteration option to micro_bench

Change-Id: Ie7ab13a58dd4585e1c489cb407e59a76bed8955b
Bug-Id: http://b/issue?id=5734427

12 years agoAdd iteration option to micro_bench
Eric Rowe [Fri, 9 Dec 2011 01:11:00 +0000 (17:11 -0800)]
Add iteration option to micro_bench

Change-Id: Ie7ab13a58dd4585e1c489cb407e59a76bed8955b
Bug-Id: http://b/issue?id=5734427

12 years agolibc: Add pthread and stdio benchmark test programs.
David 'Digit' Turner [Wed, 7 Dec 2011 11:45:44 +0000 (12:45 +0100)]
libc: Add pthread and stdio benchmark test programs.

This patch adds two test programs to system/extras/test/bionic/libc

The first one can be used to benchmark simple stdio operation
(for now fread() / fwrite()).

The second one can be used to benchmark misc. pthread operations.
It can also easily be built with other toolchains for comparison
with other C library / pthread implementations.

Change-Id: I3e611244f3ff95e7485d8b8d6f91e5b8bab2de4b

12 years agoMerge "making sure it is built into the nativetest path so it gets picked up by conti...
Tsu Chiang Chuang [Tue, 29 Nov 2011 16:59:47 +0000 (08:59 -0800)]
Merge "making sure it is built into the nativetest path so it gets picked up by continous tests."

12 years agomaking sure it is built into the nativetest path so it gets picked up by
Tsu Chiang Chuang [Tue, 29 Nov 2011 01:41:30 +0000 (17:41 -0800)]
making sure it is built into the nativetest path so it gets picked up by
continous tests.

Change-Id: I6c6841b629691dd6825025886cf8169afbc3df98

12 years agoDon't assume that the stack is always at 0x1000000.
Nick Kralevich [Fri, 18 Nov 2011 18:37:48 +0000 (10:37 -0800)]
Don't assume that the stack is always at 0x1000000.

With our ASLR changes, the stack is now located at a random
location in memory. Remove the hardcoded assumption that the
stack will always be between 0x10000000 and 0x40000000.

Change-Id: Ic0b6d9e3ae844f057ace81a982cec7e2b344e179

12 years agoMerge "Fix divide-by-zero in test-fb-refresh."
Iain Merrick [Tue, 8 Nov 2011 11:22:20 +0000 (03:22 -0800)]
Merge "Fix divide-by-zero in test-fb-refresh."

12 years agoRemove libraries from static library module.
Ying Wang [Tue, 8 Nov 2011 02:20:37 +0000 (18:20 -0800)]
Remove libraries from static library module.

Static library module does not link any library.
There is no host library named libz.

Change-Id: I952b2bbda9206fa8c97f3a3c397dcc59a1a42f20

12 years agoam 0dbb4f81: am 8be30e05: Merge "Include the shared memory and slab memory in procran...
Dianne Hackborn [Mon, 7 Nov 2011 15:51:36 +0000 (15:51 +0000)]
am 0dbb4f81: am 8be30e05: Merge "Include the shared memory and slab memory in procrank output." into ics-mr0

* commit '0dbb4f8155df7852810e257de767b1f701f2fe3c':
  Include the shared memory and slab memory in procrank output.

12 years agoFix divide-by-zero in test-fb-refresh.
Iain Merrick [Mon, 7 Nov 2011 15:46:48 +0000 (15:46 +0000)]
Fix divide-by-zero in test-fb-refresh.

On some platforms, pixclock is 0, so this tool was crashing with SIGFPE.

Change-Id: I51bcec2cf46b19c161aff6ec892ad2bdb0bd844f

12 years agoam 230b99fb: (-s ours) am 2c9d3f92: (-s ours) DO NOT MERGE. Integrate: showmap now...
Dianne Hackborn [Sat, 5 Nov 2011 19:33:34 +0000 (19:33 +0000)]
am 230b99fb: (-s ours) am 2c9d3f92: (-s ours) DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

* commit '230b99fb850bbbe17b8ee41d1968062d72895fdd':
  DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

12 years agoam 42ec7355: showmap now includes the number of maps in a row.
Dianne Hackborn [Sat, 5 Nov 2011 16:40:08 +0000 (16:40 +0000)]
am 42ec7355: showmap now includes the number of maps in a row.

* commit '42ec73551a7ed4798de53cb8ed3b34fa964dde98':
  showmap now includes the number of maps in a row.

12 years agoam 0dbb4f81: am 8be30e05: Merge "Include the shared memory and slab memory in procran...
Dianne Hackborn [Sat, 5 Nov 2011 07:34:34 +0000 (07:34 +0000)]
am 0dbb4f81: am 8be30e05: Merge "Include the shared memory and slab memory in procrank output." into ics-mr0

* commit '0dbb4f8155df7852810e257de767b1f701f2fe3c':
  Include the shared memory and slab memory in procrank output.

12 years agoam 8be30e05: Merge "Include the shared memory and slab memory in procrank output...
Dianne Hackborn [Sat, 5 Nov 2011 07:32:29 +0000 (07:32 +0000)]
am 8be30e05: Merge "Include the shared memory and slab memory in procrank output." into ics-mr0

* commit '8be30e05a19e861a4605149e266e9b3e73542d1b':
  Include the shared memory and slab memory in procrank output.

12 years agoMerge "Include the shared memory and slab memory in procrank output." into ics-mr0
Dianne Hackborn [Sat, 5 Nov 2011 07:31:02 +0000 (00:31 -0700)]
Merge "Include the shared memory and slab memory in procrank output." into ics-mr0

12 years agoInclude the shared memory and slab memory in procrank output.
Dianne Hackborn [Sat, 5 Nov 2011 03:08:19 +0000 (20:08 -0700)]
Include the shared memory and slab memory in procrank output.

Change-Id: I0dac539c220fda867ce166d78dc898a8ec7aa18a

12 years agoam 230b99fb: am 2c9d3f92: (-s ours) DO NOT MERGE. Integrate: showmap now includes...
Dianne Hackborn [Fri, 4 Nov 2011 21:03:53 +0000 (21:03 +0000)]
am 230b99fb: am 2c9d3f92: (-s ours) DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

* commit '230b99fb850bbbe17b8ee41d1968062d72895fdd':
  DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

12 years agoam 2c9d3f92: (-s ours) DO NOT MERGE. Integrate: showmap now includes the number...
Dianne Hackborn [Fri, 4 Nov 2011 21:01:39 +0000 (21:01 +0000)]
am 2c9d3f92: (-s ours) DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

* commit '2c9d3f9293fc4c511e8f031cdade3f0cb9d93127':
  DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

12 years agoDO NOT MERGE. Integrate: showmap now includes the number of maps in a row.
Dianne Hackborn [Fri, 4 Nov 2011 02:17:31 +0000 (19:17 -0700)]
DO NOT MERGE.  Integrate: showmap now includes the number of maps in a row.

Change-Id: I02c52cbb08b429881e1191971ecf097b2187e793

12 years agoam 42ec7355: showmap now includes the number of maps in a row.
Dianne Hackborn [Fri, 4 Nov 2011 17:45:58 +0000 (17:45 +0000)]
am 42ec7355: showmap now includes the number of maps in a row.

* commit '42ec73551a7ed4798de53cb8ed3b34fa964dde98':
  showmap now includes the number of maps in a row.

12 years agoshowmap now includes the number of maps in a row.
Dianne Hackborn [Fri, 4 Nov 2011 02:17:31 +0000 (19:17 -0700)]
showmap now includes the number of maps in a row.

Change-Id: Ie8c5d01322ec7a2995a35ea050b38cc299568075

12 years agomake ext4 utils callable from C++
Doug Zongker [Fri, 28 Oct 2011 17:21:08 +0000 (10:21 -0700)]
make ext4 utils callable from C++

Change-Id: Ibbcff4cd2b07e3bd044459e498e4228a3608c27f

12 years agoMerge "make ext4 utils callable from C++" into ics-aah
Doug Zongker [Mon, 31 Oct 2011 16:24:44 +0000 (09:24 -0700)]
Merge "make ext4 utils callable from C++" into ics-aah

12 years agokeep previous history after reset to mr1 plus aah changes (ics-aah-wip)
Ed Heyl [Fri, 28 Oct 2011 19:06:01 +0000 (19:06 +0000)]
keep previous history after reset to mr1 plus aah changes (ics-aah-wip)

12 years agomake ext4 utils callable from C++
Doug Zongker [Fri, 28 Oct 2011 17:21:08 +0000 (10:21 -0700)]
make ext4 utils callable from C++

Change-Id: I5a33cb1231428c045c23d74fdceb41b76bd0431e

12 years agoMerge "qtaguid: Converting test to GTest so that it will be run continously by TF."
Tsu Chiang Chuang [Fri, 28 Oct 2011 16:42:04 +0000 (09:42 -0700)]
Merge "qtaguid: Converting test to GTest so that it will be run continously by TF."

12 years agoundo reset to ics-mr1 until we have a better method
Ed Heyl [Wed, 26 Oct 2011 21:53:28 +0000 (21:53 +0000)]
undo reset to ics-mr1 until we have a better method

12 years agoreset to ics-mr1, but keep history
Ed Heyl [Wed, 26 Oct 2011 18:50:28 +0000 (18:50 +0000)]
reset to ics-mr1, but keep history

12 years agoam 6ca3a62a: (-s ours) Rename LOG() to ALOG() DO NOT MERGE
Steve Block [Tue, 25 Oct 2011 17:59:50 +0000 (10:59 -0700)]
am 6ca3a62a: (-s ours) Rename LOG() to ALOG()  DO NOT MERGE

* commit '6ca3a62a0d193b272d668f9ad24dc26cea1d3e27':
  Rename LOG() to ALOG()  DO NOT MERGE

12 years agoRename LOG() to ALOG() DO NOT MERGE
Steve Block [Wed, 12 Oct 2011 16:28:18 +0000 (17:28 +0100)]
Rename LOG() to ALOG()  DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/141576

Bug: 5449033
Change-Id: I00b3eb4a1ebf0a52389064b3138b15c410a7cd97

12 years agoBring screenshot back to bugreport
Guang Zhu [Thu, 20 Oct 2011 21:48:17 +0000 (14:48 -0700)]
Bring screenshot back to bugreport

Since the key cord for screen shot is now strictly enforced, we no
longer get a free screen shot with bugreport. This change to bugreport
script will capture a screen shot first, then proceed to dumpstate.
SendBug is also updated accordingly to take 2 parameters: one for
bugreport path, the other for screen shot path.

Change-Id: I20fcea2f3a207b0dcd5341c8646c694dac12ec54

12 years agoqtaguid: Converting test to GTest so that it will be run continously by TF.
Tsu Chiang Chuang [Tue, 20 Sep 2011 00:08:25 +0000 (17:08 -0700)]
qtaguid: Converting test to GTest so that it will be run continously by TF.

Change-Id: I067ed277f168e466d09572fb6c21e51e0bdaa9f2

12 years agotests: add socket tagging test for qtaguid kernel netfilter module
JP Abgrall [Fri, 9 Sep 2011 21:35:17 +0000 (14:35 -0700)]
tests: add socket tagging test for qtaguid kernel netfilter module

Add a small test to verify that socket tagging is not hopelessly
broken.

Test for
 - invalid: arg count, command, tags.
 - double tagging
 - acct_tag changing
 - optional uid
 - 64bit unsigned vs signed
 - invalid sock_fd
 - multiple entries
 - untagging
 - uid/gid checking + max tags.

It tries its best to allow concurrent invocations, but it just
can not be sure that it always detects the in-kernel addresses of
the sockets it has tagged.

Change-Id: I4e372fcddbd0b1cd6ba5d8be4692e0f31ec71a99

12 years agoAdd screenshot to bugreport email if available
Alon Albert [Tue, 13 Sep 2011 18:11:47 +0000 (11:11 -0700)]
Add screenshot to bugreport email if available

Only works for email bugreport for now. Might add BugReported support later - requiers either
changes to BugReporter tool or zipping the file with is not great.

Change-Id: I1941a8436f6b5ba31b04334a89cad075f3bc836e

12 years agoBugReporter integration
Guang Zhu [Fri, 19 Aug 2011 00:48:43 +0000 (17:48 -0700)]
BugReporter integration

Queries PackageManager for a predefined intent, if it's resolvable,
hand the bugreport over to BugReporter. Otherwise same as before:
compose an intent to send out in mail with attachment

Change-Id: Ib7a5b49551ae9285ed46464277168487520d798b

12 years agoUpdate to follow framework change.
Dianne Hackborn [Tue, 16 Aug 2011 01:25:31 +0000 (18:25 -0700)]
Update to follow framework change.

Change-Id: I1247ba30e6e2e424a4cce12063a3c6af5db035e9

13 years agoadditional scripts for emailing bugreports after capture
Guang Zhu [Wed, 20 Jul 2011 01:44:41 +0000 (18:44 -0700)]
additional scripts for emailing bugreports after capture

First script calls dumpsys to generate the bugreport, second
script launches a cmd line tool that queries account manager
for possible accounts to set as "to:" field and launches an
intent to mail the bugreport out

This is done in 2 steps because it's more convenient to look
up account for emailing with a framework context, but to make
sure bugreport is captured, using dumpsys from shell script
is more reliable in case Dalvik VM crashes.

Change-Id: Ibb54ac793bbd59f016db9fe98118155168c9371e

13 years agoAdd information about totals to procrank.
Dianne Hackborn [Mon, 18 Jul 2011 19:41:50 +0000 (12:41 -0700)]
Add information about totals to procrank.

Now print a sum of all pss and uss at then end of the output, and
then print information from /proc/meminfo to help put those in
context.

Change-Id: I323d219820830e9435bb4dcfd78cbb9a3d6c129c

13 years agoMerge "showmap enhancements"
Jeff Brown [Thu, 14 Jul 2011 09:29:07 +0000 (02:29 -0700)]
Merge "showmap enhancements"