Commit Graph

26826 Commits

Author SHA1 Message Date
Elliott Hughes 1a947725b8 Merge "Improve init bootcharting." am: 4ee7861ee1
am: a6532b4717

Change-Id: Ifaad4b0145c39af14d7622711a19dd72b062db8b
2016-12-16 17:47:10 +00:00
Elliott Hughes a6532b4717 Merge "Improve init bootcharting."
am: 4ee7861ee1

Change-Id: I1ac594b6e0325f4006fa1ca60ee75af8849a5901
2016-12-16 17:38:39 +00:00
Elliott Hughes 4ee7861ee1 Merge "Improve init bootcharting." 2016-12-16 17:32:27 +00:00
Jeff Sharkey 4898fd9f4f Merge commit '04c9a4da7e261b797c726cf31bf0ea232a8f685d' into foobar3
Change-Id: Ia462030220115d6a602c2fcbcbccea162ca335bb
2016-12-15 22:27:41 -07:00
Jeff Sharkey 839f8c11ec Merge "fs_mgr: support to reserved some blocks for an ext2/3/4 partition." am: 60739458e5
am: c8e717f414

Change-Id: Ie8816d84d8f9640d4d064255d4eafa70fdeec3ab
2016-12-16 05:13:55 +00:00
Jeff Sharkey 04c9a4da7e Merge "Add fs_mgr option to enable/disable quotas."
am: 3b261ace57

Change-Id: I63957616da4017af4bd386c676876931f98926fe
2016-12-16 05:06:12 +00:00
Jeff Sharkey c8e717f414 Merge "fs_mgr: support to reserved some blocks for an ext2/3/4 partition."
am: 60739458e5

Change-Id: I919f6f4411e7d89d4b85ee66bea5eb71a4304889
2016-12-16 05:05:58 +00:00
Jeff Sharkey 3b261ace57 Merge "Add fs_mgr option to enable/disable quotas." 2016-12-16 04:56:39 +00:00
Jeff Sharkey 60739458e5 Merge "fs_mgr: support to reserved some blocks for an ext2/3/4 partition." 2016-12-16 04:56:30 +00:00
Mark Salyzyn aeb972ae64 Merge "liblog: event_tag_map use unordered_map" am: 8b99ef6c21
am: 5f1b27fdbb

Change-Id: I169ca9b634079ea7df000611639a25a0f2e3baf6
2016-12-16 02:17:46 +00:00
Mark Salyzyn 5f1b27fdbb Merge "liblog: event_tag_map use unordered_map"
am: 8b99ef6c21

Change-Id: I0644ce91d87088dd5583f10c6fdf4443820a90be
2016-12-16 02:10:15 +00:00
Treehugger Robot 8b99ef6c21 Merge "liblog: event_tag_map use unordered_map" 2016-12-16 01:57:03 +00:00
Colin Cross f42618d1cc Merge changes I6dc353a2,I7df990f0 am: bb612a356a
am: 3a3e02e835

Change-Id: I90957532ce6fcacf184946ce103476334ae0b6a2
2016-12-16 01:25:06 +00:00
Colin Cross 7786c2d50c Convert the rest of libbacktrace to Android.bp am: da9bd5902f
am: 05d1359db2

Change-Id: I02930aa02a54dd6944316d3aecf1ddaa50809c8b
2016-12-16 01:24:59 +00:00
Colin Cross bca6f13b4a Fix unused parameter warning for mips builds am: 06d314917f
am: dc432aa3c7

Change-Id: Ic4143785288df86c1a9cfdfef0e2598f371a8ebd
2016-12-16 01:24:54 +00:00
Colin Cross 3a3e02e835 Merge changes I6dc353a2,I7df990f0
am: bb612a356a

Change-Id: Ibbf0934024884e8c24d6592e9963f549ef90a032
2016-12-16 00:23:14 +00:00
Colin Cross 05d1359db2 Convert the rest of libbacktrace to Android.bp
am: da9bd5902f

Change-Id: I95398fa532bab5398298fb6b2028d7797afc5c00
2016-12-16 00:23:13 +00:00
Colin Cross dc432aa3c7 Fix unused parameter warning for mips builds
am: 06d314917f

Change-Id: I512165bd8a70057c5c3560bc8d785f5193dcee9a
2016-12-16 00:23:08 +00:00
Treehugger Robot bb612a356a Merge changes I6dc353a2,I7df990f0
* changes:
  Convert the rest of libbacktrace to Android.bp
  Fix unused parameter warning for mips builds
2016-12-16 00:11:17 +00:00
Jeff Sharkey 6d89610d1a Add fs_mgr option to enable/disable quotas.
To support upcoming disk usage calculation optimizations, this change
adds a new 'quota' mount flag.  As part of mounting an ext4 device,
we now enable/disable the quota feature using tune2fs to match the
requested value in the fstab.

When changing the quota status, we force a fsck pass on the device
before actually mounting it to prime the quota data structures which
are stored in hidden inodes.

Changing quota state and priming the data structures needs to happen
before we actually mount the device, so fs_mgr is the best place to
place this logic.

Test: builds, boots, enables and disables quota
Bug: 27948817
Change-Id: I7ccbf97cbc4a679bdd7a31a77be4b99aa9a88e66
2016-12-15 16:35:50 -07:00
liminghao 9a0fd1d5d3 fs_mgr: support to reserved some blocks for an ext2/3/4 partition.
These reserved blocks used to root or claim to CAP_SYS_RESOURCES process.

Change-Id: I4893bdb08399bf31a7640d4a63f4952cd636576f
Merged-In: I4893bdb08399bf31a7640d4a63f4952cd636576f

Signed-off-by: liminghao <liminghao@xiaomi.com>
2016-12-15 16:26:53 -07:00
Elliott Hughes ced63cee3c Merge "Improve crasher." am: dbfb20bda4
am: b7ceb2397e

Change-Id: I2c8579a6f7b8cb636923703ce9551a51a095b19f
2016-12-15 23:23:34 +00:00
Jeff Sharkey 1ad4090e4e Merge "Define range of GIDs for cached app data." am: da94f09e22
am: ac13675071

Change-Id: Id5cbfbca06f75de7e67e25277adeac576f545ea2
2016-12-15 23:15:01 +00:00
Colin Cross 95f48fd29b Merge "Revert "Convert the rest of libbacktrace to Android.bp"" am: 049376f14d
am: 6b1a1badd0

Change-Id: I9b8437a7a5d624c2ca0015f56957d1fc8eb6b750
2016-12-15 23:14:40 +00:00
Mark Salyzyn 700fb87648 liblog: event_tag_map use unordered_map
>3 times faster access for lookup functions.  Code simplification and
C++ coding style conversion.  android_lookupEventTagNum has been
expanded to utilize the Format match, and then drops down to just
Tag match.

Performance testing on Hikey, all services stopped, shell only access,
CPU not locked had good repeatability.

$ adb reboot ; adb wait-for-device ; adb shell su root stop

Before this adjustment using binary search:

$ /data/nativetest64/liblog-benchmarks/liblog-benchmarks BM_lookupEvent*
                          iterations      ns/op
Precharge: start
Precharge: stop 231
BM_lookupEventTag           10000000        153
BM_lookupEventTag_NOT       20000000        139
BM_lookupEventFormat        10000000        153

After this adjustment strictly using std::unordered_map lookup:

$ /data/nativetest64/liblog-benchmarks/liblog-benchmarks BM_lookupEvent*
                          iterations      ns/op
Precharge: start
Precharge: stop 231
BM_lookupEventTag           50000000         56
BM_lookupEventTag_NOT      100000000         21
BM_lookupEventFormat        50000000         56

Test: gTest logd-unit-tests and liblog-unit-tests, liblog-benchmarks.
Bug: 31456426
Change-Id: I1cfc3d641c3ea9ab08d455efe0c844d3a6381440
2016-12-15 22:32:37 +00:00
Elliott Hughes b7ceb2397e Merge "Improve crasher."
am: dbfb20bda4

Change-Id: I77c00bef011d4c8ea5345012b72a8e808c5ab4d8
2016-12-15 22:07:43 +00:00
Elliott Hughes dbfb20bda4 Merge "Improve crasher." 2016-12-15 21:54:24 +00:00
Jeff Sharkey ac13675071 Merge "Define range of GIDs for cached app data."
am: da94f09e22

Change-Id: I5db07df01d02b7612d89bca226536cc6461d44b0
2016-12-15 21:52:05 +00:00
Jeff Sharkey da94f09e22 Merge "Define range of GIDs for cached app data." 2016-12-15 21:46:31 +00:00
Colin Cross da9bd5902f Convert the rest of libbacktrace to Android.bp
See build/soong/README.md for more information.

Reapplies I61c49fb62fdeafb66db25b8f97621239b8fd6e75 after fixing
an unused parameter warning on mips builds.

Test: mma -j
Test: backtrace_test
Change-Id: I6dc353a274cafcdb05ee866b41c3c2731612941c
2016-12-15 12:57:47 -08:00
Colin Cross 06d314917f Fix unused parameter warning for mips builds
libbacktrace_offline was inheriting -Wno-unused-parameter from llvm's
makefiles.  Fix an unused parameter warning when compiling for an
unsupported architecture, and return false since *value wasn't
written.

Test: lunch aosp_mips-eng && mma -j
Change-Id: I7df990f01e1025ca17ec3717107df56d2349f3cb
2016-12-15 12:57:45 -08:00
Colin Cross 6b1a1badd0 Merge "Revert "Convert the rest of libbacktrace to Android.bp""
am: 049376f14d

Change-Id: I697ea2eb0612a905868f40a63229c8e3e74b70b3
2016-12-15 20:54:15 +00:00
Colin Cross 049376f14d Merge "Revert "Convert the rest of libbacktrace to Android.bp"" 2016-12-15 20:44:56 +00:00
Colin Cross ced030892d Revert "Convert the rest of libbacktrace to Android.bp"
This reverts commit 9a3603622f.

Broke the mips build with an unused parameter warning

Change-Id: If36964ea189b58a9825de8904f1cf49010548b59
2016-12-15 20:44:30 +00:00
Colin Cross bfbf7403de Merge "Convert the rest of libbacktrace to Android.bp" am: 28f7749b12
am: 6d2af9a8b9

Change-Id: I95d1f14ac02808302b86e7c5a7dfcebdaaeb9fbd
2016-12-15 19:40:57 +00:00
Colin Cross 6d2af9a8b9 Merge "Convert the rest of libbacktrace to Android.bp"
am: 28f7749b12

Change-Id: I924ab33de1688124c24fcf296848244d8b40b2f8
2016-12-15 19:33:24 +00:00
Colin Cross 28f7749b12 Merge "Convert the rest of libbacktrace to Android.bp" 2016-12-15 19:19:07 +00:00
Charles He d887102049 Merge "[nit] Fix typo in properties.h" am: ded663c231
am: 21181e5297

Change-Id: I5625fb263d54f107a5b630037811c4d0d701ba86
2016-12-15 17:39:43 +00:00
Charles He 21181e5297 Merge "[nit] Fix typo in properties.h"
am: ded663c231

Change-Id: If7edd9aa3b06feeebf35585b53313b1b3b0ebf8e
2016-12-15 17:31:42 +00:00
Treehugger Robot ded663c231 Merge "[nit] Fix typo in properties.h" 2016-12-15 17:22:04 +00:00
Charles He 40feda6ae9 [nit] Fix typo in properties.h
Test: none
Change-Id: I6fe25bc9404c18bedc5802b3d830ede8a1bc28df
2016-12-15 10:47:32 +00:00
Daichi Hirono b24e35e6bf Merge "Support SOCK_STREAM for bridge between system and app" am: 89ae81da76
am: 43418b52d7

Change-Id: I6da2a3a2f02346abeb06f7d3bd380011a6a3ba01
2016-12-15 07:21:25 +00:00
Daichi Hirono 43418b52d7 Merge "Support SOCK_STREAM for bridge between system and app"
am: 89ae81da76

Change-Id: I4f0832d0d54c7d08c42bfedb482adfd26f562366
2016-12-15 07:04:23 +00:00
Treehugger Robot 89ae81da76 Merge "Support SOCK_STREAM for bridge between system and app" 2016-12-15 06:47:38 +00:00
Josh Gao 747049e527 Merge "adb: don't require adb keys to be named "*.adb_key"." am: 37883718a9
am: ffb0576c7b

Change-Id: I70b9a6ee90d57c8d4085f45bfc7ddf0e3cf711fa
2016-12-15 06:23:31 +00:00
Josh Gao ffb0576c7b Merge "adb: don't require adb keys to be named "*.adb_key"."
am: 37883718a9

Change-Id: I0a1463180019960e92fbd3c06befcdc3c182f261
2016-12-15 06:16:00 +00:00
Treehugger Robot 37883718a9 Merge "adb: don't require adb keys to be named "*.adb_key"." 2016-12-15 06:04:05 +00:00
Elliott Hughes 400628aeac Improve crasher.
Make it behave better in our typical use cases and support more of the kinds
of crash we want to document.

Bug: http://b/28746168
Test: crasher
Change-Id: Ifbc3dfb042f6055568244c921f4abe1ea554cec4
2016-12-14 17:33:46 -08:00
Colin Cross 9a3603622f Convert the rest of libbacktrace to Android.bp
See build/soong/README.md for more information.

Test: mma -j
Test: backtrace_test
Change-Id: I61c49fb62fdeafb66db25b8f97621239b8fd6e75
2016-12-14 17:24:46 -08:00
Josh Gao a27666b823 adb: don't require adb keys to be named "*.adb_key".
Don't require the extension on explicit file paths passed on; only
check for it in monitored directories.

Bug: http://b/33638233
Test: ADB_TRACE=1 ADB_VENDOR_KEYS=$HOME/foo adb server nodaemon
Change-Id: I7387e0bbe0f2e16878bf22b05d5c6e8d0f9e5a92
2016-12-14 17:05:36 -08:00