Commit graph

49861 commits

Author SHA1 Message Date
Julien Desprez
168be967f5 Merge "Replace reboot-fastboot by reboot fastboot" am: cd68bda4ec
am: d2353d030f

Change-Id: I248e96898c155c019e0af826b92520f373e3773e
2019-04-03 02:30:33 -07:00
David Srbecky
50a70173e5 Merge "Check for data races when reading JIT/DEX entries." am: 59c70a5b75 am: 9363485979
am: 4d03a384c2

Change-Id: Ice57130b051b8e2024594856252acea834ffa990
2019-04-03 02:07:55 -07:00
Julien Desprez
d2353d030f Merge "Replace reboot-fastboot by reboot fastboot"
am: cd68bda4ec

Change-Id: I311a3b93b27a8360aa81447d482e6c0c2e2cc404
2019-04-03 01:43:07 -07:00
David Srbecky
4d03a384c2 Merge "Check for data races when reading JIT/DEX entries." am: 59c70a5b75
am: 9363485979

Change-Id: If702c873330b09020dd701f5e786a03ca4d28ac0
2019-04-03 01:39:57 -07:00
Treehugger Robot
cd68bda4ec Merge "Replace reboot-fastboot by reboot fastboot" 2019-04-03 08:24:34 +00:00
David Srbecky
9363485979 Merge "Check for data races when reading JIT/DEX entries."
am: 59c70a5b75

Change-Id: I64832ce6d28f0dd0c9036e48031ce3b9faae8dac
2019-04-03 01:17:45 -07:00
David Srbecky
59c70a5b75 Merge "Check for data races when reading JIT/DEX entries." 2019-04-03 07:15:39 +00:00
TreeHugger Robot
bdf2df0f15 Merge "Increase the SO_SNDBUF for statsd socket." 2019-04-03 05:55:26 +00:00
Yifan Hong
063b6beef0 Add libcgrouprc to ld.config.*.txt.
Test: boots (sanity)
Bug: 123664216
Change-Id: I23c3ece44816e4e213f9630b915e19978a259823
Merged-In: I23c3ece44816e4e213f9630b915e19978a259823
2019-04-02 22:31:57 -07:00
Yifan Hong
53e0deb7b2 libprocessgroup: use libcgrouprc to read cgroup.rc
Use the LL-NDK library to read cgroup.rc.

As a side-effect, the CgroupController class is changed
to a wrapper of ACgroupController* from the library. The
class itself essentially becomes the pointer, and can be
trivially copied. Modify all client code for this change.

Test: builds and boots
Bug: 123664216

Change-Id: I635d9885db62e82f37421f6d20f59c84a6f4cbb2
Merged-In: I635d9885db62e82f37421f6d20f59c84a6f4cbb2
2019-04-02 22:31:57 -07:00
Yifan Hong
d8ce1fb1d1 libprocessgroup_setup: use libcgrouprc_format
Use CgroupController definition from libcgrouprc_format, not
libprocessgroup, because the wire format will be removed
from libprocessgroup later.

Bug: 123664216
Test: builds
Change-Id: If5e2301a1b65c3f6a51a1661cfeeed4e299f634e
Merged-In: If5e2301a1b65c3f6a51a1661cfeeed4e299f634e
2019-04-02 22:31:57 -07:00
Yifan Hong
6f9ce2e548 libprocessgroup: Move CgroupSetupCgroups() to libprocessgroup_setup
Only init uses SetupCgroups. This functionality is
moved from libprocessgroup to its own library, and only
init links to it.

Also, merge CgroupSetupCgroups() with CgroupMap::SetupCgroups()
because the former is just an alias of the latter, and
CgroupMap does not belong to libcgrouprc_setup.

Test: boots
Bug: 123664216
Change-Id: I941dc0c415e2b22ae663d43e30dc7a464687325e
Merged-In: I941dc0c415e2b22ae663d43e30dc7a464687325e
2019-04-02 22:31:57 -07:00
Yifan Hong
098323ba5b libprocessgroup: Add libcgrouprc
This module is an LL-NDK library that can be loaded by
modules that link to libprocessgroup (which is in VNDK).
This module defines APIs that reads cgroups.rc file
programatically. Internally, it uses libcgrouprc_format to
do so.

Test: builds
Bug: 123664216

Change-Id: I9c13c0528461758154e23cbab3a94ade7fb351ee
Merged-In: I9c13c0528461758154e23cbab3a94ade7fb351ee
2019-04-02 22:31:57 -07:00
Yifan Hong
c4b3ab4edc libprocessgroup: Add libcgrouprc_format
This module defines the wire format of the mmap()ed cgroup.rc
file.

Test: builds
Bug: 123664216

Change-Id: Iaf6199f759a6264590b13ca7ba6d7f576c3ed56a
Merged-In: Iaf6199f759a6264590b13ca7ba6d7f576c3ed56a
2019-04-02 22:31:57 -07:00
Yifan Hong
9d7b89abea CgroupSetupCgroups -> CgroupSetup
Test: builds
Bug: 123664216
Change-Id: I47c46ca9ba5c1fbf3f9f7a1b185dc48b058b1e32
Merged-In: I47c46ca9ba5c1fbf3f9f7a1b185dc48b058b1e32
2019-04-02 22:31:57 -07:00
Josh Gao
fff6760db5 Merge "adb: fix mac build breakage." am: 52c6f1b6de am: 94a23604c7
am: 0a2e8e94ae

Change-Id: Ic2966482db39cdb15eacb192606bca44b0fd5f6f
2019-04-02 22:17:39 -07:00
Jaegeuk Kim
a9b3c3d605 libfiemap_writer: test pinned file bit
The pinned file should have NOCOW_FL flag.

Bug: 129803146
Change-Id: Idaf5bdbbdcce1c3805cd16ddb0c1c7f1df87dcfb
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2019-04-03 04:35:33 +00:00
Josh Gao
0a2e8e94ae Merge "adb: fix mac build breakage." am: 52c6f1b6de
am: 94a23604c7

Change-Id: Iea69d154f5867affcd4bafdeb77d8eb90bb7059d
2019-04-02 21:23:01 -07:00
Mark Salyzyn
f080bf39d3 Merge "ueventd: populate /dev/block/mapper link" am: 5c811fd01a am: ee32edb306
am: ae0c91dad4

Change-Id: I00cf5253eb00976f38792aef63b72f9216c6cc2f
2019-04-02 21:21:41 -07:00
Josh Gao
94a23604c7 Merge "adb: fix mac build breakage."
am: 52c6f1b6de

Change-Id: I0a38a2bde7fc80d193e3e92e74264d2160f84084
2019-04-02 20:46:32 -07:00
Mark Salyzyn
ae0c91dad4 Merge "ueventd: populate /dev/block/mapper link" am: 5c811fd01a
am: ee32edb306

Change-Id: I8278fa28d430dc17f4e45b263314643ecb27631d
2019-04-02 20:27:17 -07:00
Treehugger Robot
52c6f1b6de Merge "adb: fix mac build breakage." 2019-04-03 03:14:28 +00:00
Android Build Merger (Role)
fe018d96c0 Merge "Merge "libcutils: android_reboot command should be unsigned." am: e3ec16b9c6 am: cf2f309cff am: ba78d39cdc" 2019-04-03 02:52:39 +00:00
Elliott Hughes
15e370aced Merge "libcutils: android_reboot command should be unsigned." am: e3ec16b9c6 am: cf2f309cff
am: ba78d39cdc

Change-Id: I034c780c6c1166e4c6643ebcc607d3388246ebab
2019-04-02 19:52:28 -07:00
Elliott Hughes
bd8f02ce83 Merge "libcutils: android_reboot command should be unsigned." am: e3ec16b9c6 am: cf2f309cff
am: ba78d39cdc

Change-Id: I14687e2bd40564dab349b04dd1ca69ce112098a7
2019-04-02 19:52:24 -07:00
Mark Salyzyn
ee32edb306 Merge "ueventd: populate /dev/block/mapper link"
am: 5c811fd01a

Change-Id: I3f080cd0cfba9456dc5f1cff478dd47845cb6b19
2019-04-02 19:49:05 -07:00
Android Build Merger (Role)
af200d9bc5 Merge "[automerger skipped] Merge "Report last atom tag of the failed stats log." am: b7080aab9d am: 4f0c63c4f2 am: b3b1f10fff -s ours am skip reason: change_id I4de61a2eea393e8518cb76147598778293440a81 with SHA1 cf776d9b83 is in history" 2019-04-03 02:45:28 +00:00
yaochen
ae740d3bf6 [automerger skipped] Merge "Report last atom tag of the failed stats log." am: b7080aab9d am: 4f0c63c4f2
am: b3b1f10fff -s ours
am skip reason: change_id I4de61a2eea393e8518cb76147598778293440a81 with SHA1 cf776d9b83 is in history

Change-Id: Id47d1882263a2b47ca8bb8f2297a7db17c9cc9e2
2019-04-02 19:45:16 -07:00
yaochen
f1448a115b [automerger skipped] Merge "Report last atom tag of the failed stats log." am: b7080aab9d am: 4f0c63c4f2
am: b3b1f10fff -s ours
am skip reason: change_id I4de61a2eea393e8518cb76147598778293440a81 with SHA1 cf776d9b83 is in history

Change-Id: Ie7d8e537578bd06d1701960690ea611fca752d39
2019-04-02 19:45:01 -07:00
Treehugger Robot
5c811fd01a Merge "ueventd: populate /dev/block/mapper link" 2019-04-03 02:30:27 +00:00
Tej Singh
09989c3ebe [automerger skipped] Merge "stats_event_list changes for statsd mainline api" am: f95468d329 am: 930d04056f
am: f61390dafa -s ours
am skip reason: change_id I4163edc80ffcca61db7ab2a1e14ae8c14aab2347 with SHA1 4c2f079dad is in history

Change-Id: I2257736a6b71136cb46a415f726c46e0747d3bea
2019-04-02 19:23:10 -07:00
Vic Yang
8160c08d49 Merge "Version liblog LL-NDK library" am: 92c9e8ab7f am: 10c9004bf7
am: 6d9d411968

Change-Id: Ia626cd2248421450a2a82054d3a857cba8097062
2019-04-02 19:07:57 -07:00
Elliott Hughes
ba78d39cdc Merge "libcutils: android_reboot command should be unsigned." am: e3ec16b9c6
am: cf2f309cff

Change-Id: I15c19bc1d885fa368f2cb84fc33a79c1749f114f
2019-04-02 19:07:05 -07:00
yaochen
b3b1f10fff Merge "Report last atom tag of the failed stats log." am: b7080aab9d
am: 4f0c63c4f2

Change-Id: Idae39ddf564c5c4ffe0ac1b6eb7ebf9bcafce3ee
2019-04-02 18:51:08 -07:00
Tej Singh
f61390dafa Merge "stats_event_list changes for statsd mainline api" am: f95468d329
am: 930d04056f

Change-Id: I57b8bb3a2281c635a495cfd5d34afb5cb9f7596b
2019-04-02 18:49:49 -07:00
Elliott Hughes
cf2f309cff Merge "libcutils: android_reboot command should be unsigned."
am: e3ec16b9c6

Change-Id: Ib2b93b1a133687c2bf2ce7f486ce6c3ffba828d3
2019-04-02 18:47:51 -07:00
Vic Yang
6d9d411968 Merge "Version liblog LL-NDK library" am: 92c9e8ab7f
am: 10c9004bf7

Change-Id: If13677d5a64bae5d93d58ef81a0124e5ee3fdc7a
2019-04-02 18:41:25 -07:00
Treehugger Robot
e3ec16b9c6 Merge "libcutils: android_reboot command should be unsigned." 2019-04-03 01:19:06 +00:00
yaochen
4f0c63c4f2 Merge "Report last atom tag of the failed stats log."
am: b7080aab9d

Change-Id: I1dd7df47f782032ddf7ab1a0e325393b3a14a052
2019-04-02 18:16:20 -07:00
Tej Singh
930d04056f Merge "stats_event_list changes for statsd mainline api"
am: f95468d329

Change-Id: Ibd5d278f6af65a3c63bb97f6e5cf1b7b60180e4d
2019-04-02 18:15:12 -07:00
Vic Yang
10c9004bf7 Merge "Version liblog LL-NDK library"
am: 92c9e8ab7f

Change-Id: I1e5b4d1da1d186b8b5a7b331126a0dde2d39c48b
2019-04-02 18:06:54 -07:00
Yifan Hong
eecba5c11d CgroupSetupCgroups -> CgroupSetup
Test: builds
Bug: 123664216
Change-Id: I47c46ca9ba5c1fbf3f9f7a1b185dc48b058b1e32
2019-04-02 17:34:37 -07:00
Yifan Hong
169a3e6095 Add libcgrouprc to ld.config.*.txt.
Test: boots (sanity)
Bug: 123664216
Change-Id: I23c3ece44816e4e213f9630b915e19978a259823
2019-04-02 17:34:37 -07:00
Yifan Hong
fad638c82d libprocessgroup: use libcgrouprc to read cgroup.rc
Use the LL-NDK library to read cgroup.rc.

As a side-effect, the CgroupController class is changed
to a wrapper of ACgroupController* from the library. The
class itself essentially becomes the pointer, and can be
trivially copied. Modify all client code for this change.

Test: builds and boots
Bug: 123664216

Change-Id: I635d9885db62e82f37421f6d20f59c84a6f4cbb2
2019-04-02 17:34:37 -07:00
Yifan Hong
1a0996a308 libprocessgroup_setup: use libcgrouprc_format
Use CgroupController definition from libcgrouprc_format, not
libprocessgroup, because the wire format will be removed
from libprocessgroup later.

Bug: 123664216
Test: builds
Change-Id: If5e2301a1b65c3f6a51a1661cfeeed4e299f634e
2019-04-02 17:34:37 -07:00
Yifan Hong
bd623a4ce0 libprocessgroup: Move CgroupSetupCgroups() to libprocessgroup_setup
Only init uses SetupCgroups. This functionality is
moved from libprocessgroup to its own library, and only
init links to it.

Also, merge CgroupSetupCgroups() with CgroupMap::SetupCgroups()
because the former is just an alias of the latter, and
CgroupMap does not belong to libcgrouprc_setup.

Test: boots
Bug: 123664216
Change-Id: I941dc0c415e2b22ae663d43e30dc7a464687325e
2019-04-02 17:34:37 -07:00
Yifan Hong
d895647095 libprocessgroup: Add libcgrouprc
This module is an LL-NDK library that can be loaded by
modules that link to libprocessgroup (which is in VNDK).
This module defines APIs that reads cgroups.rc file
programatically. Internally, it uses libcgrouprc_format to
do so.

Test: builds
Bug: 123664216

Change-Id: I9c13c0528461758154e23cbab3a94ade7fb351ee
2019-04-02 17:34:37 -07:00
Yifan Hong
f4212744ed libprocessgroup: Add libcgrouprc_format
This module defines the wire format of the mmap()ed cgroup.rc
file.

Test: builds
Bug: 123664216

Change-Id: Iaf6199f759a6264590b13ca7ba6d7f576c3ed56a
2019-04-02 17:34:36 -07:00
Julien Desprez
74239ea1b1 Replace reboot-fastboot by reboot fastboot
Older host adb client do not recognize reboot-fastboot,
switch it for "adb reboot fastboot" which should be the
same.

Test: None
Bug: 117670584
Change-Id: Iec5230ca66ec18fe7d7c0ebd3f9ab9596a6e7b3c
2019-04-02 17:04:39 -07:00
Josh Gao
296ac3f024 adb: fix mac build breakage.
Bug: http://b/129786641
Test: none
Change-Id: Ibe051a0db2f912d1f7e55369e25a5bd38bf86fd5
2019-04-02 16:31:32 -07:00