Inseob Kim
7f5070451c
Merge "Support product-specific libraries" am: 39cab7cd25 am: d9debeefd6
...
am: 4f0e967eaa
Change-Id: Ieb9b4621b0188d9ae07e3bdf70d76a51de93cf0d
2018-05-24 13:22:55 -07:00
Elliott Hughes
66feb0c421
Merge "Add StdioLogger for command-line tools." am: 98c1b1ccf6 am: db67c344d1
...
am: 3055fb2f36
Change-Id: I4eb2415821a45374b79f9df71b828e5088a35a84
2018-05-24 13:13:32 -07:00
Yao Chen
98c07ba594
Merge "Remove a redundant check in statsd socket code." am: e6a644bc35 am: af9b744292
...
am: de09bc8c94
Change-Id: Id8b0d08d75bb055b00d3880f801b485e0933e27c
2018-05-24 13:12:51 -07:00
Josh Gao
e403ce0f3b
Merge changes I9f36cc26,I06561ad0,I42c2a8d0 am: 3a38310476 am: e5e5bccd40
...
am: 50bd79503a
Change-Id: Ica71da9f0d57c2be76938a5a4ffe96d612008c65
2018-05-24 13:12:13 -07:00
Andreas Gampe
fdac6f8ebd
Merge "Libunwindstack: Add -O0 to tools defaults on host" am: 2ed14f3923 am: 709f4802eb
...
am: 3dd238b948
Change-Id: I3151190de17ece6d250a0f611d291b538b352b8b
2018-05-24 13:11:33 -07:00
Chih-hung Hsieh
57ac1ba2bb
Merge "Work around b/24465209, do not use clang lld" am: 85bd9ca978 am: 373ea1ef65
...
am: 414153af2f
Change-Id: I72d43eef08cf2b06c55e1f783d623cdb9ac067fc
2018-05-24 13:10:54 -07:00
Josh Gao
49b7486459
Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."" am: a2157a7d92 am: e7a456fffe
...
am: b9d6bebf22
Change-Id: I4433bd37b4f33210e77b46a140cd4cb96085768d
2018-05-24 13:10:10 -07:00
Christopher Ferris
14bb398a26
Merge "Fix error messages handling." am: ad707b0222 am: 469a77ba5a
...
am: 7cd0b11a21
Change-Id: Ib353b7cc57c9c4842301305796aea0c68bfaba76
2018-05-24 13:09:28 -07:00
Josh Gao
9479e823b4
Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper." am: 812a6b77c6 am: c2eaf16518
...
am: 6926173bf6
Change-Id: I095dad4ad0d8eb76de8cfeec3e008d8901f09332
2018-05-24 13:08:47 -07:00
Josh Gao
f9ddfc5590
Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70a am: 7a223584c5 am: 3f111c8963
...
am: 78f50689f1
Change-Id: If348529b24e89c8fbd4171f89b3e75fb4d6984ae
2018-05-24 13:08:03 -07:00
Inseob Kim
4f0e967eaa
Merge "Support product-specific libraries" am: 39cab7cd25
...
am: d9debeefd6
Change-Id: I06da5ca113c97af66d6a17caab5e1fb35bb12be3
2018-05-24 10:42:19 -07:00
Inseob Kim
d9debeefd6
Merge "Support product-specific libraries"
...
am: 39cab7cd25
Change-Id: Iece0f58e9875a4af43c6d646dc71075c2c83a0d0
2018-05-24 07:34:01 -07:00
Elliott Hughes
3055fb2f36
Merge "Add StdioLogger for command-line tools." am: 98c1b1ccf6
...
am: db67c344d1
Change-Id: Iab10e8c14926eb81d60606183f2e7faac7c72f32
2018-05-24 07:31:19 -07:00
Yao Chen
de09bc8c94
Merge "Remove a redundant check in statsd socket code." am: e6a644bc35
...
am: af9b744292
Change-Id: I3ff19e475d7fb013067025a567e4517b64558d33
2018-05-24 07:28:53 -07:00
Josh Gao
50bd79503a
Merge changes I9f36cc26,I06561ad0,I42c2a8d0 am: 3a38310476
...
am: e5e5bccd40
Change-Id: Ia1f891df6366514565dcfcd82521024b71722015
2018-05-24 07:27:23 -07:00
Andreas Gampe
3dd238b948
Merge "Libunwindstack: Add -O0 to tools defaults on host" am: 2ed14f3923
...
am: 709f4802eb
Change-Id: Ib6bbaa01bb3becbf1ef919e7ba726816d3c1a9ac
2018-05-24 07:25:24 -07:00
Chih-hung Hsieh
414153af2f
Merge "Work around b/24465209, do not use clang lld" am: 85bd9ca978
...
am: 373ea1ef65
Change-Id: I7d300df4dc4bcc769424c2b823359dc036252b1a
2018-05-24 07:23:00 -07:00
Treehugger Robot
39cab7cd25
Merge "Support product-specific libraries"
2018-05-24 03:04:48 +00:00
Josh Gao
b9d6bebf22
Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."" am: a2157a7d92
...
am: e7a456fffe
Change-Id: Ia7bdde6738cbdd1a2c38a076fc6ccd82a7542b4f
2018-05-23 18:59:36 -07:00
Christopher Ferris
7cd0b11a21
Merge "Fix error messages handling." am: ad707b0222
...
am: 469a77ba5a
Change-Id: Iae6aa4495746a124f84e3d272ceb70ff98d47b2f
2018-05-23 18:39:07 -07:00
Josh Gao
6926173bf6
Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper." am: 812a6b77c6
...
am: c2eaf16518
Change-Id: I58b8b86df8b857230753308468068a018a430984
2018-05-23 18:37:31 -07:00
Josh Gao
78f50689f1
Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70a am: 7a223584c5
...
am: 3f111c8963
Change-Id: I77c0ecc49a10148feb752d7afdf9bf5a192bef9f
2018-05-23 18:36:05 -07:00
Elliott Hughes
db67c344d1
Merge "Add StdioLogger for command-line tools."
...
am: 98c1b1ccf6
Change-Id: Ifa42c73ee56c2dd946dfbbf50f903cc3704012fc
2018-05-23 16:57:06 -07:00
Elliott Hughes
98c1b1ccf6
Merge "Add StdioLogger for command-line tools."
2018-05-23 23:38:55 +00:00
Yao Chen
af9b744292
Merge "Remove a redundant check in statsd socket code."
...
am: e6a644bc35
Change-Id: I3357328295ae6e3488a7beaffd725a5ca9c33999
2018-05-23 16:25:01 -07:00
Treehugger Robot
e6a644bc35
Merge "Remove a redundant check in statsd socket code."
2018-05-23 23:07:24 +00:00
Josh Gao
e5e5bccd40
Merge changes I9f36cc26,I06561ad0,I42c2a8d0
...
am: 3a38310476
Change-Id: Iba85a446a745323c1c9645e2b6421c80ff598272
2018-05-23 16:04:42 -07:00
Josh Gao
3a38310476
Merge changes I9f36cc26,I06561ad0,I42c2a8d0
...
* changes:
adb: add benchmark script.
adb: add IOVector.
Revert "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
2018-05-23 22:39:48 +00:00
Andreas Gampe
709f4802eb
Merge "Libunwindstack: Add -O0 to tools defaults on host"
...
am: 2ed14f3923
Change-Id: I4af6be8347e22ecceffcb932bb130a836c0a7d52
2018-05-23 13:10:35 -07:00
Treehugger Robot
2ed14f3923
Merge "Libunwindstack: Add -O0 to tools defaults on host"
2018-05-23 19:37:01 +00:00
Chih-hung Hsieh
373ea1ef65
Merge "Work around b/24465209, do not use clang lld"
...
am: 85bd9ca978
Change-Id: I0a7a65b2be3e20b31d85645d920792b8255e344e
2018-05-23 12:10:15 -07:00
Josh Gao
e7a456fffe
Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
...
am: a2157a7d92
Change-Id: I8d9657c8f3ea7b1e1bebf5a7bb4b122173dc27fa
2018-05-23 11:56:52 -07:00
Christopher Ferris
469a77ba5a
Merge "Fix error messages handling."
...
am: ad707b0222
Change-Id: If342206c1dcc028f696a3aadd99a1df66282cc18
2018-05-23 11:55:31 -07:00
Josh Gao
c2eaf16518
Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."
...
am: 812a6b77c6
Change-Id: I7a6b5aca9791bbb49eee0d21d26a9ccb3f72a981
2018-05-23 11:53:17 -07:00
Josh Gao
3f111c8963
Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70a
...
am: 7a223584c5
Change-Id: Iaeb4520330e45e21bb03f85f06188a1e4e34115f
2018-05-23 11:51:13 -07:00
Josh Gao
fd3fd937b1
adb: add benchmark script.
...
Test: ./benchmark_device.py
Change-Id: I9f36cc267b1cbef2d90a30009c87ccc2a8e21795
2018-05-23 11:26:04 -07:00
Josh Gao
7c738cdb53
adb: add IOVector.
...
An IOVector is a collection of immutable reference counted blocks which
can have its head detached at an arbitrary index. This is extremely
useful for implementing packet-framed protocols like adb on top of a
stream protocol like TCP: a stream reader can read blocks, append them
to the end of the IOVector, and then pull packets off of the front.
This also lends itself naturally towards scatter/gather I/O, which will
enable us to read data from disk and send it across the wire with a
theoretical minimum number of copies in USB, and one extra copy over
TCP.
Since this is basically a generalization of std::deque<Range>, delete
Range and replace its uses with IOVector.
Test: adb_test
Test: wine adb_test.exe
Change-Id: I06561ad0bb25a3a51b378b61d257b5b04b41d9c4
2018-05-23 11:26:04 -07:00
Josh Gao
9da1a9118b
Revert "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
...
Implement pipe2 ourselves on darwin.
This reverts commit f139ba47a1 .
Test: none!
Change-Id: I42c2a8d07712fe4ac75b5824f754e79a5b9f5cb4
2018-05-23 11:14:57 -07:00
Chih-hung Hsieh
85bd9ca978
Merge "Work around b/24465209, do not use clang lld"
2018-05-23 17:17:14 +00:00
Chih-Hung Hsieh
0f975a2099
Work around b/24465209, do not use clang lld
...
See longer explanation in b/80093890.
Clang lld does not generate expected DT_REL and DT_RELA tags
with --hash-style=both and --pack-dyn-relocs=android.
I am not sure about the extent of b/24465209, so
I would rather not to use lld for these .so files for now.
Bug: 80093890
Bug: 24465209
Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables
Change-Id: I645dbe25c5b9975605e3af5e717ed36c276f14d4
2018-05-23 17:15:48 +00:00
Elliott Hughes
1be0d1481b
Add StdioLogger for command-line tools.
...
Bug: N/A
Test: ran tests
Change-Id: If366a4ea25aea1becdd3e443eba225e9bd52ebba
2018-05-23 10:06:20 -07:00
Josh Gao
a2157a7d92
Merge "Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper.""
2018-05-23 16:45:31 +00:00
Josh Gao
f139ba47a1
Revert "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."
...
This reverts commit 948b3e1068 .
Reason for revert: mac doesn't have pipe2
Change-Id: Id6a517bb500cbea602839f06452bc5e6d92289f1
2018-05-23 16:44:53 +00:00
Christopher Ferris
ad707b0222
Merge "Fix error messages handling."
2018-05-23 00:33:07 +00:00
Treehugger Robot
812a6b77c6
Merge "adb: add support for O_CLOEXEC to unique_fd pipe wrapper."
2018-05-23 00:17:32 +00:00
Josh Gao
7a223584c5
Merge changes I465804fd,Ib5a684bb,If5e66570,I8471cc00,I8ba0a70a
...
* changes:
adb: convert fdevent over to unique_fd.
adb: move towards using unique_fd.
adb: delete FDEVENT_DONTCLOSE.
adb: remove fdevent_install, fdevent_remove.
adb: fix uninitialized variable in AsyncServiceRef.
2018-05-23 00:01:29 +00:00
George Burgess IV
7ea1c72c68
Merge "Simplify code" am: 2a1c0dd6df am: 9d76ebd7d4
...
am: 483258c650
Change-Id: I11633f1af40bee96eded235dad106d8536a3203f
2018-05-22 16:08:31 -07:00
Yao Chen
4d1deed139
Remove a redundant check in statsd socket code.
...
The original liblog code has this additional check because there may be multiple writers registered,
there is a for-loop and the retVal is set to be the FIRST error. Statsd doesn't need it because it
only has one writer.
Test: locally tested.
Change-Id: I03f0015d0c29eba19eb2b5ea145380cb98fb2509
2018-05-22 16:06:21 -07:00
George Burgess IV
483258c650
Merge "Simplify code" am: 2a1c0dd6df
...
am: 9d76ebd7d4
Change-Id: I7e6524081a7d0513ff2e3fe8150b758ad31b1acf
2018-05-22 16:02:24 -07:00
George Burgess IV
9d76ebd7d4
Merge "Simplify code"
...
am: 2a1c0dd6df
Change-Id: I5bf0d9b562048887be0f01ee3b5ecff4fa8312ba
2018-05-22 15:56:29 -07:00