Commit Graph

28516 Commits

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

Change-Id: I58b258cbf13bdcc874bcce35d4bb07378a8a1864
2016-12-16 18:03:12 +00:00
Elliott Hughes 352b9c6282 Merge "Improve init bootcharting." am: 4ee7861ee1 am: a6532b4717
am: 1a947725b8

Change-Id: I7c2316e103f3610fbb0f7233f108f4a0b6891045
2016-12-16 17:55:40 +00:00
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 38266e5956 Merge commit '04c9a4da7e261b797c726cf31bf0ea232a8f685d' into foobar3 am: 4898fd9f4f
am: 3ca10e64ac

Change-Id: I9c51e8a28ce3297fa1f978790d2696a92b08049f
2016-12-16 05:45:38 +00:00
Jeff Sharkey 0c47619a3b Merge "fs_mgr: support to reserved some blocks for an ext2/3/4 partition." am: 60739458e5 am: c8e717f414 am: 839f8c11ec
am: df38d86b27

Change-Id: Ic58a9e351e0a922e6c7d060987e142416c407f22
2016-12-16 05:45:28 +00:00
Jeff Sharkey 3ca10e64ac Merge commit '04c9a4da7e261b797c726cf31bf0ea232a8f685d' into foobar3
am: 4898fd9f4f

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

Change-Id: I4d3c0a1a0e1c67904c188dbcfa7d90abea2a8d7b
2016-12-16 05:28:37 +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
TreeHugger Robot 4769dab866 Merge changes I09b11db0,I774b1a44
* changes:
  libcutils: add file permission for storaged
  storaged: add storaged native daemon
2016-12-16 05:13:39 +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 f7b0c9bc4f Merge "liblog: event_tag_map use unordered_map" am: 8b99ef6c21 am: 5f1b27fdbb am: aeb972ae64
am: e856791073

Change-Id: I1789794919b6ce022430fcd278dc4bc1b9a389ce
2016-12-16 03:59:34 +00:00
Mark Salyzyn e856791073 Merge "liblog: event_tag_map use unordered_map" am: 8b99ef6c21 am: 5f1b27fdbb
am: aeb972ae64

Change-Id: I4a81091a1c554281a35cc130a541f862e83bcbf3
2016-12-16 02:26:17 +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 1fad66346b Merge changes I6dc353a2,I7df990f0 am: bb612a356a am: 3a3e02e835 am: f42618d1cc
am: 1eefd55b49

Change-Id: I14b5d79fea6049744360a7c9c7052ee02da32ef4
2016-12-16 01:56:27 +00:00
Colin Cross 1343595238 Convert the rest of libbacktrace to Android.bp am: da9bd5902f am: 05d1359db2 am: 7786c2d50c
am: cf30617256

Change-Id: If25f3bed1d7edda748c2cade9750aef3c7f3fcb5
2016-12-16 01:56:11 +00:00
Colin Cross 6bc7b05c2c Fix unused parameter warning for mips builds am: 06d314917f am: dc432aa3c7 am: bca6f13b4a
am: 522534e3fb

Change-Id: Icf584e1feeaf058e1e2891a57611b3dbeb07dff8
2016-12-16 01:55:55 +00:00
Elliott Hughes ea1778b13d Merge "Improve crasher." am: dbfb20bda4 am: b7ceb2397e am: ced63cee3c
am: 54a4208d48

Change-Id: If10fe45720076470f8e78d557ecf549073128c47
2016-12-16 01:55:35 +00:00
Colin Cross 1eefd55b49 Merge changes I6dc353a2,I7df990f0 am: bb612a356a am: 3a3e02e835
am: f42618d1cc

Change-Id: I2d24a308c0203a5ca91ef654ef3493a8218f9306
2016-12-16 01:49:08 +00:00
Colin Cross cf30617256 Convert the rest of libbacktrace to Android.bp am: da9bd5902f am: 05d1359db2
am: 7786c2d50c

Change-Id: Ia57a2255456afc10a1231f1ca10e82b2c2fd9cf0
2016-12-16 01:49:03 +00:00
Colin Cross 522534e3fb Fix unused parameter warning for mips builds am: 06d314917f am: dc432aa3c7
am: bca6f13b4a

Change-Id: I1b5d6ba071724b57459f93e974af783df0ca6dca
2016-12-16 01:48:58 +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
Jeff Sharkey c35144844b Merge "Define range of GIDs for cached app data." am: da94f09e22 am: ac13675071 am: 1ad4090e4e
am: 40717394bd

Change-Id: I74e4e62cd69d3696698609e010bf08ad86daa0f4
2016-12-16 01:15:39 +00:00
Colin Cross daa91fe964 Merge "Revert "Convert the rest of libbacktrace to Android.bp"" am: 049376f14d am: 6b1a1badd0 am: 95f48fd29b
am: 10a9bd58d6

Change-Id: I1cd8b6307c78566af8c9fb9a068a62e6fb11c3b3
2016-12-16 01:15:13 +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
Jin Qian 6c9477a244 libcutils: add file permission for storaged
Change-Id: I09b11db0a7a94b51b5b279b3e4ec58ea9f0c12d7
2016-12-15 15:56:39 -08:00
ynwang 62cb372279 storaged: add storaged native daemon
Storaged periodically checks the devices' disk stats and eMMC lifetime.
This information is logged to both the kernel and event log. By event
logging, the data can be aggregated by the checkin service and then
sent to Sawmill.

It also periodically traverses /proc/[pid], maintaining the I/O usage of
all tasks (all sampled tasks). The task I/O data can be reported using
the --dump option.

Storaged is booted when the device boots up and requires the permission
for reading /proc/diskstats, /proc/[pid]/io and debugfs(eMMC ext_csd).
For detailed description, please refer to go/storaged.

Bug: 28826771
Change-Id: I774b1a44cc30092bac1bfcbc08bf487295e7cfed
2016-12-15 15:56:33 -08:00
Elliott Hughes 54a4208d48 Merge "Improve crasher." am: dbfb20bda4 am: b7ceb2397e
am: ced63cee3c

Change-Id: Iadb7940755bca93f26873e64f35e67b76bb09487
2016-12-15 23:42:43 +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
Jeff Sharkey 40717394bd Merge "Define range of GIDs for cached app data." am: da94f09e22 am: ac13675071
am: 1ad4090e4e

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

Change-Id: I7fc741266b5dcf000e5ca545aff7330bf503417a
2016-12-15 23:31:10 +00: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