OSDN Git Service

android-x86/system-extras.git
12 years agomkuserimg.sh: set default size according to the $SRC_DIR size honeycomb-x86
Chih-Wei Huang [Tue, 18 Jan 2011 09:55:00 +0000 (17:55 +0800)]
mkuserimg.sh: set default size according to the $SRC_DIR size

Calculate the default size by $SRC_DIR size plus 10%.

Change-Id: I94a7f378b12ccdbd39367c81b1153b8654303a93

12 years agosu.c: disable permission checking
Chih-Wei Huang [Thu, 29 Oct 2009 03:11:19 +0000 (11:11 +0800)]
su.c: disable permission checking

12 years agoAdded fake touchscreen daemon to make builtin apk work
Jim Huang [Tue, 8 Sep 2009 16:28:17 +0000 (00:28 +0800)]
Added fake touchscreen daemon to make builtin apk work

Several Android builtin packages would pick up the system resources
about touchscreen.  If there is no touchscreen, the ones suffixing
with '-notouch' would be taken.  However, by default, resource layout
doesn't come with '-notouch', and Beagleboard has no touchscreen on
board physically.  Thus, Android core will crash due to lacking of
proper resources.

Our solution is to write a dedicated daemon to register userspace
input device as a fake touchscreen device.  EventHub would regard
it as one of the input source, and no Android packages would complain.
(cherry picked from commit 641356fa32226baa8beb12d54160103063c7c8d4)

Signed-off-by: Tick Chen <tick@0xlab.org>
[faketsd] Run fake touch screen driver for res
DO NOT MERGE: Demo purpose only.

Running faketsd before system runs and Android will think the system
having resource of touchscreen, and will try to access resource of
fingers.

13 years agoImplement poor man's exception handling to prevent errors from killling recovery
Ken Sumrall [Thu, 24 Mar 2011 05:08:53 +0000 (22:08 -0700)]
Implement poor man's exception handling to prevent errors from killling recovery

make_ext4fs was originally designed to be a standalone program, and the
error() macro calls exit() after printing a diagnostic.  However, when
it was turned into a library that recovery links against, calling exit()
kills the entire recovery process, which the kernel starts back up,
which dies, and the cycle continues.

This changes make_ext4fs to use setjmp() early, and changes error to
use longjmp to return to that point.  When longjmp is called, the
error handler just returns an error.  If it was invoked as a standalone
program, this causes the program to exit with an error.  If it was
invoked as a library function, the error return is gracefully handled
by recovery.

Change-Id: Iad50f46cac0ac399b5cdfd083d5712f88a10e48e

13 years agoam 427c3a21: Make a failure of the BLKDISCARD ioctl non-fatal.
Ken Sumrall [Wed, 23 Mar 2011 03:37:38 +0000 (20:37 -0700)]
am 427c3a21: Make a failure of the BLKDISCARD ioctl non-fatal.

* commit '427c3a2177eb4d34c88406bb86107548737168cc':
  Make a failure of the BLKDISCARD ioctl non-fatal.

13 years agoam 3e620597: Fix to properly wipe filesystems larger than 4 gigabytes.
Ken Sumrall [Wed, 23 Mar 2011 03:35:56 +0000 (20:35 -0700)]
am 3e620597: Fix to properly wipe filesystems larger than 4 gigabytes.

* commit '3e620597671c7efa678c1cd804202cff513bc751':
  Fix to properly wipe filesystems larger than 4 gigabytes.

13 years agoMake a failure of the BLKDISCARD ioctl non-fatal.
Ken Sumrall [Wed, 23 Mar 2011 03:18:02 +0000 (20:18 -0700)]
Make a failure of the BLKDISCARD ioctl non-fatal.

Failure to erase the partition before making a new filesystem
should not be fatal, especially since this is called from recovery,
and if make_ext4fs() dies, recovery dies.

Change-Id: I1b50b8c486d403a5d9cbd5e9de73cf752d8ef8f7

13 years agoFix to properly wipe filesystems larger than 4 gigabytes.
Ken Sumrall [Sat, 12 Feb 2011 02:36:42 +0000 (18:36 -0800)]
Fix to properly wipe filesystems larger than 4 gigabytes.

Pass the wipe size to the wipe function in a 64 bit int.

Change-Id: Ia6a0c70c8ddacaae35d17732d61b126219e5c158

13 years agoFix to properly wipe filesystems larger than 4 gigabytes.
Ken Sumrall [Sat, 12 Feb 2011 02:36:42 +0000 (18:36 -0800)]
Fix to properly wipe filesystems larger than 4 gigabytes.

Pass the wipe size to the wipe function in a 64 bit int.

Change-Id: Iac95693efa2d9cadbe77aa83b5ff01d7fc8d8b70

13 years agoFix for X86 target
Kenny Root [Tue, 8 Feb 2011 01:18:53 +0000 (17:18 -0800)]
Fix for X86 target

The X86 target couldn't compile some tests that use assembly, but it can
compile other things that now depend on some projects in the test subdir
(namely libtestUtil for OpenGL tests)

Also fatblock was including <sys/endian.h> directly instead of
<endian.h> which broke some stuff on X86

Change-Id: Ib71a6e548189ca2eacfd0caa7dbd17d200efd0ea

13 years agotests:bionic: small improvement to dlclose test.
David 'Digit' Turner [Sun, 2 Jan 2011 09:05:21 +0000 (10:05 +0100)]
tests:bionic: small improvement to dlclose test.

Change-Id: I2fa0e06fab770a42b95006751baca07bb0e19d1e

13 years agoam bb079ff7: ext4_utils: Fix non-linux builds
Colin Cross [Sat, 29 Jan 2011 04:00:41 +0000 (20:00 -0800)]
am bb079ff7: ext4_utils: Fix non-linux builds

* commit 'bb079ff767d5dd76be2d8753a3aef192b75b5664':
  ext4_utils: Fix non-linux builds

13 years agoext4_utils: Fix non-linux builds
Colin Cross [Sat, 29 Jan 2011 03:54:36 +0000 (19:54 -0800)]
ext4_utils: Fix non-linux builds

Change-Id: I5a22083645055abc36a3addc4eae45b40a7a6b2b

13 years agoam c2470654: ext4_utils: Add support for wipe option, and wipe by default in recovery
Colin Cross [Sat, 29 Jan 2011 03:21:04 +0000 (19:21 -0800)]
am c2470654: ext4_utils: Add support for wipe option, and wipe by default in recovery

* commit 'c2470654d4b4db09a7052fc5fa108ac21f1b1948':
  ext4_utils: Add support for wipe option, and wipe by default in recovery

13 years agoext4_utils: Add support for wipe option, and wipe by default in recovery
Colin Cross [Thu, 27 Jan 2011 00:39:46 +0000 (16:39 -0800)]
ext4_utils: Add support for wipe option, and wipe by default in recovery

Adds a -w option to make_ext4fs, which will attempt to use the
BLKSECDISCARD ioctl to erase the partition in order to avoid
leaving old data where it could be recovered, and to improve
wear levelling after a reformat.

Also causes factory reset through recovery to do a wipe.

Change-Id: Ibe34bbd84552e526be6bd041024a950806aca6b4

13 years agoam 442985ba: Merge "ext4_utils: Fix off-by-one bug in dentry size calculation" into...
Colin Cross [Wed, 26 Jan 2011 18:21:01 +0000 (10:21 -0800)]
am 442985ba: Merge "ext4_utils: Fix off-by-one bug in dentry size calculation" into honeycomb

* commit '442985bad72adb119aa29dbe1b8c903fa834e089':
  ext4_utils: Fix off-by-one bug in dentry size calculation

13 years agoMerge "ext4_utils: Fix off-by-one bug in dentry size calculation" into honeycomb
Colin Cross [Wed, 26 Jan 2011 18:16:46 +0000 (10:16 -0800)]
Merge "ext4_utils: Fix off-by-one bug in dentry size calculation" into honeycomb

13 years agoext4_utils: Fix off-by-one bug in dentry size calculation
Colin Cross [Wed, 26 Jan 2011 05:44:37 +0000 (21:44 -0800)]
ext4_utils: Fix off-by-one bug in dentry size calculation

Change-Id: I1a1833dfd5d896acd1d823f8dbe925b8ff1fd5da

13 years agoam 983fb19d: Change the API for make_ext4fs() to better match the user\'s needs
Ken Sumrall [Thu, 20 Jan 2011 01:47:17 +0000 (17:47 -0800)]
am 983fb19d: Change the API for make_ext4fs() to better match the user\'s needs

* commit '983fb19d83d2391b19b289fc150495d8642378c4':
  Change the API for make_ext4fs() to better match the user's needs

13 years agoChange the API for make_ext4fs() to better match the user's needs
Ken Sumrall [Thu, 20 Jan 2011 01:15:42 +0000 (17:15 -0800)]
Change the API for make_ext4fs() to better match the user's needs

The current make_ext4fs() is renamed make_ext4fs_internal(), and a new
make_ext4fs() has a simplified interface that supports the needs of
recovery and updater packages that call it.

Change-Id: I9e897f1f442c7f5060f8623ea74c3cf6a9c023e4

13 years agoMerge "Minimal test program for clock(3)"
Glenn Kasten [Thu, 20 Jan 2011 00:33:01 +0000 (16:33 -0800)]
Merge "Minimal test program for clock(3)"

13 years agoam 435a8b61: Add the ability to specify a reserved space size when making filesystems.
Ken Sumrall [Mon, 17 Jan 2011 22:48:04 +0000 (14:48 -0800)]
am 435a8b61: Add the ability to specify a reserved space size when making filesystems.

* commit '435a8b61e925e3efb22fce08612efe210e83f791':
  Add the ability to specify a reserved space size when making filesystems.

13 years agoMinimal test program for clock(3)
Glenn Kasten [Mon, 17 Jan 2011 19:09:21 +0000 (11:09 -0800)]
Minimal test program for clock(3)

Change-Id: I4fcf6e3c6ed55f1db96dc93e6809b35d7719d32f

13 years agoAdd the ability to specify a reserved space size when making filesystems.
Ken Sumrall [Sat, 15 Jan 2011 02:33:06 +0000 (18:33 -0800)]
Add the ability to specify a reserved space size when making filesystems.

If you specify a negative length when making a filesystem, then the
filesystem size is the size of the partiton (or image file) minus
the absolute value of the negative length specified.

Change-Id: I53e3b6de2ea692f4678682c3f49ff36429d9ad31

13 years agoTest cases for strptime
Glenn Kasten [Tue, 11 Jan 2011 17:42:01 +0000 (09:42 -0800)]
Test cases for strptime

Change-Id: I43484c7333a967bac527752f4a4f75ec1ab420e3

13 years agoam f3df372c: BinderAddInts benchmark change to spin delay
Louis Huemiller [Mon, 10 Jan 2011 06:03:41 +0000 (22:03 -0800)]
am f3df372c: BinderAddInts benchmark change to spin delay

* commit 'f3df372c18c3baf9c0c9c93bce7622818ae6a8a1':
  BinderAddInts benchmark change to spin delay

13 years agoBinderAddInts benchmark change to spin delay
Louis Huemiller [Mon, 10 Jan 2011 01:54:25 +0000 (17:54 -0800)]
BinderAddInts benchmark change to spin delay

Change-Id: Ib98190b3c6f6ac934c5ca74ec221c5391152f189

13 years agoam aa6d5675: binderAddInts benchmark refactor out workaround
Louis Huemiller [Fri, 7 Jan 2011 22:42:44 +0000 (14:42 -0800)]
am aa6d5675: binderAddInts benchmark refactor out workaround

* commit 'aa6d56756a4e07e344482887ee7afc36c6fbbe9a':
  binderAddInts benchmark refactor out workaround

13 years agobinderAddInts benchmark refactor out workaround
Louis Huemiller [Fri, 7 Jan 2011 19:47:08 +0000 (11:47 -0800)]
binderAddInts benchmark refactor out workaround

Change-Id: I88a99637fe4f6c070865781b1934885af728c281

13 years agoam 39e01fc2: Add a mode to the open(2) call when creating the output file.
Ken Sumrall [Fri, 7 Jan 2011 08:33:04 +0000 (00:33 -0800)]
am 39e01fc2: Add a mode to the open(2) call when creating the output file.

* commit '39e01fc213f81eb7366324d04d449fb9a07e6e55':
  Add a mode to the open(2) call when creating the output file.

13 years agoAdd a mode to the open(2) call when creating the output file.
Ken Sumrall [Thu, 6 Jan 2011 05:00:03 +0000 (21:00 -0800)]
Add a mode to the open(2) call when creating the output file.

Without this, the mode of the created file is pulled from
garbage on the stack.

Change-Id: Idc5d2bdcaf66a4a70d37ff48e3f9d127542ad860

13 years agoAdd a mode to the open(2) call when creating the output file.
Ken Sumrall [Thu, 6 Jan 2011 05:00:03 +0000 (21:00 -0800)]
Add a mode to the open(2) call when creating the output file.

Without this, the mode of the created file is pulled from
garbage on the stack.

Change-Id: If825c5adbf99ea9a3e0b8ed1f1c0135ca732e6e3

13 years agoext4_utils: Fix OSX build
Colin Cross [Thu, 6 Jan 2011 02:05:34 +0000 (18:05 -0800)]
ext4_utils: Fix OSX build

Change-Id: I8e70081c75148638edaeb0cb3d376accb3bf3965

13 years agoMerge changes Ibeb2001a,I0440171a,I406674de,Ic7f2d12e,I6c0d71d7,Ibfcf1cde,I93cbe335...
Colin Cross [Thu, 6 Jan 2011 00:42:08 +0000 (16:42 -0800)]
Merge changes Ibeb2001a,I0440171a,I406674de,Ic7f2d12e,I6c0d71d7,Ibfcf1cde,I93cbe335,I6af69d67,Ic635afbb

* changes:
  ext4_utils: Fix warnings
  ext4_utils: Allow unknown block types in simg2img
  ext4_utils: Build simg2img for target
  ext4_utils: Convert simg2img from stdio to fds
  ext4_utils: Add ext2simg
  ext4_utils: Add an optional CRC chunk at the end of sparse files
  ext4_utils: Get rid of CRC in sparse file header
  ext4_utils: Add support for >2G input files
  ext4_utils: Move bg_desc_reserved_blocks from aux_info to info

13 years agoext4_utils: Fix warnings
Colin Cross [Wed, 29 Dec 2010 22:20:53 +0000 (14:20 -0800)]
ext4_utils: Fix warnings

Change-Id: Ibeb2001a1ac8cfedd9fced11b17afba4940b6bd5

13 years agoext4_utils: Allow unknown block types in simg2img
Colin Cross [Wed, 29 Dec 2010 21:56:29 +0000 (13:56 -0800)]
ext4_utils: Allow unknown block types in simg2img

Change-Id: I0440171a34f8aa42036840b9f25fec3097d13d00

13 years agoext4_utils: Build simg2img for target
Colin Cross [Sat, 25 Dec 2010 10:00:14 +0000 (02:00 -0800)]
ext4_utils: Build simg2img for target

Change-Id: I406674de131460394ae8ed1594c186398e28cf9d

13 years agoext4_utils: Convert simg2img from stdio to fds
Colin Cross [Sat, 25 Dec 2010 09:55:26 +0000 (01:55 -0800)]
ext4_utils: Convert simg2img from stdio to fds

Bionic stdio does not support 64 bit file offsets

Change-Id: Ic7f2d12ea2007e55c9787e9c4bf2f4d4635f94f5

13 years agoext4_utils: Add ext2simg
Colin Cross [Thu, 23 Dec 2010 07:08:15 +0000 (23:08 -0800)]
ext4_utils: Add ext2simg

Change-Id: I6c0d71d737be588d03018efdaed378349caa4f7a

13 years agoext4_utils: Add an optional CRC chunk at the end of sparse files
Colin Cross [Wed, 29 Dec 2010 21:57:01 +0000 (13:57 -0800)]
ext4_utils: Add an optional CRC chunk at the end of sparse files

Change-Id: Ibfcf1cdeab47ca13870350184abf83e530acbc07

13 years agoext4_utils: Get rid of CRC in sparse file header
Colin Cross [Thu, 23 Dec 2010 02:41:13 +0000 (18:41 -0800)]
ext4_utils: Get rid of CRC in sparse file header

Also removes the need to seek in the output file, allowing
stdin and stdout to be used for input and output.

Change-Id: I93cbe335d9cc83a6d21daa696af2cb54952dcc9f

13 years agoext4_utils: Add support for >2G input files
Colin Cross [Thu, 23 Dec 2010 02:40:14 +0000 (18:40 -0800)]
ext4_utils: Add support for >2G input files

Change-Id: I6af69d676610099d3912e90fcab3cbdc27ace4e2

13 years agoext4_utils: Move bg_desc_reserved_blocks from aux_info to info
Colin Cross [Thu, 23 Dec 2010 00:01:52 +0000 (16:01 -0800)]
ext4_utils: Move bg_desc_reserved_blocks from aux_info to info

Change-Id: Ic635afbb8819a00ca23ba2f93413fe707e2eec87

13 years agoWiFi Loop Stress test - refactor & chg test name
Louis Huemiller [Wed, 5 Jan 2011 18:11:54 +0000 (10:11 -0800)]
WiFi Loop Stress test - refactor & chg test name

Change-Id: I8d4a818b3547217227b1aa741534eb7884695dba

13 years agoMerge "Test util - add execCmd and full-range random"
Louis Huemiller [Wed, 5 Jan 2011 05:09:16 +0000 (21:09 -0800)]
Merge "Test util - add execCmd and full-range random"

13 years agoMerge "libc tests: Add a drand48() test"
David 'Digit' Turner [Tue, 4 Jan 2011 20:30:33 +0000 (12:30 -0800)]
Merge "libc tests: Add a drand48() test"

13 years agoTest util - add execCmd and full-range random
Louis Huemiller [Tue, 4 Jan 2011 18:55:38 +0000 (10:55 -0800)]
Test util - add execCmd and full-range random

Change-Id: I083050ceaabfa973adce3c046f706fb70c19dc6e

13 years agoam 880071e1: Merge "Optional "-s" to enable sparse ext4 image."
Jean-Baptiste Queru [Tue, 28 Dec 2010 21:59:36 +0000 (13:59 -0800)]
am 880071e1: Merge "Optional "-s" to enable sparse ext4 image."

* commit '880071e1ac4d35035fa30ddd992b81360408074b':
  Optional "-s" to enable sparse ext4 image.

13 years agoMerge "Optional "-s" to enable sparse ext4 image."
Jean-Baptiste Queru [Tue, 28 Dec 2010 21:43:27 +0000 (13:43 -0800)]
Merge "Optional "-s" to enable sparse ext4 image."

13 years agoOptional "-s" to enable sparse ext4 image.
Ying Wang [Wed, 17 Nov 2010 23:42:51 +0000 (15:42 -0800)]
Optional "-s" to enable sparse ext4 image.

Change-Id: I21c729aae6f6a265c68bb2f701e8de973950994c

13 years agoTest Util Library - remove drand48 workaround
Louis Huemiller [Wed, 22 Dec 2010 01:39:56 +0000 (17:39 -0800)]
Test Util Library - remove drand48 workaround

Change-Id: I2bc8e3c83931bac3ce81e6ac34b5f97d8cd680fa

13 years agolibc tests: Add a drand48() test
David 'Digit' Turner [Mon, 20 Dec 2010 16:13:37 +0000 (17:13 +0100)]
libc tests: Add a drand48() test

+ Add a script to run a specific test on a device easily.

Change-Id: Icaf050bc1c3b6aef3498e253badd63344a7d442f

13 years agoWiFi Loop test - remove workaround, add -p option
Louis Huemiller [Fri, 10 Dec 2010 23:37:33 +0000 (15:37 -0800)]
WiFi Loop test - remove workaround, add -p option

  + Removed workaround for missing sched_* routines
  + Added -p option to execute single specified pass

Change-Id: I068934650eb7f1bbe0e555c2e6b3f14dd3ccd4ff

13 years agoAdd <sched.h> unit tests for cpu_set_t
David 'Digit' Turner [Mon, 6 Dec 2010 12:37:26 +0000 (13:37 +0100)]
Add <sched.h> unit tests for cpu_set_t

This adds test_cpu_set to check the new features provided by
<sched.h> around cpu_set_t (i.e. CPU_SETSIZE, CPU_ZERO, CPU_SET,
sched_getaffinity, sched_setaffinity, sched_getcpu, ...)

Change-Id: I59030badb6f6c7560f7cb48fcfa722e8d7b9b1b9

13 years agoPrepare benchmark for real cpu_set_t implementation
David 'Digit' Turner [Mon, 6 Dec 2010 12:39:02 +0000 (13:39 +0100)]
Prepare benchmark for real cpu_set_t implementation

This modifies the benchmark to work with a <sched.h> header that
provides CPU_SETSIZE, cpu_set_t and other thread-processor affinity
functions.

Change-Id: I87e9b51f7113487ea35dae158465e16bb02703a8

13 years agoam 315d8d87: am ba3b42ef: Merge "test - trivial whitespace change"
Jean-Baptiste Queru [Thu, 2 Dec 2010 16:50:36 +0000 (08:50 -0800)]
am 315d8d87: am ba3b42ef: Merge "test - trivial whitespace change"

* commit '315d8d8761e06d8031e57ecc4c01abb1e2d46476':
  test - trivial whitespace change

13 years agoam ba3b42ef: Merge "test - trivial whitespace change"
Jean-Baptiste Queru [Thu, 2 Dec 2010 16:47:14 +0000 (08:47 -0800)]
am ba3b42ef: Merge "test - trivial whitespace change"

* commit 'ba3b42efbdf35cf5273097dad769413db1c0dc0b':
  test - trivial whitespace change

13 years agoMerge "test - trivial whitespace change"
Jean-Baptiste Queru [Thu, 2 Dec 2010 16:40:36 +0000 (08:40 -0800)]
Merge "test - trivial whitespace change"

13 years agotest - trivial whitespace change
Jean-Baptiste Queru [Thu, 2 Dec 2010 16:39:58 +0000 (08:39 -0800)]
test - trivial whitespace change

Change-Id: Ic138566db7847b16e462155d028cc077d1a2d02b

13 years agoTest Util psuedo-random and hex dump utilities
Louis Huemiller [Mon, 22 Nov 2010 19:57:22 +0000 (11:57 -0800)]
Test Util psuedo-random and hex dump utilities

Change-Id: I1d68edbef019d44f0336b848328b489ed093cb0f

13 years agoMerge "Optional "-s" to enable sparse ext4 image."
Ying Wang [Thu, 18 Nov 2010 00:06:43 +0000 (16:06 -0800)]
Merge "Optional "-s" to enable sparse ext4 image."

13 years agoOptional "-s" to enable sparse ext4 image.
Ying Wang [Wed, 17 Nov 2010 23:42:51 +0000 (15:42 -0800)]
Optional "-s" to enable sparse ext4 image.

Change-Id: Ib4f8bf9bf54607eacc01dd11f92def640ff32b5c

13 years agoAdd missing include headers for compilation on Intel SDK for Google TV.
Olivier Bailly [Wed, 17 Nov 2010 03:18:59 +0000 (19:18 -0800)]
Add missing include headers for compilation on Intel SDK for Google TV.

Change-Id: I172667643e13e2e1c278fd4c0156d5a2445d79f7

13 years agoMerge "Binder add ints benchmark"
Louis Huemiller [Fri, 22 Oct 2010 17:35:43 +0000 (10:35 -0700)]
Merge "Binder add ints benchmark"

13 years agoBinder add ints benchmark
Louis Huemiller [Fri, 15 Oct 2010 00:52:13 +0000 (17:52 -0700)]
Binder add ints benchmark

Change-Id: Id05879404db8255264ee7f573e10a3f06ead8115

13 years agotests: Refine Bionic dlclose destruction test.
David 'Digit' Turner [Wed, 20 Oct 2010 19:38:34 +0000 (21:38 +0200)]
tests: Refine Bionic dlclose destruction test.

The purpose of this change is to test that C constructors and
destructors contained in shared libraries are properly called
when the corresponding libs are loaded and unloaded through
dlopen() and dlclose(), or when the program exits.

The test_dlclose_destruction test already performs this for
static C++ construction/destruction. The change refines it
with another shared library that uses __attribute__((constructor))
and __attribute__((destructor)) from C instead

(see the new libdlclosetest2 shared library).

A new test, test_executable_destructor is also added to check
that the constructor and destructor functions located in the
executable program itself are properly called.

Change-Id: If364d1c710282e8117f980b09490770e7d8d1e33

13 years agoam 24d6f481: resolved conflicts for merge of 3031e475 to gingerbread-plus-aosp
Jean-Baptiste Queru [Tue, 12 Oct 2010 08:45:47 +0000 (01:45 -0700)]
am 24d6f481: resolved conflicts for merge of 3031e475 to gingerbread-plus-aosp

Merge commit '24d6f4813b84240bb839b93f163a52a8447ff583'

* commit '24d6f4813b84240bb839b93f163a52a8447ff583':
  Fixed buffer overflow in procrank.

13 years agoresolved conflicts for merge of 3031e475 to gingerbread-plus-aosp
Jean-Baptiste Queru [Mon, 11 Oct 2010 16:23:12 +0000 (09:23 -0700)]
resolved conflicts for merge of 3031e475 to gingerbread-plus-aosp

Change-Id: I8098e7e75f84d36b7a56b8033ffbaa9a1333fcec

13 years agoMerge "Fixed buffer overflow in procrank."
Jean-Baptiste Queru [Mon, 11 Oct 2010 16:06:04 +0000 (09:06 -0700)]
Merge "Fixed buffer overflow in procrank."

13 years agoWiFi Loop Stress test - add pass completion message
Louis Huemiller [Tue, 5 Oct 2010 21:26:23 +0000 (14:26 -0700)]
WiFi Loop Stress test - add pass completion message

Change-Id: I610c19b34109fe009bd43c6e4c7dd15be2e1784c

13 years agoFixed buffer overflow in procrank.
Ali Utku selen [Thu, 30 Sep 2010 07:41:56 +0000 (09:41 +0200)]
Fixed buffer overflow in procrank.

If there are more than 256 processes in the system procrank
will overflow the procs array. Switched to heap allocation.

Change-Id: I05223333d31f669c6ac87577671e301e6d05c682

13 years agoresolved conflicts for merge of 8bdbbe2d to master
Ying Wang [Wed, 29 Sep 2010 19:56:34 +0000 (12:56 -0700)]
resolved conflicts for merge of 8bdbbe2d to master

Change-Id: I347c58f62c4d9b6bcfa6745a47d5dd96c60661eb

13 years agoRename parameter LABEL to MOUNT_POINT
Ying Wang [Tue, 28 Sep 2010 00:56:55 +0000 (17:56 -0700)]
Rename parameter LABEL to MOUNT_POINT

"make_ext4fs -a" accepts the mount point, in fact.

Change-Id: I126f5d3a9628d30bdd27cb0e7f6879e479ae5de2

13 years agoam 57813ea8: Merge "Reduce warnings in memtest compilation" into gingerbread
Kenny Root [Mon, 27 Sep 2010 19:08:35 +0000 (12:08 -0700)]
am 57813ea8: Merge "Reduce warnings in memtest compilation" into gingerbread

Merge commit '57813ea8fe891c6300ee3ea58d8dbabb6157ed9b'

* commit '57813ea8fe891c6300ee3ea58d8dbabb6157ed9b':
  Reduce warnings in memtest compilation

13 years agoMerge "Reduce warnings in memtest compilation" into gingerbread
Kenny Root [Mon, 27 Sep 2010 17:51:03 +0000 (10:51 -0700)]
Merge "Reduce warnings in memtest compilation" into gingerbread

13 years agoam 4b8b59a7: zero the entire journal instead of just the first block
Brian Swetland [Fri, 24 Sep 2010 04:39:43 +0000 (21:39 -0700)]
am 4b8b59a7: zero the entire journal instead of just the first block

Merge commit '4b8b59a7cd0e1413dcf9973c4bbd7eb65a444c4c'

* commit '4b8b59a7cd0e1413dcf9973c4bbd7eb65a444c4c':
  zero the entire journal instead of just the first block

13 years agozero the entire journal instead of just the first block
Brian Swetland [Thu, 23 Sep 2010 23:06:23 +0000 (16:06 -0700)]
zero the entire journal instead of just the first block

I'm seeing some weeeeird stuff with sparse ext4 images where
files sometimes seem to come back from the dead after reflashing,
etc.  My crazy theory is they are hiding in the journal.

Colin humored me and pointed out how to ensure it's entirely
zero'd.

Change-Id: I4d14a2d4879c10540ef3c677ceb523bc061c1ec1

13 years agoam 16abe7ac: Better handling for the process info array
Kenny Root [Wed, 22 Sep 2010 17:31:47 +0000 (10:31 -0700)]
am 16abe7ac: Better handling for the process info array

Merge commit '16abe7acb8f1dbeb8b9b1dc41061a53dcbfea851'

* commit '16abe7acb8f1dbeb8b9b1dc41061a53dcbfea851':
  Better handling for the process info array

13 years agoWiFi Loop Stress Test - move to /data
Louis Huemiller [Mon, 20 Sep 2010 23:10:54 +0000 (16:10 -0700)]
WiFi Loop Stress Test - move to /data

Change-Id: I37f30c6e6e6eb189211591e7710ea5e086d8e4f6

13 years agoBetter handling for the process info array
Kenny Root [Tue, 21 Sep 2010 17:46:57 +0000 (10:46 -0700)]
Better handling for the process info array

We have phones that have more than 256 PIDs running at one time right
now, so don't segmentation fault when that condition happens.

Free all proc info after it ahs been used.

Also if a process goes away before we read its process name, just print
"<unknown>" instead.

Change-Id: Ia3899be61b047852f62bf3cc6f30eb2fcd797a61

13 years agoMerge "WiFi Loop stress test - install at /data/nativestresstest"
Louis Huemiller [Fri, 17 Sep 2010 00:24:07 +0000 (17:24 -0700)]
Merge "WiFi Loop stress test - install at /data/nativestresstest"

13 years agoWiFi Loop stress test - install at /data/nativestresstest
Louis Huemiller [Thu, 16 Sep 2010 23:48:18 +0000 (16:48 -0700)]
WiFi Loop stress test - install at /data/nativestresstest

Change-Id: I15206ac1c64eea3e9bb7ae682bc61f449b5967bf

13 years agoam cd23be01: (-s ours) do not merge - create sparse ext4 images
Brian Swetland [Thu, 16 Sep 2010 02:49:49 +0000 (19:49 -0700)]
am cd23be01: (-s ours) do not merge - create sparse ext4 images

Merge commit 'cd23be01be219a927cb4eb9edc088eaec260cdba'

* commit 'cd23be01be219a927cb4eb9edc088eaec260cdba':
  do not merge - create sparse ext4 images

13 years agodo not merge - create sparse ext4 images
Brian Swetland [Wed, 15 Sep 2010 23:15:17 +0000 (16:15 -0700)]
do not merge - create sparse ext4 images

master is not ready for the awesome that is sparse filesystem imagery!

Change-Id: I52f76ed6da715e63786d36a3294a2e63d600a637

13 years agoReduce warnings in memtest compilation
Kenny Root [Wed, 15 Sep 2010 22:32:01 +0000 (15:32 -0700)]
Reduce warnings in memtest compilation

Change-Id: I7afe6d6fa5229714530e92a70eede50103db48b2

13 years agoWiFi Loop Stress Test
Louis Huemiller [Wed, 15 Sep 2010 21:05:16 +0000 (14:05 -0700)]
WiFi Loop Stress Test

  1. Added completion message for dashboard
  2. Fixed non-zero exit code for -?

Change-Id: I05da51b9971359196cf396fc438e5093ca6b364a

13 years agoMerge "WiFi load, scan, associate, unload stress test"
Louis Huemiller [Tue, 14 Sep 2010 17:20:16 +0000 (10:20 -0700)]
Merge "WiFi load, scan, associate, unload stress test"

13 years agoWiFi load, scan, associate, unload stress test
Louis Huemiller [Tue, 31 Aug 2010 00:15:49 +0000 (17:15 -0700)]
WiFi load, scan, associate, unload stress test

Change-Id: I5c33e5bee60550c1d82ffd0c18d7cae39db613a4

13 years agoam 9c842adc: Add support for IEEE 802.c stylc CRC32 computation to the sparse image...
Ken Sumrall [Wed, 8 Sep 2010 01:51:41 +0000 (18:51 -0700)]
am 9c842adc: Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

Merge commit '9c842adc177c1bcd22c2038d8d237bfb70654dca'

* commit '9c842adc177c1bcd22c2038d8d237bfb70654dca':
  Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

13 years agoAdd support for IEEE 802.c stylc CRC32 computation to the sparse image tools
Ken Sumrall [Tue, 17 Aug 2010 02:17:38 +0000 (19:17 -0700)]
Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

Add support for computing the CRC32 of the data when we make a sparse image,
and storing that CRC in the header.  Also update the simg2img tool that reads
sparse images to compute the CRC32 as it writes the image, and check to make
sure it matches what's in the header.

Change-Id: Id49b25bf820acb46ff981f3046fba5b24fd82c8d

13 years agoAdd a couple of performance debug utilities.
Nick Pelly [Thu, 26 Aug 2010 18:21:29 +0000 (11:21 -0700)]
Add a couple of performance debug utilities.

micro_bench provides very simple tests for
o sleep accuracy
o cpu
o memcpy
o memset

sane_schedstat is a front-end for /proc/schedstat to diff and format the
counters.

Change-Id: I6e178fe37fcfc9bf0a83ec17852e31146a91e7a4
Signed-off-by: Nick Pelly <npelly@google.com>
13 years agoMerge "Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools"
Ken Sumrall [Tue, 17 Aug 2010 23:51:44 +0000 (16:51 -0700)]
Merge "Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools"

13 years agoAdd support for IEEE 802.c stylc CRC32 computation to the sparse image tools
Ken Sumrall [Tue, 17 Aug 2010 02:17:38 +0000 (19:17 -0700)]
Add support for IEEE 802.c stylc CRC32 computation to the sparse image tools

Add support for computing the CRC32 of the data when we make a sparse image,
and storing that CRC in the header.  Also update the simg2img tool that reads
sparse images to compute the CRC32 as it writes the image, and check to make
sure it matches what's in the header.

Change-Id: Iadea3a760f91fa9b1efd22a3580dd1943b1ff52e

13 years agoam 8642b7fb: ext4_utils: brought over from master
Brian Swetland [Mon, 16 Aug 2010 22:18:16 +0000 (15:18 -0700)]
am 8642b7fb: ext4_utils: brought over from master

Merge commit '8642b7fba54727a38f751516bcdc452fb09ef610'

* commit '8642b7fba54727a38f751516bcdc452fb09ef610':
  ext4_utils: brought over from master

13 years agoOverhaul FP tests to be simpler and report a more basic metric.
Jason Sams [Mon, 16 Aug 2010 22:11:47 +0000 (15:11 -0700)]
Overhaul FP tests to be simpler and report a more basic metric.

Change-Id: I90eabb01e0ac3fd1aed2c29ea19cc08cf96cc515

13 years agoext4_utils: brought over from master
Brian Swetland [Sat, 14 Aug 2010 02:27:48 +0000 (19:27 -0700)]
ext4_utils: brought over from master

13 years agoAdd support for sparse ext4 image creation.
Ken Sumrall [Fri, 13 Aug 2010 23:04:49 +0000 (16:04 -0700)]
Add support for sparse ext4 image creation.

This adds the -s option to the make_ext4fs tool, which now creates
"sparse" filesystem images, which is very useful for the large 32 Gbyte
filesystems we are now building.
This check-in also fixes make_ext4fs to properly create filesystems
larger thatn 4 Gbytes on 64-bit Linux, 32-bit android and Macs.

Change-Id: Ie5838492fcf944f5c875481693c0dbd7013deae4

13 years agoFix calculation of dentry size
Colin Cross [Thu, 5 Aug 2010 18:56:38 +0000 (11:56 -0700)]
Fix calculation of dentry size

The PAD_TO function was incorrectly handling values that were already
aligned, which could lead to overruns of the dentry block.  Fix the
function, rename it to ALIGN, move it to ext4_utils.h, and use it
everywhere the dentry size is calculated.

Change-Id: Ie9778d2c6f72d3db9a3162e52882377a71b8420a

13 years agolibublock/fatblock: Tag modules optional.
Thomas Tuttle [Thu, 5 Aug 2010 18:53:00 +0000 (11:53 -0700)]
libublock/fatblock: Tag modules optional.

Change-Id: I793e67f21d41e4c6df0a2e2ab2b2864adb2fe5ed

13 years agolibublock: Don't prelink.
Thomas Tuttle [Thu, 5 Aug 2010 18:48:23 +0000 (11:48 -0700)]
libublock: Don't prelink.

Change-Id: Ib33e84439dd3073b7a46deb353e73d439b9fceb5