OSDN Git Service

android-x86/system-extras.git
11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Fri, 12 Oct 2012 14:32:31 +0000 (07:32 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ia0c83f8eaad8974240651bfa206f0212eb72983d

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 11 Oct 2012 23:27:11 +0000 (16:27 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam a09aa3ea: Add -n and -S options for \'nohup\', offline traces
Glenn Kasten [Thu, 11 Oct 2012 15:39:57 +0000 (08:39 -0700)]
am a09aa3ea: Add -n and -S options for \'nohup\', offline traces

* commit 'a09aa3eaad6ed5432ee13c764c67e67f7f43cac9':
  Add -n and -S options for 'nohup', offline traces

11 years agoam b67683f6: Merge "make_ext4fs: add const qualifier to mountpoint"
Kenny Root [Wed, 10 Oct 2012 21:28:35 +0000 (14:28 -0700)]
am b67683f6: Merge "make_ext4fs: add const qualifier to mountpoint"

* commit 'b67683f6c0c75536c991cac797b0c1dbcf9168e0':
  make_ext4fs: add const qualifier to mountpoint

11 years agoMerge "make_ext4fs: add const qualifier to mountpoint"
Kenny Root [Wed, 10 Oct 2012 19:21:20 +0000 (12:21 -0700)]
Merge "make_ext4fs: add const qualifier to mountpoint"

11 years agomake_ext4fs: add const qualifier to mountpoint
Kenny Root [Wed, 10 Oct 2012 18:16:05 +0000 (11:16 -0700)]
make_ext4fs: add const qualifier to mountpoint

Silence compiler warning and enforce some const correctness by adding
the const qualifier to the mountpoint argument in make_ext4fs_internal

Change-Id: I0ce3c04fc36423e43b89e8e8d24735858a55e537

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 9 Oct 2012 14:31:08 +0000 (07:31 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I598988c7b0ec650064de569c6120b27c724c478e

11 years agoAdd -n and -S options for 'nohup', offline traces
Glenn Kasten [Tue, 5 Jun 2012 23:42:22 +0000 (16:42 -0700)]
Add -n and -S options for 'nohup', offline traces

Change-Id: Ieef12b36b8519ff689ab5a81447b1b9bf4806171

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Sun, 7 Oct 2012 23:05:40 +0000 (16:05 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 24505a58: atrace: make clock & bus bw tracing optional
Jamie Gennis [Sun, 7 Oct 2012 17:34:57 +0000 (10:34 -0700)]
am 24505a58: atrace: make clock & bus bw tracing optional

* commit '24505a5826d7c5cf89f3da85058befd671a73444':
  atrace: make clock & bus bw tracing optional

11 years agoatrace: make clock & bus bw tracing optional
Jamie Gennis [Fri, 5 Oct 2012 23:04:12 +0000 (16:04 -0700)]
atrace: make clock & bus bw tracing optional

This change makes enabling clock tracing and bus bandwidth tracing depend on
whether the device's kernel supports these features.  If it's not supported it
will be skipped.

Change-Id: I51d57299693635b0ecebb75de5dccd5b62d47be3

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Fri, 5 Oct 2012 15:18:42 +0000 (08:18 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I6ad917dd332cd6677d124b08197e1686e66e0fca

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Fri, 5 Oct 2012 14:00:34 +0000 (07:00 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam a404a7e9: atrace: add clock rate and bus utilization
Erik Gilling [Thu, 4 Oct 2012 23:15:26 +0000 (16:15 -0700)]
am a404a7e9: atrace: add clock rate and bus utilization

* commit 'a404a7e9bb05f4c1b0c9312d10a4c96c6cbdfcc9':
  atrace: add clock rate and bus utilization

11 years agoatrace: add clock rate and bus utilization
Erik Gilling [Fri, 21 Sep 2012 00:55:10 +0000 (17:55 -0700)]
atrace: add clock rate and bus utilization

Change-Id: I4e1764b51225436fc2b3d61454ee822f511a1a7d

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 2 Oct 2012 16:21:03 +0000 (09:21 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Iea091cf0ec873075e14c7a17ed185e9cbde68d1c

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Sun, 30 Sep 2012 14:00:30 +0000 (07:00 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam fa98203c: More Issue #7211769: Crash dialog from background user has non-working...
Dianne Hackborn [Fri, 28 Sep 2012 22:56:53 +0000 (15:56 -0700)]
am fa98203c: More Issue #7211769: Crash dialog from background user has non-working "report"

* commit 'fa98203c441d00d374349ce35c0c7ba2f38cc53a':
  More Issue #7211769: Crash dialog from background user has non-working "report"

11 years agoMore Issue #7211769: Crash dialog from background user has non-working "report"
Dianne Hackborn [Fri, 28 Sep 2012 22:40:29 +0000 (15:40 -0700)]
More Issue #7211769: Crash dialog from background user has non-working "report"

Bug report needs to be launched for the current user.

Change-Id: I2b8f812ede43fc36c76deab544bacf88dba8fefd

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Thu, 20 Sep 2012 17:37:31 +0000 (10:37 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ic61db28563308c2da38d7b2c2c12e0486914ea17

11 years agoBuild bugreport paths for emulated storage.
Jeff Sharkey [Wed, 12 Sep 2012 20:15:50 +0000 (13:15 -0700)]
Build bugreport paths for emulated storage.

Bug: 7152673
Change-Id: Iae7b298721d2b6690ce9b57245400702fb5d0c4c

11 years agoAlways read bugreports from EXTERNAL_STORAGE.
Jeff Sharkey [Wed, 12 Sep 2012 17:58:00 +0000 (10:58 -0700)]
Always read bugreports from EXTERNAL_STORAGE.

Bug: 7152673
Change-Id: Ibff4503ef21816bfe936eeba89183d1647c85043

11 years agoam b568de03: Build bugreport paths for emulated storage.
Jeff Sharkey [Wed, 12 Sep 2012 20:31:14 +0000 (13:31 -0700)]
am b568de03: Build bugreport paths for emulated storage.

* commit 'b568de03db20f124a458d914eed33cee4630bb81':
  Build bugreport paths for emulated storage.

11 years agoBuild bugreport paths for emulated storage.
Jeff Sharkey [Wed, 12 Sep 2012 20:15:50 +0000 (13:15 -0700)]
Build bugreport paths for emulated storage.

Bug: 7152673
Change-Id: Iae7b298721d2b6690ce9b57245400702fb5d0c4c

11 years agoam cf4e11b4: Always read bugreports from EXTERNAL_STORAGE.
Jeff Sharkey [Wed, 12 Sep 2012 18:01:28 +0000 (11:01 -0700)]
am cf4e11b4: Always read bugreports from EXTERNAL_STORAGE.

* commit 'cf4e11b4f8ba78de68a06b0ad463397d488df522':
  Always read bugreports from EXTERNAL_STORAGE.

11 years agoAlways read bugreports from EXTERNAL_STORAGE.
Jeff Sharkey [Wed, 12 Sep 2012 17:58:00 +0000 (10:58 -0700)]
Always read bugreports from EXTERNAL_STORAGE.

Bug: 7152673
Change-Id: Ibff4503ef21816bfe936eeba89183d1647c85043

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Thu, 6 Sep 2012 14:55:21 +0000 (07:55 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ibb666e518d3d41ce85b3276a702a28d191cdba92

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 5 Sep 2012 13:34:51 +0000 (06:34 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 818b58c3: Guard against NPE in SendBug
Guang Zhu [Tue, 4 Sep 2012 21:10:52 +0000 (14:10 -0700)]
am 818b58c3: Guard against NPE in SendBug

* commit '818b58c3cc3d9f99d65bc9e4e7ff5b80021079ec':
  Guard against NPE in SendBug

11 years agoGuard against NPE in SendBug
Guang Zhu [Tue, 4 Sep 2012 20:49:46 +0000 (13:49 -0700)]
Guard against NPE in SendBug

Add some null checks in case that SendBug is invoked while system
server is in fact not running, e.g. during a runtime restart. So
that we don't hit NPE in SendBug, looking suspiciously like the
cause rather than a consequence of the real issue.

Bug: 7097125

Change-Id: I82676ab936fe19a781c32f949e6e429eb4045d63

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Sat, 25 Aug 2012 14:18:16 +0000 (07:18 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: Ic5f4d5010eedb666a8881982067b136cdc220fa7

11 years agoDon't use intent chooser
Guang Zhu [Thu, 23 Aug 2012 23:09:04 +0000 (16:09 -0700)]
Don't use intent chooser

Since it forces user to make selection, not offering an option to
remember the choice. Remove the new task flag, also adds an
explicit default category

Change-Id: I3834a8fa27782d14989e510c0756d36aaeeb2bab

11 years agoam 46899d1b: Don\'t use intent chooser
Guang Zhu [Thu, 23 Aug 2012 23:13:05 +0000 (16:13 -0700)]
am 46899d1b: Don\'t use intent chooser

* commit '46899d1b5d606e9349a40079b60034e3cf6eaafb':
  Don't use intent chooser

11 years agoDon't use intent chooser
Guang Zhu [Thu, 23 Aug 2012 23:09:04 +0000 (16:09 -0700)]
Don't use intent chooser

Since it forces user to make selection, not offering an option to
remember the choice. Remove the new task flag, also adds an
explicit default category

Change-Id: I3834a8fa27782d14989e510c0756d36aaeeb2bab

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Thu, 23 Aug 2012 13:34:31 +0000 (06:34 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam 62716d52: Merge "Update emmc perf test tool" into jb-mr1-dev
Ken Sumrall [Wed, 22 Aug 2012 23:58:17 +0000 (16:58 -0700)]
am 62716d52: Merge "Update emmc perf test tool" into jb-mr1-dev

* commit '62716d5212c9f993a85654641b534f008e487bd9':
  Update emmc perf test tool

11 years agoMerge "Update emmc perf test tool" into jb-mr1-dev
Ken Sumrall [Wed, 22 Aug 2012 23:56:50 +0000 (16:56 -0700)]
Merge "Update emmc perf test tool" into jb-mr1-dev

11 years agoUpdate emmc perf test tool
Ken Sumrall [Wed, 22 Aug 2012 23:53:03 +0000 (16:53 -0700)]
Update emmc perf test tool

Drop caches before read tests.
Fix random read tests to read area big enough to prevent
the block cache from filling with the data being read.
Test with the read-ahead set to 4K, and at the default value.

Change-Id: Ifffa07fe4c89b6e103ce4fd71d0fa9881fed0dc7

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 22 Aug 2012 22:36:47 +0000 (15:36 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I1bfc1867c44e5793876b1bd237b134cc8357e25a

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Wed, 22 Aug 2012 13:34:37 +0000 (06:34 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoam c8698cb9: Explicitly use an intent chooser for sending bugreport
Guang Zhu [Wed, 22 Aug 2012 03:26:29 +0000 (20:26 -0700)]
am c8698cb9: Explicitly use an intent chooser for sending bugreport

* commit 'c8698cb92ef83e96b3c7776be9b47d174095bc15':
  Explicitly use an intent chooser for sending bugreport

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Tue, 21 Aug 2012 23:07:43 +0000 (16:07 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I8313a3f0bfe67f7d4c044d95edd9dcdc5672a37a

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Mon, 20 Aug 2012 13:36:06 +0000 (06:36 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoExplicitly use an intent chooser for sending bugreport
Guang Zhu [Sat, 18 Aug 2012 01:14:55 +0000 (18:14 -0700)]
Explicitly use an intent chooser for sending bugreport

This enables:

1. an explicit title for intent chooser, so that the user is
   aware that chosen action is for sending out bugreport

2. the original intent has new task flag that causes
   ResolveActivity to finish() when stop()ped. This means that
   if intent is fired when screen is off (common scenario now
   because bugreport takes a long time), the chooser will not be
   shown

Bug: 6864596

Change-Id: I6cce2d1390c8ac24b15d26e9ba80a845222a1c18

11 years agoRevert "sendbug improvements on email address handling"
The Android Automerger [Fri, 17 Aug 2012 21:55:49 +0000 (14:55 -0700)]
Revert "sendbug improvements on email address handling"

This reverts commit 9ebc639a313d143ade1293cb5932b446d5e623d5.

11 years agoam 781c3404: am 7793c09e: Merge changes I4e94b8b9,Iae48d489
Joe Onorato [Fri, 17 Aug 2012 07:19:08 +0000 (00:19 -0700)]
am 781c3404: am 7793c09e: Merge changes I4e94b8b9,Iae48d489

* commit '781c3404311c081a4f41f15628851aeede0172d6':
  Support for multiple modules with the same name is going away.
  Support for multiple modules with the same name is going away.

11 years agoam 7793c09e: Merge changes I4e94b8b9,Iae48d489
Joe Onorato [Fri, 17 Aug 2012 07:16:44 +0000 (00:16 -0700)]
am 7793c09e: Merge changes I4e94b8b9,Iae48d489

* commit '7793c09ec42bf1a01a5f45f0e723f9a36fcfd9d7':
  Support for multiple modules with the same name is going away.
  Support for multiple modules with the same name is going away.

11 years agoMerge changes I4e94b8b9,Iae48d489
Joe Onorato [Fri, 17 Aug 2012 06:38:01 +0000 (23:38 -0700)]
Merge changes I4e94b8b9,Iae48d489

* changes:
  Support for multiple modules with the same name is going away.
  Support for multiple modules with the same name is going away.

11 years agoam 4228ed68: Merge "Support custom path when saving bugreports." into jb-mr1-dev
Jeff Sharkey [Thu, 16 Aug 2012 21:35:55 +0000 (14:35 -0700)]
am 4228ed68: Merge "Support custom path when saving bugreports." into jb-mr1-dev

* commit '4228ed68c2cb70a2c79620619b4ef01cfcdc8a3d':
  Support custom path when saving bugreports.

11 years agoMerge "Support custom path when saving bugreports." into jb-mr1-dev
Jeff Sharkey [Thu, 16 Aug 2012 21:33:04 +0000 (14:33 -0700)]
Merge "Support custom path when saving bugreports." into jb-mr1-dev

11 years agoSupport custom path when saving bugreports.
Jeff Sharkey [Thu, 16 Aug 2012 17:32:14 +0000 (10:32 -0700)]
Support custom path when saving bugreports.

When running on multi-user devices, we need to save bugreport data
to a write path, and launch intents using a different read path.

Bug: 6925012
Change-Id: I32773b733e8a4dd75a30f5b9b05424c4238243af

11 years agoSupport for multiple modules with the same name is going away.
Joe Onorato [Tue, 24 Jul 2012 02:15:37 +0000 (19:15 -0700)]
Support for multiple modules with the same name is going away.

Change-Id: I4e94b8b9cc7c88e07e8a09abc26a3e7d495ac5be

11 years agoSupport for multiple modules with the same name is going away.
Joe Onorato [Sat, 21 Jul 2012 23:31:23 +0000 (16:31 -0700)]
Support for multiple modules with the same name is going away.

Change-Id: Iae48d4890aa7266ca7b57b3b9a8712d2d33d4909

11 years agoReconcile with jb-mr1-release - do not merge
The Android Open Source Project [Wed, 15 Aug 2012 15:29:20 +0000 (08:29 -0700)]
Reconcile with jb-mr1-release - do not merge

Change-Id: I024b531fa1a5981a894bbd56f91e263b15928a1b

11 years agomerge in jb-mr1-release history after reset to jb-mr1-dev
The Android Automerger [Tue, 14 Aug 2012 14:08:12 +0000 (07:08 -0700)]
merge in jb-mr1-release history after reset to jb-mr1-dev

11 years agoMerge "Add manta support to android_emmc_perf_tests.sh" into jb-mr1-dev
Ken Sumrall [Tue, 14 Aug 2012 05:37:58 +0000 (22:37 -0700)]
Merge "Add manta support to android_emmc_perf_tests.sh" into jb-mr1-dev

11 years agoAdd manta support to android_emmc_perf_tests.sh
Ken Sumrall [Tue, 14 Aug 2012 05:34:58 +0000 (22:34 -0700)]
Add manta support to android_emmc_perf_tests.sh

Also tweak the script a little bit.  This is only for testing,
and doesn't ship in any product.

Change-Id: I9506d6babddef91fc6d9c0083064e0ef8a2d70a8

11 years agosendbug improvements on email address handling
Guang Zhu [Fri, 10 Aug 2012 04:07:50 +0000 (21:07 -0700)]
sendbug improvements on email address handling

* use a property to indicate a preferred domain in case multiple
  email addresses are detected; otherwise just pick the first
  one that matches email address regex
* don't fire the intent if no email account is configured, there
  have been reports on confusing behavior when capturing
  bugreport for setup wizard

Bug: 6720467
Change-Id: Ib9b0b8a09e4e565b2531f3ec53723cd46186596f

11 years agosendbug improvements on email address handling
Guang Zhu [Fri, 10 Aug 2012 04:07:50 +0000 (21:07 -0700)]
sendbug improvements on email address handling

* use a property to indicate a preferred domain in case multiple
  email addresses are detected; otherwise just pick the first
  one that matches email address regex
* don't fire the intent if no email account is configured, there
  have been reports on confusing behavior when capturing
  bugreport for setup wizard

Bug: 6720467
Change-Id: Ib9b0b8a09e4e565b2531f3ec53723cd46186596f

11 years agoam 332e8bab: Merge "Avoid dereferencing NULL pointer with memcmp in the test code."
Jean-Baptiste Queru [Thu, 9 Aug 2012 18:43:53 +0000 (11:43 -0700)]
am 332e8bab: Merge "Avoid dereferencing NULL pointer with memcmp in the test code."

* commit '332e8babe350433b320efc9484f15a5dbdd8c68f':
  Avoid dereferencing NULL pointer with memcmp in the test code.

11 years agoMerge "Avoid dereferencing NULL pointer with memcmp in the test code."
Jean-Baptiste Queru [Thu, 9 Aug 2012 18:24:26 +0000 (11:24 -0700)]
Merge "Avoid dereferencing NULL pointer with memcmp in the test code."

11 years agoMerge "Add directory tree traversal benchmark." into jb-mr1-dev
Jeff Sharkey [Wed, 8 Aug 2012 20:50:16 +0000 (13:50 -0700)]
Merge "Add directory tree traversal benchmark." into jb-mr1-dev

11 years agoAdd directory tree traversal benchmark.
Jeff Sharkey [Sat, 4 Aug 2012 00:57:55 +0000 (17:57 -0700)]
Add directory tree traversal benchmark.

Generates a directory tree with requested depth, also writing files
at each leaf to add width.  Then it times traversal of entire tree,
which can reveal impact of VFS caching inside kernel.

Also specify mode_t when creating files.

Bug: 6925012
Change-Id: I65370d6fd0b9777e959be3a0867f27ce22ee4644

11 years agoallow java build if supported
Keun young Park [Wed, 8 Aug 2012 00:25:52 +0000 (17:25 -0700)]
allow java build if supported

- send_bug requires platform API support which is
  enabled in PDK fusion build with platform.zip from platform-java build

Change-Id: I3285f595eb2a310a34770d40fa0b7c606669f1bf

12 years agoam 983ce573: Merge "Fix SELinux labeling for system.img"
Nick Kralevich [Thu, 19 Jul 2012 08:13:16 +0000 (01:13 -0700)]
am 983ce573: Merge "Fix SELinux labeling for system.img"

* commit '983ce5738cee0bf78b87d6274fe1387129768302':
  Fix SELinux labeling for system.img

12 years agoMerge "Fix SELinux labeling for system.img"
Nick Kralevich [Wed, 18 Jul 2012 20:48:10 +0000 (13:48 -0700)]
Merge "Fix SELinux labeling for system.img"

12 years agoam fc3e87f7: Merge "system/extras/ext4_utils: move libsparse to system/core"
Colin Cross [Wed, 18 Jul 2012 06:39:43 +0000 (23:39 -0700)]
am fc3e87f7: Merge "system/extras/ext4_utils: move libsparse to system/core"

* commit 'fc3e87f70ba3c896ea5a85df3648623f207f88cc':
  system/extras/ext4_utils: move libsparse to system/core

12 years agoam cab03682: Merge changes I32c33626,I93bc9cf9,I1f66f6c3
Colin Cross [Wed, 18 Jul 2012 06:39:43 +0000 (23:39 -0700)]
am cab03682: Merge changes I32c33626,I93bc9cf9,I1f66f6c3

* commit 'cab036827411791e8f197a0194f95faad6f12cec':
  make_ext4fs: allow sparse gzip files
  libsparse: make API sane
  Refactor sparse file support into libsparse

12 years agoMerge "system/extras/ext4_utils: move libsparse to system/core"
Colin Cross [Wed, 18 Jul 2012 01:36:43 +0000 (18:36 -0700)]
Merge "system/extras/ext4_utils: move libsparse to system/core"

12 years agoMerge changes I32c33626,I93bc9cf9,I1f66f6c3
Colin Cross [Wed, 18 Jul 2012 01:32:25 +0000 (18:32 -0700)]
Merge changes I32c33626,I93bc9cf9,I1f66f6c3

* changes:
  make_ext4fs: allow sparse gzip files
  libsparse: make API sane
  Refactor sparse file support into libsparse

12 years agosystem/extras/ext4_utils: move libsparse to system/core
Colin Cross [Sun, 20 May 2012 20:37:10 +0000 (13:37 -0700)]
system/extras/ext4_utils: move libsparse to system/core

Delete libsparse from ext4_utils, move it to system/core/libsparse in
preparation for linking tools in system/core against it.

Change-Id: I3545c2e0ad7122f99bbc998ab0e85ca1e65d5add

12 years agomake_ext4fs: allow sparse gzip files
Colin Cross [Fri, 18 May 2012 21:50:02 +0000 (14:50 -0700)]
make_ext4fs: allow sparse gzip files

libsparse can handle sparse gzipped files, allow -s and -z together.

Change-Id: I32c336269375135af6be5d00a55604f8bf7619a3

12 years agolibsparse: make API sane
Colin Cross [Wed, 25 Apr 2012 00:48:43 +0000 (17:48 -0700)]
libsparse: make API sane

Replaces the libsparse API with a sane one based on an opaque
pointer.

Change-Id: I93bc9cf9a6b912a993ef554dbe6ffe2f0f723383

12 years agoRefactor sparse file support into libsparse
Colin Cross [Tue, 24 Apr 2012 06:20:48 +0000 (23:20 -0700)]
Refactor sparse file support into libsparse

Minimal refactoring of output_file.c into libsparse in preparation
for completely separating libsparse from ext4_utils.

Moves output_file.c, backed_block.c, and parts of ext4_utils.c
into libsparse.  The only changes to the remanining files in
ext4_utils are using the new sparse.h header, and moving the
wipe call out of output_file.c and into make_ext4fs.c.

Change-Id: I1f66f6c3e05230a350023c5b4ea4422f16a73c4b

12 years agoFix SELinux labeling for system.img
rpcraig [Wed, 11 Jul 2012 12:08:17 +0000 (08:08 -0400)]
Fix SELinux labeling for system.img

The system partition isn't getting labeled during the build.
This patch corrects that.
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Change-Id: I2695c60232935da272ac194fb9ece016c84b4593

12 years agoam d2b6666e: am 32243fad: Fix a few bugs in rand_emmc_perf
Ken Sumrall [Thu, 28 Jun 2012 00:04:23 +0000 (17:04 -0700)]
am d2b6666e: am 32243fad: Fix a few bugs in rand_emmc_perf

* commit 'd2b6666effb387c9052cd63378c6d5ddd1c0d1c7':
  Fix a few bugs in rand_emmc_perf

12 years agoam 32243fad: Fix a few bugs in rand_emmc_perf
Ken Sumrall [Thu, 28 Jun 2012 00:01:45 +0000 (17:01 -0700)]
am 32243fad: Fix a few bugs in rand_emmc_perf

* commit '32243fadeab8cf244861e3df89744b78ba3eff92':
  Fix a few bugs in rand_emmc_perf

12 years agoFix a few bugs in rand_emmc_perf
Ken Sumrall [Wed, 27 Jun 2012 23:01:40 +0000 (16:01 -0700)]
Fix a few bugs in rand_emmc_perf

Fix the code to properly read urandom to init the random number generator.
Fix to properly read the arguments if any options are given.
Fix to enable it to be built against glibc.

Change-Id: I9127a71232e39afa3054fe9f1612def9ae13d9d3

12 years agoam 952a2aaa: am 2633ce5c: Add some tools for testing ext4 performance and resiliency.
Ken Sumrall [Mon, 18 Jun 2012 14:34:07 +0000 (07:34 -0700)]
am 952a2aaa: am 2633ce5c: Add some tools for testing ext4 performance and resiliency.

* commit '952a2aaa3780074390d5a13f11f0ef7ac264724a':
  Add some tools for testing ext4 performance and resiliency.

12 years agoam 2633ce5c: Add some tools for testing ext4 performance and resiliency.
Ken Sumrall [Mon, 18 Jun 2012 14:31:53 +0000 (07:31 -0700)]
am 2633ce5c: Add some tools for testing ext4 performance and resiliency.

* commit '2633ce5ca5024d5565c9068c29ec39a8c3ed10e9':
  Add some tools for testing ext4 performance and resiliency.

12 years agoAdd some tools for testing ext4 performance and resiliency.
Ken Sumrall [Wed, 30 May 2012 23:44:40 +0000 (16:44 -0700)]
Add some tools for testing ext4 performance and resiliency.

rand_emmc_perf is a simple test to test random read/write performance
of emmc chips.  android_emmc_perf_tests is a script that runs on
the host that uses rand_emmc_perf to test the emmc performance on
a device.

corrupt_gdt_free_blocks is used to corrupt a filesystem so the kernel
trips over it at runtime and panics, thus testing kernel's ability to
mark the filesystem as needing to be fixed.

set_ext4_err_bit sets the error bit in the superblock so e2fsck will
trigger a full check next boot.

corrupt_gdt_free_blocks and set_ext4_err_bit are only built for
userdebug and eng builds.  rand_emmc_perf is marked optional, and
not included in any build by default.

Change-Id: I808174025d891f358ac54008371cb590e3c19f2f

12 years agoam a3a75d95: am b9314021: atrace: enable running on user builds
Jamie Gennis [Tue, 12 Jun 2012 21:52:38 +0000 (14:52 -0700)]
am a3a75d95: am b9314021: atrace: enable running on user builds

* commit 'a3a75d956e502f924dc29f4f29c7d46f0f8e4e56':
  atrace: enable running on user builds

12 years agoam b9314021: atrace: enable running on user builds
Jamie Gennis [Tue, 12 Jun 2012 19:41:23 +0000 (12:41 -0700)]
am b9314021: atrace: enable running on user builds

* commit 'b9314021ee1ccaa62eb115e8e0188f482a950f3b':
  atrace: enable running on user builds

12 years agoatrace: enable running on user builds
Jamie Gennis [Thu, 7 Jun 2012 23:27:03 +0000 (16:27 -0700)]
atrace: enable running on user builds

This change allows atrace to be run on a user build, where it is not run as
root.  Some command line options still require root, and atrace will refuse to
run if those options are specified when run as non-root.

Bug: 6513400
Change-Id: I29984cb8a7c3ad80ba5fa6b031ed8ff81acabacf

12 years agoam 400e9bc8: am 47aa1049: Merge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."
Kenny Root [Thu, 31 May 2012 20:46:34 +0000 (13:46 -0700)]
am 400e9bc8: am 47aa1049: Merge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."

* commit '400e9bc8d3c449da234e70abe319bc2670c94298':
  Fixes to make_ext4fs when compiled with HAVE_SELINUX.

12 years agoam 47aa1049: Merge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."
Kenny Root [Thu, 31 May 2012 20:43:49 +0000 (13:43 -0700)]
am 47aa1049: Merge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."

* commit '47aa1049e80927420b59723806fab579997a7430':
  Fixes to make_ext4fs when compiled with HAVE_SELINUX.

12 years agoMerge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."
Kenny Root [Thu, 31 May 2012 20:07:52 +0000 (13:07 -0700)]
Merge "Fixes to make_ext4fs when compiled with HAVE_SELINUX."

12 years agoFixes to make_ext4fs when compiled with HAVE_SELINUX.
Matt Finifter [Thu, 31 May 2012 17:47:47 +0000 (10:47 -0700)]
Fixes to make_ext4fs when compiled with HAVE_SELINUX.

Fix a segfault in contents.c.

Change-Id: I77c39b2cda5f3aa572b5ed8a4f2e5da78341eed6

12 years agoFixes to make_ext4fs when compiled with HAVE_SELINUX.
Matt Finifter [Thu, 31 May 2012 17:47:47 +0000 (10:47 -0700)]
Fixes to make_ext4fs when compiled with HAVE_SELINUX.

Set HAVE_SELINUX flag for host compilation of make_ext4fs.

Fix a segfault in contents.c.

Change-Id: I77c39b2cda5f3aa572b5ed8a4f2e5da78341eed6

12 years agoam 83fdbb05: Add disk I/O tracing.
Jeff Brown [Wed, 23 May 2012 04:30:54 +0000 (21:30 -0700)]
am 83fdbb05: Add disk I/O tracing.

* commit '83fdbb05c39b030ef1e5b3a7db79c617114c20f4':
  Add disk I/O tracing.

12 years agoAdd disk I/O tracing.
Jeff Brown [Wed, 23 May 2012 01:58:46 +0000 (18:58 -0700)]
Add disk I/O tracing.

Bug: 6488845
Change-Id: I93acb726f35b114fb1ea7297da4456826f805b7b

12 years agoam 80cb1550: Ignore SIGPIPE is some of the tools used via dumpstate
JP Abgrall [Tue, 15 May 2012 02:33:19 +0000 (19:33 -0700)]
am 80cb1550: Ignore SIGPIPE is some of the tools used via dumpstate

* commit '80cb15504324667c9934ff350afff48881613393':
  Ignore SIGPIPE is some of the tools used via dumpstate

12 years agoIgnore SIGPIPE is some of the tools used via dumpstate
JP Abgrall [Fri, 11 May 2012 21:09:59 +0000 (14:09 -0700)]
Ignore SIGPIPE is some of the tools used via dumpstate

  adb bugreport > b & sleep 5; kill $?
will show that a bunch of tools will SIGPIPE when trying to output data
which is normal.
We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc
passed down via fork/exec.

Bug: 6447319
Change-Id: I1634a00a155fd8a3fd827aa4a77e94518534336c

12 years agoam 585c219b: atrace: add support for tracing CPU idle events
Jamie Gennis [Wed, 9 May 2012 08:48:07 +0000 (01:48 -0700)]
am 585c219b: atrace: add support for tracing CPU idle events

* commit '585c219b9b7c2e89b8db6707cacdaf29c362e7ba':
  atrace: add support for tracing CPU idle events

12 years agoatrace: add support for tracing CPU idle events
Jamie Gennis [Tue, 8 May 2012 00:58:44 +0000 (17:58 -0700)]
atrace: add support for tracing CPU idle events

This change adds the -i command line flag to atrace to enable tracing CPU idle
kernel events.

Change-Id: I4a2c8619224c0f50c7fd7c61c7b24fa2211f656c

12 years agoam 16052ec5: Merge "ext4_utils: Fix long symbolic links"
Colin Cross [Mon, 7 May 2012 06:19:33 +0000 (23:19 -0700)]
am 16052ec5: Merge "ext4_utils: Fix long symbolic links"

* commit '16052ec56a0836db7de51d6ea4173c6b53f0a9b9':
  ext4_utils: Fix long symbolic links

12 years agoMerge "ext4_utils: Fix long symbolic links"
Colin Cross [Sun, 6 May 2012 23:36:50 +0000 (16:36 -0700)]
Merge "ext4_utils: Fix long symbolic links"

12 years agoatrace: add support for zlib compression
Jamie Gennis [Sun, 29 Apr 2012 02:06:49 +0000 (19:06 -0700)]
atrace: add support for zlib compression

This change adds the -z command line flag to atrace to enable support for
compressing the trace with zlib as it's printed to stdout.

Change-Id: I45301c63a4d1d388152244fec3c9e05e554598e8

12 years agoMerge "atrace: make cpu freq governor tracing optional"
Jamie Gennis [Tue, 10 Apr 2012 22:18:39 +0000 (15:18 -0700)]
Merge "atrace: make cpu freq governor tracing optional"

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