Commit Graph

35629 Commits

Author SHA1 Message Date
Jin Qian 6abe26cdf4 Merge "storaged: add task io to dump service" 2017-07-26 22:47:42 +00:00
Yang Jin 3906c89206 storaged: add task io to dump service
Display task io in dump service when both kernel logs task io to
proc/uid_io/stats and when debug flag is enabled.

Also add -t flag to display both uid and task io for storaged.

Tests:
adb shell
dumpsys storaged --debug
storaged -t

Bug: 63739275

Change-Id: If0c9814892ad61b790baa6395649af10b11d5b7c
2017-07-26 12:46:08 -07:00
Adam Lesinski e2f94b99ee Merge "Add definition of off64_t for mac os builds" am: 3e0b594619 am: 0b60b181c4 am: e88c6633af am: 51ea165065
am: 50db425c17

Change-Id: Ia7cf52c5f051ac002c6da073afa53ebcf0966b0a
2017-07-26 01:46:19 +00:00
Adam Lesinski 50db425c17 Merge "Add definition of off64_t for mac os builds" am: 3e0b594619 am: 0b60b181c4 am: e88c6633af
am: 51ea165065

Change-Id: I2464d4048f99fe2bab32d227440b0c2350c2e3bd
2017-07-26 00:56:17 +00:00
Adam Lesinski 51ea165065 Merge "Add definition of off64_t for mac os builds" am: 3e0b594619 am: 0b60b181c4
am: e88c6633af

Change-Id: Ib98760c806c687756adc7dbb5174c1cb47ac0b17
2017-07-26 00:15:35 +00:00
Adam Lesinski e88c6633af Merge "Add definition of off64_t for mac os builds" am: 3e0b594619
am: 0b60b181c4

Change-Id: If6e297d32275dd20c9f3ec0f7da45c3715154c54
2017-07-26 00:12:03 +00:00
Adam Lesinski 0b60b181c4 Merge "Add definition of off64_t for mac os builds"
am: 3e0b594619

Change-Id: If2e9243a0f32e776676ef18c1933b8e2e649857c
2017-07-26 00:08:34 +00:00
Adam Lesinski 3e0b594619 Merge "Add definition of off64_t for mac os builds" 2017-07-25 23:55:00 +00:00
Adam Lesinski 5fff67f2ec Add definition of off64_t for mac os builds
Mac OS does not define off64_t, since off_t is always 64 bit.

Test: manual
Change-Id: Ib02a912a2eaf38143e124f2b6aaf294ecf84ff88
2017-07-25 16:26:23 -07:00
Adam Lesinski a3ab7ebc2d Merge "libziparchive: Use ReadAtOffset exclusively" am: a0360ad6a3 am: 67a3a88c24 am: 0d4fcc5fc9 am: 018fca3c95
am: 607e80599a

Change-Id: I4311897155f4b37c5687ac46f23ea596fe1ff175
2017-07-25 23:07:31 +00:00
Lennart Wieboldt 16f13d01f2 Merge "Remove LOCAL_CLANG and clang: true" am: 80ec81cf4b am: f7b315c985 am: 8a8b97b271 am: e1332dd01b
am: 6da3de27be

Change-Id: I70d004aa8dfdb54e20552af20168892d4caf20c4
2017-07-25 23:06:37 +00:00
Adam Lesinski 607e80599a Merge "libziparchive: Use ReadAtOffset exclusively" am: a0360ad6a3 am: 67a3a88c24 am: 0d4fcc5fc9
am: 018fca3c95

Change-Id: I0086999152b3c2accc50f9617ebc018160cdbf1f
2017-07-25 22:40:50 +00:00
Lennart Wieboldt 6da3de27be Merge "Remove LOCAL_CLANG and clang: true" am: 80ec81cf4b am: f7b315c985 am: 8a8b97b271
am: e1332dd01b

Change-Id: I193d86abf96e64b29efc7266f4fa3a26b5d2b3af
2017-07-25 22:39:58 +00:00
Adam Lesinski 018fca3c95 Merge "libziparchive: Use ReadAtOffset exclusively" am: a0360ad6a3 am: 67a3a88c24
am: 0d4fcc5fc9

Change-Id: Id340b1f69993ae70697d60333d40b1beca10ad07
2017-07-25 22:36:11 +00:00
Lennart Wieboldt e1332dd01b Merge "Remove LOCAL_CLANG and clang: true" am: 80ec81cf4b am: f7b315c985
am: 8a8b97b271

Change-Id: I7e691abe2e2ccec5d9477c528d603c081c0a5661
2017-07-25 22:35:56 +00:00
Adam Lesinski 0d4fcc5fc9 Merge "libziparchive: Use ReadAtOffset exclusively" am: a0360ad6a3
am: 67a3a88c24

Change-Id: Iaf778d8cbc1081844e753130a623cb7a463535f5
2017-07-25 22:33:44 +00:00
Lennart Wieboldt 8a8b97b271 Merge "Remove LOCAL_CLANG and clang: true" am: 80ec81cf4b
am: f7b315c985

Change-Id: Id5ebeb3271a36f21bf28c186f7ec227d31bb10ac
2017-07-25 22:33:27 +00:00
Adam Lesinski 67a3a88c24 Merge "libziparchive: Use ReadAtOffset exclusively"
am: a0360ad6a3

Change-Id: Ic6804698ca4c612f8f619c2684b1d2010e1ba024
2017-07-25 22:29:13 +00:00
Lennart Wieboldt f7b315c985 Merge "Remove LOCAL_CLANG and clang: true"
am: 80ec81cf4b

Change-Id: Ia7f79d8e25ee9870fe44d198568d0e5dabdff811
2017-07-25 22:28:56 +00:00
Adam Lesinski a0360ad6a3 Merge "libziparchive: Use ReadAtOffset exclusively" 2017-07-25 22:22:21 +00:00
Treehugger Robot 80ec81cf4b Merge "Remove LOCAL_CLANG and clang: true" 2017-07-25 22:20:23 +00:00
Siarhei Vishniakou 3f47ba9c9b Merge "Add thread safety analysis annotations." am: e7ce8c8485 am: f23f21a231 am: a0e5e3abce am: 097965e76e
am: d374e3bad0

Change-Id: I9d35a3fec4faabb0ce173d25361b3940c328d1bb
2017-07-25 21:55:36 +00:00
Wei Wang ec6eb77068 Do not umount roofs even if it is R/W. am: b7a8764a12 am: ba6705f9de
am: 4c95acb435

Change-Id: Ic2188e952462e499e4c8934e2b15ff693be28a73
2017-07-25 21:55:15 +00:00
Wei Wang 8c7fdfd326 Do not umount roofs even if it is R/W. am: b7a8764a12 am: f56456515d
am: 1b2afd512a

Change-Id: I90c3d8903b23b232eda4446580cf5a3bb876a572
2017-07-25 21:54:56 +00:00
Siarhei Vishniakou d374e3bad0 Merge "Add thread safety analysis annotations." am: e7ce8c8485 am: f23f21a231 am: a0e5e3abce
am: 097965e76e

Change-Id: I3239d0cd5f9facecb933e40d0eda7f8bfba9502d
2017-07-25 21:54:24 +00:00
Siarhei Vishniakou 097965e76e Merge "Add thread safety analysis annotations." am: e7ce8c8485 am: f23f21a231
am: a0e5e3abce

Change-Id: I55ee187ee689855dabd565fa1a40fcc1e907339c
2017-07-25 21:50:24 +00:00
Siarhei Vishniakou a0e5e3abce Merge "Add thread safety analysis annotations." am: e7ce8c8485
am: f23f21a231

Change-Id: Icbe910717db9805c06d761e79c435bb33d21d1cf
2017-07-25 21:46:53 +00:00
Siarhei Vishniakou f23f21a231 Merge "Add thread safety analysis annotations."
am: e7ce8c8485

Change-Id: I4963b623b6e5a190bfee1dcfec01fe009ba0e94f
2017-07-25 21:42:54 +00:00
Wei Wang 4c95acb435 Do not umount roofs even if it is R/W. am: b7a8764a12
am: ba6705f9de

Change-Id: Ia1f3fc0fd119546cf3118e4f6c46079075f38485
2017-07-25 21:42:36 +00:00
Wei Wang 1b2afd512a Do not umount roofs even if it is R/W. am: b7a8764a12
am: f56456515d

Change-Id: Ia897c5436b082826928ca52988d0a4e235559886
2017-07-25 21:38:50 +00:00
Treehugger Robot e7ce8c8485 Merge "Add thread safety analysis annotations." 2017-07-25 21:37:27 +00:00
Wei Wang f56456515d Do not umount roofs even if it is R/W.
am: b7a8764a12

Change-Id: Id9ce4a6ea83e3c71ff5627e27eadd9c80085dbd0
2017-07-25 21:35:06 +00:00
Wei Wang ba6705f9de Do not umount roofs even if it is R/W.
am: b7a8764a12

Change-Id: I56014ac0ae01a5666a58225eed5f89e08859c0d8
2017-07-25 21:34:50 +00:00
Wei Wang 43e6ea22aa Merge "Do not umount roofs even if it is R/W." am: 43567e39dc am: 22782a7269 am: 34e13498dc am: 081c1921e0
am: 4cca10cf7e

Change-Id: I80282a8adc5ab624884cc610e13296a98ac3f396
2017-07-25 21:01:52 +00:00
Wei Wang 4cca10cf7e Merge "Do not umount roofs even if it is R/W." am: 43567e39dc am: 22782a7269 am: 34e13498dc
am: 081c1921e0

Change-Id: I0e7da9de55bd7f8b39561aa0a3a9a8b434749ddb
2017-07-25 20:51:18 +00:00
Wei Wang 081c1921e0 Merge "Do not umount roofs even if it is R/W." am: 43567e39dc am: 22782a7269
am: 34e13498dc

Change-Id: I8b3c0cefd23d5e7e44da02e13cc173472834b070
2017-07-25 20:47:48 +00:00
Wei Wang 34e13498dc Merge "Do not umount roofs even if it is R/W." am: 43567e39dc
am: 22782a7269

Change-Id: I84024bff22fee8569c0f1193d6f3d8417d3cbc1b
2017-07-25 20:44:21 +00:00
Steve Muckle e3609e4cdf Merge "init: add support for global seccomp boot option" am: 9f1980e2fc am: 5a79972238 am: eb7db75c28 am: aa4bb9552f
am: c2548ea392

Change-Id: I5ce4c63418560e06839a54de91f380e1c8f1f2cd
2017-07-25 20:42:33 +00:00
Wei Wang 22782a7269 Merge "Do not umount roofs even if it is R/W."
am: 43567e39dc

Change-Id: I89bfb662469c28559eb628e48aee1ecb262ad2ee
2017-07-25 20:41:19 +00:00
Steve Muckle c2548ea392 Merge "init: add support for global seccomp boot option" am: 9f1980e2fc am: 5a79972238 am: eb7db75c28
am: aa4bb9552f

Change-Id: I0b7c6112549b8cfba1f4069515d666534ee9e3e2
2017-07-25 20:36:49 +00:00
Treehugger Robot 43567e39dc Merge "Do not umount roofs even if it is R/W." 2017-07-25 20:35:50 +00:00
Steve Muckle aa4bb9552f Merge "init: add support for global seccomp boot option" am: 9f1980e2fc am: 5a79972238
am: eb7db75c28

Change-Id: I5fabba13d6b269ffca8731fc83dbd590ae388239
2017-07-25 20:33:53 +00:00
Steve Muckle eb7db75c28 Merge "init: add support for global seccomp boot option" am: 9f1980e2fc
am: 5a79972238

Change-Id: Ide7500d4ff4d9eebf2fea1d81ff77044a6d63c57
2017-07-25 20:30:30 +00:00
Steve Muckle 5a79972238 Merge "init: add support for global seccomp boot option"
am: 9f1980e2fc

Change-Id: I35532202b360ef32cdb21c048cd3d2e1139b7d67
2017-07-25 20:26:29 +00:00
Treehugger Robot 9f1980e2fc Merge "init: add support for global seccomp boot option" 2017-07-25 20:18:51 +00:00
Wei Wang b7a8764a12 Do not umount roofs even if it is R/W.
Latest device has rootfs instead of "/system" mount point

(cherry picked from commit a01c27eef8)

Bug: 37737296
Test: adb remount, reboot, and check log
Change-Id: I315ecf71e85255fc55c3a80619920b456bad0956
2017-07-25 11:39:22 -07:00
Adam Lesinski de117e4a49 libziparchive: Use ReadAtOffset exclusively
The use of ReadAtOffset is meant to allow concurrent access
to the zip archive once it has been loaded. There were places
where this was the case, and some places that did a seek + read
combination, which could lead to data races.

NOTE: On Windows, we are not using pread as the implementation of
ReadAtOffset, therefore the guarantees on Windows are weaker.

On Linux, pread allows the file descriptor to be read at a specific
offset without changing the read pointer. This allows inherited fd's
and duped fds to be read concurrently.

On Windows, we use the ReadFile API, which allows for an atomic seek +
read operation, but modifies the read pointer. This means that any mix
use of ReadAtOffset and Read will have races. Just using ReadAtOffset is
safe.

For the Windows case, this is fine as the libziparchive code now only
uses ReadAtOffset.

Bug: 62184114
Bug: 62101783
Test: make ziparchive-tests (existing tests pass)
Change-Id: Ia7f9a30af2216682cdd9d578d26e84bc46773bb9
2017-07-25 18:12:12 +00:00
Wei Wang a01c27eef8 Do not umount roofs even if it is R/W.
Latest device has rootfs instead of "/system" mount point

Bug: 37737296
Test: adb remount, reboot, and check log
Change-Id: I315ecf71e85255fc55c3a80619920b456bad0956
2017-07-25 10:55:10 -07:00
Narayan Kamath 9de83f7370 Merge "DO NOT MERGE ANYWHERE tombstoned: Avoid creating the tombstoned_java_trace socket." into oc-dr1-dev am: 53ce94588b -s ours am: 8df2973166 -s ours
am: cc1f85a49a  -s ours

Change-Id: If2dbbb887ebb2bdac7c6bfc352adf17b9eba9ff3
2017-07-25 15:24:33 +00:00
Narayan Kamath 492ec06266 Merge "DO NOT MERGE ANYWHERE tombstoned: Avoid creating the tombstoned_java_trace socket." into oc-dr1-dev am: 53ce94588b -s ours am: 385a5dc03a -s ours
am: 35060e1034  -s ours

Change-Id: I12b1a4ef5580fca18957c1e0bbfe31f2c6a1010b
2017-07-25 15:24:17 +00:00