Commit graph

28296 commits

Author SHA1 Message Date
Yi Kong
2e3a19d5b4 Merge "Modernise code to use override specifier"
am: 4699cf6174

Change-Id: Ia22c546feed8711579cc5aaf4833cf29652506c2
2019-03-29 19:34:20 -07:00
Yi Kong
4699cf6174 Merge "Modernise code to use override specifier" 2019-03-30 02:11:13 +00:00
Daniel Mentz
6379127063 Merge "clean_header: Don't print extraneous newline char"
am: 0ce5c4440d

Change-Id: Id1d667d622c462e77721d64f4846627ccf7d6376
2019-03-29 17:34:02 -07:00
Daniel Mentz
0ce5c4440d Merge "clean_header: Don't print extraneous newline char" 2019-03-30 00:10:09 +00:00
Daniel Mentz
108268a143 Merge "clean_header: Write to correct dst_file"
am: b95c8af8c9

Change-Id: Idbab599484e91be4719c254e94ac1cfaa69793bf
2019-03-29 15:45:04 -07:00
Daniel Mentz
bb4cf7b8a7 clean_header: Don't print extraneous newline char
Don't print an extraneous newline character at the end of the include
file if clean_header.py is used in the non-update mode. This is
necessary to achieve consistent results in the update and non-update
modes.

Running clean_header in the non-update mode and redirecting the output
to a file should have the same result as using the update mode and have
the script write to the file directly.

Change-Id: I6b176c5365840d66e4499bacd205f1fa77302a2b
2019-03-29 15:17:48 -07:00
Daniel Mentz
b95c8af8c9 Merge "clean_header: Write to correct dst_file" 2019-03-29 21:41:35 +00:00
Daniel Mentz
316f4a499c clean_header: Write to correct dst_file
Write to correct dst_file when in update mode. This enables use cases
like the following:

../../../bionic/libc/kernel/tools/clean_header.py -k original-kernel-headers/ -d kernel-headers/ -u linux/ion.h

Previously, we had to cd into kernel-headers/ and then run

../../../../bionic/libc/kernel/tools/clean_header.py -k ../original-kernel-headers/ -d . -u linux/ion.h

because the tool didn't allow the relative path to be different from the
destination path.

Change-Id: I8c5e284ce7a6737d77a2f5ead3e7e5db01317425
2019-03-29 21:41:15 +00:00
Yi Kong
358603a409 Modernise code to use override specifier
Generated by clang-tidy.

Test: m checkbuild
Change-Id: I8e23da6b8af31b291be2eefe9937ca222ea8a8c3
2019-03-29 14:27:27 -07:00
Pirama Arumuga Nainar
5375df8f61 Merge "Reserve realtime signal for libprofile-extras"
am: 3e742cb613

Change-Id: I7bade5b9548519ac5b945c9cee09120c4a2a219f
2019-03-29 09:16:53 -07:00
Pirama Arumuga Nainar
3e742cb613 Merge "Reserve realtime signal for libprofile-extras" 2019-03-29 15:57:32 +00:00
Christopher Ferris
b1b8bfb8fd Merge "Fix double initialization call."
am: 6c5c6afea9

Change-Id: I8f1fa90413b1b09e8048a13c3790cd87f6ad697d
2019-03-28 15:08:14 -07:00
Christopher Ferris
6c5c6afea9 Merge "Fix double initialization call." 2019-03-28 21:49:26 +00:00
Christopher Ferris
1e3758e7a2 Fix double initialization call.
The previous refactor left a double call to the initialization of
the loaded hooks. Remove the unnecessary call.

Bug: 129239269

Test: All unit tests pass. No double printing of init messages.
Change-Id: Ie980f2383c75d69f8b06bf9a431bb59caef21188
2019-03-28 17:12:26 +00:00
Peter Collingbourne
04b0178166 Merge "Use PR_SET_VMA_ANON_NAME to name the abort message mapping."
am: 14025fd2bf

Change-Id: I31527f2418c62704c294e4c148c12dbf9a88fa48
2019-03-27 18:35:45 -07:00
Peter Collingbourne
14025fd2bf Merge "Use PR_SET_VMA_ANON_NAME to name the abort message mapping." 2019-03-28 01:17:33 +00:00
Nick Kralevich
a201789ffa Merge "param.h: whitespace cleanup"
am: 29a89df9e2

Change-Id: Ic79fb52c56bba63cdc20f313464745387ac049a1
2019-03-27 17:18:38 -07:00
Peter Collingbourne
feb5ed1b54 Use PR_SET_VMA_ANON_NAME to name the abort message mapping.
This makes it easier for tools to find the mapping. I am planning
to use this in crashpad to add HWASAN reports to the minidump.

Bug: http://crbug.com/crashpad/287
Change-Id: I600e551ef26d6ff62849319365d77912afa82fde
2019-03-27 16:50:27 -07:00
Nick Kralevich
29a89df9e2 Merge "param.h: whitespace cleanup" 2019-03-27 23:46:09 +00:00
Elliott Hughes
9d1ae96262 Merge "tests: test both upper- and lower-case with strptime %P/%p."
am: 2e824e3150

Change-Id: If993c7d32c95b6770b6d0ee5ba65d9c72274ecad
2019-03-27 14:06:34 -07:00
Treehugger Robot
2e824e3150 Merge "tests: test both upper- and lower-case with strptime %P/%p." 2019-03-27 20:54:59 +00:00
Yi Kong
f0c71e24d7 Merge "Move x86 and x86_64 libc to use libcrt"
am: 1d9a4cbce9

Change-Id: Ib400b83ff4a9c5f2d27321e73bcb81e9a4a98efc
2019-03-27 13:38:47 -07:00
Yi Kong
1d9a4cbce9 Merge "Move x86 and x86_64 libc to use libcrt" 2019-03-27 20:32:46 +00:00
Elliott Hughes
94cd62ccd1 Merge "Convert new tests to GTEST_SKIP."
am: e7ee0731c3

Change-Id: Icb868f196313b5fa45f9e42c7c1a6533677c50f3
2019-03-27 13:14:41 -07:00
Treehugger Robot
e7ee0731c3 Merge "Convert new tests to GTEST_SKIP." 2019-03-27 20:04:49 +00:00
Nick Kralevich
3cfedf4ff0 param.h: whitespace cleanup
c50b6a2b89 redefined the powerof2 macro,
but in a way that that didn't meet the clang_format style guidelines.
Change powerof2 to make clang_format happy.

Test: compiles
Change-Id: Icd04a17f40413b7a416ddcdc080edbc4d3fac87a
2019-03-27 10:56:16 -07:00
Yi Kong
efd25a0fd7 Move x86 and x86_64 libc to use libcrt
With __cpu_model visibility issue fixed in libcrt, we can move x86 and
x86_64 libc to use libcrt as well.

Test: emulator boots
Bug: 122993569
Change-Id: If71c324180010a57e3e9598d758a4d6ab1a3c369
2019-03-27 16:54:28 +00:00
Elliott Hughes
06acbcfb64 Merge "strptime: support everything that strftime supports."
am: ff923681be

Change-Id: I39dd975a674c115e2fc9212c1bd967a6aefd6e2b
2019-03-27 08:59:29 -07:00
Elliott Hughes
1167882a87 tests: test both upper- and lower-case with strptime %P/%p.
Test: ran tests
Change-Id: I7275808f2f0ae4f02d057542a13350895022910c
2019-03-27 08:56:49 -07:00
Elliott Hughes
109072038a Convert new tests to GTEST_SKIP.
These went in while we were waiting for the infrastructure to catch up.

Test: treehugger
Change-Id: I1179d1aba8f1369d320f82705958b36c6930babf
2019-03-27 08:51:02 -07:00
Elliott Hughes
ff923681be Merge "strptime: support everything that strftime supports." 2019-03-27 15:44:54 +00:00
Elliott Hughes
64bc28143f Merge "bionic tests: use GTEST_SKIP."
am: e08288465e

Change-Id: I6a6b55dc2f287a959363792bc4db3e8e4fd41bfb
2019-03-26 19:17:57 -07:00
Elliott Hughes
a1fb15bb67 strptime: support everything that strftime supports.
Our strptime was missing `%F`, `%G`, `%g`, `%P`, `%u`, `%V`, and
`%v`. Most of these are already supported upstream (and I've just pulled
their current implementation), but some aren't. We're horribly out of
sync anyway, so I'll upstream the missing pieces and then try to get us
back in sync later.

Test: new tests, but originally found by toybox trying to use %F
Change-Id: Ib1a10801a7a3b9c9189440c3b300109bde535fd9
2019-03-26 19:07:40 -07:00
Elliott Hughes
e08288465e Merge "bionic tests: use GTEST_SKIP." 2019-03-27 02:05:57 +00:00
Christopher Ferris
a423fed2ba Merge "Increase the allocation limit again."
am: e990078f05

Change-Id: I1c902d4781568a1ca8750eb0cdf7e4cc8a80de1c
2019-03-26 18:17:37 -07:00
Christopher Ferris
e990078f05 Merge "Increase the allocation limit again." 2019-03-27 01:04:36 +00:00
Elliott Hughes
1f63174243 Merge "Fix running the tests on the host again."
am: b0c33ecb99

Change-Id: Ie7aa9c329512b174e7f8801788fcf18166f3aeb1
2019-03-26 16:54:41 -07:00
Treehugger Robot
b0c33ecb99 Merge "Fix running the tests on the host again." 2019-03-26 23:44:19 +00:00
Dan Albert
82ed244032 Merge "Typo fix in comment. O_CLOEXEC is e, not x."
am: fe88d26aca

Change-Id: I2d6798a05e3ca8d0e34898ed959b11d0507b441f
2019-03-26 16:09:07 -07:00
Christopher Ferris
ce491abe24 Increase the allocation limit again.
Still getting a few flakes, so double the allowed tries.

Bug: 128872105

Test: Test passes.
Change-Id: I0fb3d74655eaece6660dec26a2a1d01430ef8fbc
2019-03-26 15:47:07 -07:00
Treehugger Robot
fe88d26aca Merge "Typo fix in comment. O_CLOEXEC is e, not x." 2019-03-26 22:00:31 +00:00
Elliott Hughes
8ceb95c506 Fix running the tests on the host again.
Bug: N/A
Test: ran the tests on the host under glibc
Change-Id: Id05a896bdd11b231304ed1a08ef24e1a661ee20d
2019-03-26 14:47:08 -07:00
Dan Albert
ba1151c761 Typo fix in comment. O_CLOEXEC is e, not x.
Test: None
Bug: None
Change-Id: I061fe1d3cac6307d878155f1fabdba70da8e9fd5
2019-03-26 13:01:22 -07:00
Elliott Hughes
d1bba14064 Merge "docs: mention the fact that bionic now uses ifuncs."
am: 2059021322

Change-Id: I4e64df2e56576a5445b08338ae69e02643ac0db9
2019-03-26 10:49:32 -07:00
Treehugger Robot
2059021322 Merge "docs: mention the fact that bionic now uses ifuncs." 2019-03-26 17:32:12 +00:00
Elliott Hughes
3770d93263 docs: mention the fact that bionic now uses ifuncs.
Bug: http://b/123296740
Test: N/A
Change-Id: I2cdc575270ebf32fd8ac1de21182150f5222cf9f
2019-03-26 08:52:07 -07:00
Elliott Hughes
b4c1555dcd Merge "Fix internal uses of _PATH_BSHELL."
am: b1ddbfdcdc

Change-Id: I11ecf04c647871d154baac824e6db83db9d84f19
2019-03-26 02:45:21 -07:00
Treehugger Robot
b1ddbfdcdc Merge "Fix internal uses of _PATH_BSHELL." 2019-03-26 09:32:16 +00:00
Pirama Arumuga Nainar
ebe1ae7747 Reserve realtime signal for libprofile-extras
Bug: http://b/128524141

This signal is used by libprofile-extras to trigger flush of gcov
coverage data.

Test: libprofile-extras in system/extras/toolchain-extras
Change-Id: I77dd5b1d67371a9cfaad54ad60254bfb2dd18ba9
2019-03-25 22:09:19 -07:00
Nick Kralevich
cdfe9d7d96 Merge "Make powerof2 macro ubsan safe"
am: 1b6517b601

Change-Id: Iec86f326ab1dd2b79cb41dd750975da7ee10474d
2019-03-25 20:52:59 -07:00