Commit graph

31436 commits

Author SHA1 Message Date
Martin Stjernholm
831eea21ba Merge "Make Bionic and kernel system includes explicit in the blueprints." am: 98581070c2
Change-Id: I36bc560c5cf0764c431aec6adf7af14b7fb5375a
2020-05-06 10:51:31 +00:00
Martin Stjernholm
98581070c2 Merge "Make Bionic and kernel system includes explicit in the blueprints." 2020-05-06 10:35:39 +00:00
Martin Stjernholm
82d84bcd7e Make Bionic and kernel system includes explicit in the blueprints.
Before this Soong added hardcoded system include paths to
bionic/libc/{include,kernel}, which won't work when Bionic libs are
packaged up as prebuilts in an SDK module snapshot.

Test: Build and boot
Test: Check in out/verbose.log.gz that a C file doesn't get any bionic
  include path for linux_glibc.
Bug: 153590472
Change-Id: I13c8eb3dd7150d6e0fee001b290b53fcebebcfea
2020-05-05 13:34:14 +01:00
Jooyung Han
64b5378f38 Merge "Set min_sdk_version for mainline dependencies" am: 95c00dcf0b
Change-Id: I1834703097bbf92de92d3107e3c608f0f5267a02
2020-05-05 07:00:32 +00:00
Jooyung Han
95c00dcf0b Merge "Set min_sdk_version for mainline dependencies" 2020-05-05 06:43:24 +00:00
Jooyung Han
15c32a8e1a Set min_sdk_version for mainline dependencies
To enforce all modules included in mainline modules(apex/apk),
modules should set min_sdk_version which is the minimum sdk versions
that compiled artifacts run against.

Setting this doesn't change build output.

Bug: 145796956
Test: m
Change-Id: Ibbe3771592677d729c81343fe00859c0afa81918
2020-05-05 10:45:46 +09:00
Treehugger Robot
2c81af674a Merge "Add API constant for S." am: 49f7f10f62
Change-Id: I3ac5da53252b9a03172f487d1c759335ecf26039
2020-05-05 00:44:17 +00:00
Treehugger Robot
49f7f10f62 Merge "Add API constant for S." 2020-05-05 00:35:17 +00:00
Quentin Perret
4420d4c019 Merge "Fix argument order in api level test" am: 04e4d35cd7
Change-Id: I65cfe490b70d66ee0966730be48613f1e283509c
2020-05-04 10:17:28 +00:00
Quentin Perret
04e4d35cd7 Merge "Fix argument order in api level test" 2020-05-04 09:59:16 +00:00
Alistair Delva
bed98c0deb Fix argument order in api level test
Looks like the arguments were unintentionally swapped?

Bug: 155526611
Change-Id: I39d49f94387cfd337c89becb5eb6f85ca638bef1
Signed-off-by: Alistair Delva <adelva@google.com>
2020-05-03 20:10:51 -07:00
Evgenii Stepanov
e2904c284a Merge "[libc] Zero and pattern initialization of heap memory." am: f9d72d45d8
Change-Id: If964d64650005ecbd7c5aaf2e90be2eeecfc1687
2020-05-02 00:09:48 +00:00
Evgenii Stepanov
f9d72d45d8 Merge "[libc] Zero and pattern initialization of heap memory." 2020-05-01 23:58:48 +00:00
Evgenii Stepanov
5a73e03305 [libc] Zero and pattern initialization of heap memory.
Bug: 155227507
Test: scudo_unit_tests

Change-Id: I85075acfd85172f6cc7e48f79eeb577e293d0d30
2020-05-01 14:06:54 -07:00
Treehugger Robot
bf7ab25e98 Merge "Adapt to clang-r383902" am: ac47b2b56e
Change-Id: I0e10483250c58955c4ed33aa8f9f0497e9092380
2020-05-01 18:20:31 +00:00
Treehugger Robot
ac47b2b56e Merge "Adapt to clang-r383902" 2020-05-01 18:11:02 +00:00
Stephen Hines
25b8af496c Adapt to clang-r383902
This change adapts versioner to llvm::StringRef losing its implicit
conversion to std::string().

Test: ./build-prebuilts.sh
Change-Id: Ie1b290cf12e7044a92545470ce4f968cc55d90c9
2020-05-01 03:44:40 -07:00
Yabin Cui
e5bb3c8fbd Merge "Fix foritfy test for clang update." am: e75527347a
Change-Id: I345742089c8f4c91af0aded3798c1b18fbc219cc
2020-05-01 05:42:49 +00:00
Yabin Cui
e75527347a Merge "Fix foritfy test for clang update." 2020-05-01 05:28:39 +00:00
Treehugger Robot
ed843c3942 Merge "fdtrack: fix accept test, add test for accept4." am: 9e42d38e21
Change-Id: I746c09215a6491f8b9d87c15f8c949865e026724
2020-05-01 00:51:15 +00:00
Treehugger Robot
9e42d38e21 Merge "fdtrack: fix accept test, add test for accept4." 2020-05-01 00:25:47 +00:00
Josh Gao
9413ae7366 fdtrack: fix accept test, add test for accept4.
accept creates an additional socket behind the scenes to communicate
with netd. Filter out events for temporarily created, but then closed
fds to allow for this.

Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I2168ddc60f307278e3257ffcdf591272d61d45bb
2020-04-30 16:17:04 -07:00
Martin Stjernholm
3a11b6c6a9 Merge "Reland "Make bionic_platform_headers available only for Bionic targets"." am: 82c1096cac
Change-Id: Id100081a5f9c08eb8dcbd0716de13a6a03e3e883
2020-04-30 14:23:40 +00:00
Martin Stjernholm
82c1096cac Merge "Reland "Make bionic_platform_headers available only for Bionic targets"." 2020-04-30 14:11:50 +00:00
Josh Gao
68ab0fb97c Merge changes I8b25accf,I59013f0c,I6c881e5d,I66826f31,I552692ae, ... am: 4d0c40be89
Change-Id: I728261e742ee817e65a57315d59f5d0df61632c4
2020-04-30 02:07:25 +00:00
Josh Gao
4d0c40be89 Merge changes I8b25accf,I59013f0c,I6c881e5d,I66826f31,I552692ae, ...
* changes:
  fdtrack: add wrapper for socketpair.
  fdtrack: add wrapper for eventfd.
  fdtrack: add wrappers for epoll_create, epoll_create1.
  fdtrack: add wrappers for pipe, pipe2.
  fdtrack: add tests for individual wrappers.
  fdtrack: don't destroy traces.
2020-04-30 01:54:08 +00:00
Peter Collingbourne
c5eaffe510 Merge "Switch to new kernel ptrace interface for reading tags." am: 514faf92c8
Change-Id: I3cf1f5bc59bb75bde15a77be6e345530905cfd0c
2020-04-30 01:07:14 +00:00
Peter Collingbourne
514faf92c8 Merge "Switch to new kernel ptrace interface for reading tags." 2020-04-30 00:55:45 +00:00
Josh Gao
b107eab5ef fdtrack: add wrapper for socketpair.
Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I8b25accf00dc01f6fab351f3ba612f6b0ff9d094
2020-04-29 17:21:16 -07:00
Josh Gao
7de412443d fdtrack: add wrapper for eventfd.
Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I59013f0c4da0debbcc50269c64ae9db0cdc4eaa0
2020-04-29 17:21:16 -07:00
Josh Gao
a38331d833 fdtrack: add wrappers for epoll_create, epoll_create1.
Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I6c881e5d67596c543526536541d5b8086e21d9e9
2020-04-29 17:21:16 -07:00
Josh Gao
1fad5283a0 fdtrack: add wrappers for pipe, pipe2.
Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I66826f312a65ab9f1bd8193bf684e330baa952dc
2020-04-29 17:21:16 -07:00
Josh Gao
9d512402d4 fdtrack: add tests for individual wrappers.
Add tests for all of our existing wrappers (with one commented out,
because it's unexpectedly generating multiple events).

Bug: https://issuetracker.google.com/154450436
Test: bionic-unit-tests
Change-Id: I552692aef952237c2eee0dabec61b7ea7fd230e3
2020-04-29 17:21:12 -07:00
Josh Gao
38d00b80a0 fdtrack: don't destroy traces.
There's a bad interaction with malloc_debug when the libraries are being
destroyed.

Bug: https://issuetracker.google.com/154439915
Test: treehugger
Change-Id: Ib47c8139c3a88dd52865ea93654b2926bd708729
2020-04-29 17:20:24 -07:00
Treehugger Robot
bcf07a70f5 Merge "Add METADATA to bionic: BSD+Apache2+MIT+ISC=NOTICE" am: 7204ad8cc8
Change-Id: Iff2becb02f81934e79ae18a1bad185897e43c55f
2020-04-29 23:55:02 +00:00
Treehugger Robot
7204ad8cc8 Merge "Add METADATA to bionic: BSD+Apache2+MIT+ISC=NOTICE" 2020-04-29 23:40:01 +00:00
Bob Badour
76474c95b0 Add METADATA to bionic: BSD+Apache2+MIT+ISC=NOTICE
Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: Ie25de7ff63fca903030702f6b811fd37f4cade12
2020-04-29 13:08:49 -07:00
Martin Stjernholm
a276343e14 Reland "Make bionic_platform_headers available only for Bionic targets".
The triggering reason for this change is that the SDK snapshot
generation cannot readily handle header libraries that are required for
targets that the SDK itself isn't available for. However, these include
files shouldn't be used without Bionic anyway.

Relanding unchanged - the build problem was due to a split topic.

Test: m checkbuild (on aosp_taimen)
Test: m (on aosp_taimen_hwasan)
Test: atest CtsBionicTestCases
Test: lunch fvp-userdebug && mmm bionic
Bug: 152255951
Change-Id: Iaf49597ea265e6f2a042de5ee873238073b2e545
2020-04-29 18:14:11 +01:00
Martin Stjernholm
77b03e7a1a Merge "Revert "Make bionic_platform_headers available only for Bionic t..."" am: d20571efe1
Change-Id: I8498d83b2293921d74ba9abf1f92c3617543fc1f
2020-04-29 12:44:54 +00:00
Martin Stjernholm
d20571efe1 Merge "Revert "Make bionic_platform_headers available only for Bionic t..."" 2020-04-29 12:27:37 +00:00
Martin Stjernholm
ed95d0134d Revert "Make bionic_platform_headers available only for Bionic t..."
Reason for revert: Breaks rvc-d1-dev-plus-aosp: http://ab/6443190
Reverted Changes:
Ide447b89a:bionic_libc_platform_headers is only available whe...
Ia93cd3ec8:bionic_libc_platform_headers is only available whe...
Icdc495588:Make bionic_platform_headers available only for Bi...
Idfd7c87dc:bionic_libc_platform_headers is only available whe...

Bug: 152255951
Bug: 155269399
Change-Id: I214f1165bb0a7e59d3b35a13b3cceb1965be922b
2020-04-29 12:18:36 +00:00
Martin Stjernholm
0d0fc0b774 Merge "Make bionic_platform_headers available only for Bionic targets." am: 38d0a7d9dc
Change-Id: I7d308e1a1545d5b3dbf1b73842738d9d64a5b523
2020-04-29 10:42:19 +00:00
Martin Stjernholm
38d0a7d9dc Merge "Make bionic_platform_headers available only for Bionic targets." 2020-04-29 10:30:23 +00:00
Treehugger Robot
ff84e37ac1 Merge "[NFC] Align pointer to type." am: cbc67b3051
Change-Id: If7f138edf1011d0df25c6cc6e294f35969629a07
2020-04-28 20:24:22 +00:00
Treehugger Robot
cbc67b3051 Merge "[NFC] Align pointer to type." 2020-04-28 20:02:52 +00:00
Mitch Phillips
ba1e921294 [NFC] Align pointer to type.
Typo fix.

Bug: N/A
Test: N/a
Change-Id: Ia19076da9ea19fc7629e625023e969105d2f8786
2020-04-28 11:33:48 -07:00
Treehugger Robot
2231771931 Merge "malloc_hooks README.md: fix example compilation failures" am: 5057c42012
Change-Id: I3264f36b6ea8459b5f968530de12fd5a4b8abb66
2020-04-27 23:43:24 +00:00
Treehugger Robot
5057c42012 Merge "malloc_hooks README.md: fix example compilation failures" 2020-04-27 23:29:41 +00:00
Martin Stjernholm
249f726583 Make bionic_platform_headers available only for Bionic targets.
The triggering reason for this change is that the SDK snapshot
generation cannot readily handle header libraries that are required for
targets that the SDK itself isn't available for. However, these include
files shouldn't be used without Bionic anyway.

Test: m checkbuild (on aosp_taimen)
Test: m (on aosp_taimen_hwasan)
Test: atest CtsBionicTestCases
Test: lunch fvp-userdebug && mmm bionic
Bug: 152255951
Change-Id: Icdc49558893c5355860f78d23275c49ba0119900
2020-04-27 19:07:01 +01:00
Jooyung Han
38a9ad96a9 Merge "libc: Add stubs.versions=R" am: 1d9ccdfb1a
Change-Id: I773712dd2bf6ee938dabde5c5a1327d1ba034a50
2020-04-25 04:53:35 +00:00