OSDN Git Service

android-x86/bionic.git
6 years agobionic: tests: only test falloc_punch on ext4 am: 47a52109a4
Matthias Hausner [Sat, 3 Jun 2017 21:24:40 +0000 (21:24 +0000)]
bionic: tests: only test falloc_punch on ext4 am: 47a52109a4
am: 7864cb7495

Change-Id: I3f4ea6bd21e81902c1ea7a7053599dc3314e709d

6 years agobionic: tests: only test falloc_punch on ext4
Matthias Hausner [Sat, 3 Jun 2017 21:20:40 +0000 (21:20 +0000)]
bionic: tests: only test falloc_punch on ext4
am: 47a52109a4

Change-Id: Ie12666653eaf324dc6d93f09d20000e3d8a87281

6 years agoMerge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac am: 734a59577e
Christopher Ferris [Fri, 2 Jun 2017 22:18:41 +0000 (22:18 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac am: 734a59577e
am: eda488216a

Change-Id: I0409a3cbef6fb0d159a5a92bc99949e288508f6b

6 years agoMerge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac
Christopher Ferris [Fri, 2 Jun 2017 22:16:11 +0000 (22:16 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282 am: 0b65dc85ac
am: 734a59577e

Change-Id: I67d5acc79f0ebc5a6568cb5918de058dbde13e54

6 years agoMerge "Use libdemangle for function names." am: 5c76fec282
Christopher Ferris [Fri, 2 Jun 2017 22:12:12 +0000 (22:12 +0000)]
Merge "Use libdemangle for function names." am: 5c76fec282
am: 0b65dc85ac

Change-Id: I78957fcc07495269d5d6ac924c7cde64f5edb8c8

6 years agoMerge "Use libdemangle for function names."
Christopher Ferris [Fri, 2 Jun 2017 22:09:10 +0000 (22:09 +0000)]
Merge "Use libdemangle for function names."
am: 5c76fec282

Change-Id: Iabe599c79e7662594a32431aad12d711f9c0e4dc

6 years agoMerge "Use libdemangle for function names."
Christopher Ferris [Fri, 2 Jun 2017 22:02:53 +0000 (22:02 +0000)]
Merge "Use libdemangle for function names."

6 years agobionic: tests: only test falloc_punch on ext4
Matthias Hausner [Fri, 2 Jun 2017 17:09:19 +0000 (10:09 -0700)]
bionic: tests: only test falloc_punch on ext4

Test fcntl#falloc_punch is wrong. It checks that fallocate() with mode
FALLOC_FL_PUNCH_HOLE fails on ext4 file system on older kernels. The
test fails to ensure that the file it creates is indeed on an ext4
partition. On an Angelfish device for example, the file is created on an
f2fs partition, which supports FALLOC_FL_PUNCH_HOLE, and thus the test
fails (wrongly).

Change-Id: I23c1ba4d0fcee81551531779e93ac3d5e19ba1d7
Fixes: 62220977
Test: run bionic-unit-tests as per bionic/README.md###Device tests
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
6 years agoUse libdemangle for function names.
Christopher Ferris [Thu, 1 Jun 2017 21:16:32 +0000 (14:16 -0700)]
Use libdemangle for function names.

Bug: 62141808

Test: Ran unit tests, ran malloc debug with leaks and verified functions
Test: are demangled.
Change-Id: I1900632e9a55bb818b1aabc798224ff3eebc1fca

6 years agoMerge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121 am: 0c124...
Elliott Hughes [Fri, 2 Jun 2017 00:02:11 +0000 (00:02 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121 am: 0c12408773
am: 6ab21db586

Change-Id: I143c3f9f120b0f1a90d630a8454fa7c64336dfe8

6 years agoMerge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121
Elliott Hughes [Thu, 1 Jun 2017 23:49:11 +0000 (23:49 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964 am: 799a5c4121
am: 0c12408773

Change-Id: Ic6f893ce4675e42935af9919be79988fe319a9ad

6 years agoMerge "Fix boost build with unified headers." am: 498b4de964
Elliott Hughes [Thu, 1 Jun 2017 23:41:09 +0000 (23:41 +0000)]
Merge "Fix boost build with unified headers." am: 498b4de964
am: 799a5c4121

Change-Id: I3e13ef7804daa5d15aa3f51ef9402fe48cccdec4

6 years agoMerge "Fix boost build with unified headers."
Elliott Hughes [Thu, 1 Jun 2017 23:37:39 +0000 (23:37 +0000)]
Merge "Fix boost build with unified headers."
am: 498b4de964

Change-Id: I5cd210231b3c254e272ad0db5d77f02dad5466b9

6 years agoMerge "Fix boost build with unified headers."
Treehugger Robot [Thu, 1 Jun 2017 23:30:56 +0000 (23:30 +0000)]
Merge "Fix boost build with unified headers."

6 years agoFix boost build with unified headers.
Elliott Hughes [Thu, 1 Jun 2017 21:08:58 +0000 (14:08 -0700)]
Fix boost build with unified headers.

boost (1.64.0 at least) assumes that if you have POSIX_MADV_NORMAL, you have
posix_madvise. With unified headers, this isn't true. Rather than make life
harder for projects that don't use configure, just make it so. We already
applied similar workarounds for epoll_create1 and inotify_init1.

Bug: https://github.com/android-ndk/ndk/issues/395
Test: built boost (long story!)
Change-Id: I5d2d8de7b30921dde913251d35dcd249a2876f94

6 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255 am: 85fb061c24
Goran Ferenc [Thu, 1 Jun 2017 18:04:46 +0000 (18:04 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255 am: 85fb061c24
am: 12678c583c

Change-Id: Icb5035f697c0575ab940c50d62db5c65f259eef4

6 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255
Goran Ferenc [Thu, 1 Jun 2017 17:59:47 +0000 (17:59 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9 am: d32465b255
am: 85fb061c24

Change-Id: Idc1b6422a1c3213d0c746e135f6c15b49fc5dbc8

6 years agoMerge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9
Goran Ferenc [Thu, 1 Jun 2017 17:56:43 +0000 (17:56 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am: 72c8fce6c9
am: d32465b255

Change-Id: I9679f0f032d463fbde8996a9174938476f10d276

6 years agoMerge "MIPS: 32/64-bit VDSO support"
Goran Ferenc [Thu, 1 Jun 2017 17:54:12 +0000 (17:54 +0000)]
Merge "MIPS: 32/64-bit VDSO support"
am: 72c8fce6c9

Change-Id: I51eb897eae07978233f49cc2dce292df98a5daf1

6 years agoMerge "MIPS: 32/64-bit VDSO support"
Treehugger Robot [Thu, 1 Jun 2017 17:44:40 +0000 (17:44 +0000)]
Merge "MIPS: 32/64-bit VDSO support"

6 years agoMove mallopt to correct section. am: 8d88abc6c6 -s ours
Christopher Ferris [Thu, 1 Jun 2017 15:58:35 +0000 (15:58 +0000)]
Move mallopt to correct section. am: 8d88abc6c6  -s ours
am: 025bd7a109

Change-Id: I178dff33ef924eee44f6deb43a42dd4e83b226a3

6 years agoMove mallopt to correct section.
Christopher Ferris [Thu, 1 Jun 2017 15:56:03 +0000 (15:56 +0000)]
Move mallopt to correct section.
am: 8d88abc6c6  -s ours

Change-Id: Ifca710e9b54519033f4beee5c5bcf92b1fdffbe1

6 years agoMIPS: 32/64-bit VDSO support
Goran Ferenc [Tue, 30 May 2017 14:00:41 +0000 (16:00 +0200)]
MIPS: 32/64-bit VDSO support

File libc/SYSCALLS.TXT is updated to generate bionic's system call wrappers
for clock_gettime() & gettimeofday() that will be called if kernel vdso
implementations fail to execute.
The system call wrappers are generated using a python script gensyscalls.py.

Since all architectures support vdso now, there is no more need for conditional
statements regarding supported architectures in libc/bionic/vdso.cpp &
libc/private/bionic_vdso.h files.

Test: builds
Change-Id: I7213f29c179a7929851499d78a72900638ae861a
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
6 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am...
Dimitry Ivanov [Thu, 1 Jun 2017 07:26:29 +0000 (07:26 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am: 1e55a0420e am: c27ac0df9b
am: c3c83d9f4b

Change-Id: I0db36c9b828fee348d25e312c970ced8a19b7e03

6 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am...
Dimitry Ivanov [Thu, 1 Jun 2017 07:24:29 +0000 (07:24 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474 am: 1e55a0420e
am: c27ac0df9b

Change-Id: Ida956645eaf002113587960e931acc570e44c7a3

6 years agoMerge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474
Dimitry Ivanov [Thu, 1 Jun 2017 07:22:28 +0000 (07:22 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am: 533cf06474
am: 1e55a0420e

Change-Id: I80c1b5f9169c5d7ae7e139d52643fce981c2f7a3

6 years agoMerge "Make dl_iterate_phdr return correct name for first entry"
Dimitry Ivanov [Thu, 1 Jun 2017 07:20:27 +0000 (07:20 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"
am: 533cf06474

Change-Id: I80e365b464ca7326da3c3d3a0f0bdf3dac5921c7

6 years agoMerge "Make dl_iterate_phdr return correct name for first entry"
Treehugger Robot [Thu, 1 Jun 2017 07:16:11 +0000 (07:16 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"

6 years agoMake dl_iterate_phdr return correct name for first entry
Dimitry Ivanov [Wed, 31 May 2017 22:07:41 +0000 (15:07 -0700)]
Make dl_iterate_phdr return correct name for first entry

Test: bionic-unit-tests --gtest_filter=link*
Change-Id: Ib3f1e0fbc76fed9a5f27ffdd9bbf847a3e8d3665

6 years agoMove mallopt to correct section.
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.

Bug: 62202823

Test: Built and built unit tests.
(cherry picked from commit 488eb8b7d2fb7a51c90664ae0baea75b7280cddd)

Change-Id: Iae82f77ed84a42f3859d861b533fd7945e2d40d9

6 years agoMerge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2 am: fe4edf65dd
Christopher Ferris [Wed, 31 May 2017 20:42:01 +0000 (20:42 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2 am: fe4edf65dd
am: 8999d6f656

Change-Id: I9d2c734531b5fb12d97c9b4b90a22021d53f04cc

6 years agoMerge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2
Christopher Ferris [Wed, 31 May 2017 20:30:57 +0000 (20:30 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9 am: c613ed2ab2
am: fe4edf65dd

Change-Id: Icbb7dd9bac9228693b1d547ab3e1c191ecc50fa1

6 years agoMerge "Move mallopt to correct section." am: 15eaaddef9
Christopher Ferris [Wed, 31 May 2017 20:25:57 +0000 (20:25 +0000)]
Merge "Move mallopt to correct section." am: 15eaaddef9
am: c613ed2ab2

Change-Id: I36ed519b1a3d42d97f2960622195584f0273d024

6 years agoMerge "Move mallopt to correct section."
Christopher Ferris [Wed, 31 May 2017 20:20:58 +0000 (20:20 +0000)]
Merge "Move mallopt to correct section."
am: 15eaaddef9

Change-Id: I592a15ea6503f8753c9fdc512fa383d55f48525e

6 years agoMerge "Move mallopt to correct section."
Christopher Ferris [Wed, 31 May 2017 20:07:29 +0000 (20:07 +0000)]
Merge "Move mallopt to correct section."

6 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214...
Christopher Ferris [Wed, 31 May 2017 18:57:53 +0000 (18:57 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214 am: 5e465f7644
am: c39af283fe

Change-Id: I3e1bf1f0fc8abbbb58e52fa7afcbafa0bdbd5efb

6 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214
Christopher Ferris [Wed, 31 May 2017 18:36:20 +0000 (18:36 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0 am: bf52fee214
am: 5e465f7644

Change-Id: I81ea1202bfbb8614c5662f7b72bded35716ab4ef

6 years agoMerge "Revert "Make mallopt available in the future."" am: 8f7a987cd0
Christopher Ferris [Wed, 31 May 2017 18:32:26 +0000 (18:32 +0000)]
Merge "Revert "Make mallopt available in the future."" am: 8f7a987cd0
am: bf52fee214

Change-Id: I318f22e95f2ef59b240bf5b8bfc87eb0babb2d98

6 years agoMerge "Revert "Make mallopt available in the future.""
Christopher Ferris [Wed, 31 May 2017 18:28:21 +0000 (18:28 +0000)]
Merge "Revert "Make mallopt available in the future.""
am: 8f7a987cd0

Change-Id: I0db255e6778cd2cfb64206c3a2ec635e62a18e9a

6 years agoMerge "Revert "Make mallopt available in the future.""
Christopher Ferris [Wed, 31 May 2017 18:15:09 +0000 (18:15 +0000)]
Merge "Revert "Make mallopt available in the future.""

6 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b am...
Christopher Ferris [Wed, 31 May 2017 18:12:23 +0000 (18:12 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b am: be5bc2b8ad
am: 5a8aff819e

Change-Id: I242e211829bc57bdc17ac0a398c6f4ab13ee0c5f

6 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b
Christopher Ferris [Wed, 31 May 2017 18:02:49 +0000 (18:02 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45 am: 21d0a8c15b
am: be5bc2b8ad

Change-Id: I7776ada456afc4771af9ab04baf1d737750a226e

6 years agoMove mallopt to correct section.
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.

Bug: 62202823

Test: Built and built unit tests.
Change-Id: Icefc152eb756fd60ce8f51d694f22923a41a9cd1

6 years agoMerge "Add mallopt to canonical list of exports." am: 8f6f70db45
Christopher Ferris [Wed, 31 May 2017 17:54:06 +0000 (17:54 +0000)]
Merge "Add mallopt to canonical list of exports." am: 8f6f70db45
am: 21d0a8c15b

Change-Id: Iad3d739123a5e8132d8c201a1032fbf95f1167ea

6 years agoMerge "Add mallopt to canonical list of exports."
Christopher Ferris [Wed, 31 May 2017 17:49:04 +0000 (17:49 +0000)]
Merge "Add mallopt to canonical list of exports."
am: 8f6f70db45

Change-Id: I3bd9320bf7c53c4f2f6586d55d5a3c0f3e8307e9

6 years agoMerge "Add mallopt to canonical list of exports."
Christopher Ferris [Wed, 31 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "Add mallopt to canonical list of exports."

6 years agoAdd mallopt to canonical list of exports.
Christopher Ferris [Wed, 31 May 2017 00:35:28 +0000 (17:35 -0700)]
Add mallopt to canonical list of exports.

Bug: 62202823

Test: Ran script and verified that none of the other map files are modified.
Change-Id: Ib890ce77c60b877434fbb65a5add8f6c4603d3d0

6 years agoRevert "Make mallopt available in the future."
Christopher Ferris [Wed, 31 May 2017 00:14:15 +0000 (00:14 +0000)]
Revert "Make mallopt available in the future."

This reverts commit 083923d96acb7cfe4e1a1c22100047fa87feb347.

Reason for revert: No longer correct, this will be in API 26.

Change-Id: Iaf82d797405135fcd30455fd750b23fc57e9623a

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev am: 41e0ceb5c9
Jiyong Park [Sat, 27 May 2017 01:54:27 +0000 (01:54 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev am: 41e0ceb5c9
am: 08d3f97e7f

Change-Id: I32c0e73d2080ae1f65e5855bce6ecca467f20e42

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev
Jiyong Park [Sat, 27 May 2017 01:50:49 +0000 (01:50 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev
am: 41e0ceb5c9

Change-Id: I6e9faedbb26d94aab7064c2c8620362c776143be

7 years agoMerge "linker: disable ld.config.txt in ASAN mode" into oc-dev
TreeHugger Robot [Sat, 27 May 2017 01:45:31 +0000 (01:45 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev

7 years agolinker: disable ld.config.txt in ASAN mode
Jiyong Park [Fri, 26 May 2017 06:14:52 +0000 (15:14 +0900)]
linker: disable ld.config.txt in ASAN mode

Currently, multiple namespaces does not support ASAN mode where some
symbols should be intercepted via LD_PRELOAD; LD_PRELOADed libs are not
preloaded into the linked namespaces other than the default namespace.
Until we fix the problem, we temporarily disable ld.config.txt in ASAN
mode.

Bug: 38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/3.8/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful

Change-Id: I091874dd36b36f56dff2ad899d76ff86931909ed

7 years agoExpand whitelist am: ec00401dff
Paul Lawrence [Fri, 26 May 2017 18:28:48 +0000 (18:28 +0000)]
Expand whitelist am: ec00401dff
am: 84ea200ef0

Change-Id: I91a8e2ee1a95627af10b1db8cb0cb5c56faca081

7 years agoExpand whitelist
Paul Lawrence [Fri, 26 May 2017 18:26:47 +0000 (18:26 +0000)]
Expand whitelist
am: ec00401dff

Change-Id: I71c7c4da0757e194405ee1f6f38117b21d927b8e

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c...
Elliott Hughes [Fri, 26 May 2017 18:14:19 +0000 (18:14 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c am: d165d458b6
am: e3892b870f

Change-Id: I8bd07e24d900a5f6fcc42277f2590b9c7740b0f6

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c
Elliott Hughes [Fri, 26 May 2017 18:12:46 +0000 (18:12 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b am: d0b030eb9c
am: d165d458b6

Change-Id: I536d4de1a970eb3b9f48f441c991c4ab923d03bd

7 years agoMerge "Enable exporting the non-uapi scsi headers." am: 6be65c135b
Elliott Hughes [Fri, 26 May 2017 18:10:47 +0000 (18:10 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b
am: d0b030eb9c

Change-Id: I90f87bfd05e8be59ad507f3466b8f78c0e885656

7 years agoMerge "Enable exporting the non-uapi scsi headers."
Elliott Hughes [Fri, 26 May 2017 18:08:21 +0000 (18:08 +0000)]
Merge "Enable exporting the non-uapi scsi headers."
am: 6be65c135b

Change-Id: Id8c535cf060b6cb9f38efc70dcda43031f2375fb

7 years agoMerge "Enable exporting the non-uapi scsi headers."
Elliott Hughes [Fri, 26 May 2017 18:04:26 +0000 (18:04 +0000)]
Merge "Enable exporting the non-uapi scsi headers."

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a am...
Christopher Ferris [Fri, 26 May 2017 17:09:17 +0000 (17:09 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a am: 1ac92e24b8
am: ae5faae606

Change-Id: Ic41d681631bf059bbbf82b49894ed83733ae15d8

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a
Christopher Ferris [Fri, 26 May 2017 17:07:11 +0000 (17:07 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62 am: c4d31c981a
am: 1ac92e24b8

Change-Id: I7aa9398a3eb181195183d56e0c97fc79652e5cef

7 years agoMerge "Add offset to backtrace_string printing." am: f6a5afcb62
Christopher Ferris [Fri, 26 May 2017 17:05:11 +0000 (17:05 +0000)]
Merge "Add offset to backtrace_string printing." am: f6a5afcb62
am: c4d31c981a

Change-Id: Iab1201771f12ce3e59954a88d2a897ba68f74984

7 years agoMerge "Add offset to backtrace_string printing."
Christopher Ferris [Fri, 26 May 2017 17:03:11 +0000 (17:03 +0000)]
Merge "Add offset to backtrace_string printing."
am: f6a5afcb62

Change-Id: I06647308b9cf01405007b136dc5978c436cbcbb6

7 years agoMerge "Add offset to backtrace_string printing."
Christopher Ferris [Fri, 26 May 2017 16:57:58 +0000 (16:57 +0000)]
Merge "Add offset to backtrace_string printing."

7 years agoExpand whitelist
Paul Lawrence [Thu, 25 May 2017 21:15:23 +0000 (14:15 -0700)]
Expand whitelist

Bug: 37769298
Test: Boots. Cannot test app behavior without account
Change-Id: Iebb7616f100368bf2e702ec51f637df1f3727885

7 years agoEnable exporting the non-uapi scsi headers.
Elliott Hughes [Fri, 26 May 2017 00:13:32 +0000 (17:13 -0700)]
Enable exporting the non-uapi scsi headers.

Callers are supposed to #include <scsi/sg.h> but if we tell soong to add
bionic/libc/kernel/android/ to the include path, the uapi headers in there
would be (unintentionally) accessible as either <linux/name.h> or
<uapi/linux/name.h>.

Bug: N/A (hit while upgrading strace to 4.17)
Test: builds
Change-Id: I8d47dd51da688c38f747a255d401dfb2c209c805

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am...
Dimitry Ivanov [Fri, 26 May 2017 01:55:13 +0000 (01:55 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am: 82f4098497 am: e1c7a94d8b
am: 985bcf14a7

Change-Id: I5b70d7eb136f78f333a688462f7dfa9af0b43670

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am...
Dimitry Ivanov [Fri, 26 May 2017 01:43:12 +0000 (01:43 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a am: 82f4098497
am: e1c7a94d8b

Change-Id: I000ec2526a8023651736920778a32ab156a60701

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a
Dimitry Ivanov [Fri, 26 May 2017 01:41:41 +0000 (01:41 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am: 232681160a
am: 82f4098497

Change-Id: I02cf9d73a15e93f109639edb13a4048bd91101d2

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
Dimitry Ivanov [Fri, 26 May 2017 01:39:41 +0000 (01:39 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
am: 232681160a

Change-Id: Ie2d150492163e59814a0557baed86a5bed9fa125

7 years agoAdd offset to backtrace_string printing.
Christopher Ferris [Fri, 26 May 2017 01:26:37 +0000 (18:26 -0700)]
Add offset to backtrace_string printing.

The libmemunreachable code uses backtrace_string to print out the backtrace
information. However, when the offset of the map that a frame is in is
non-zero, no information is printed. This means that when a frame comes from
a shared library loaded from an apk, it's impossible to tell which
shared library the frame is really coming from.

Add the offset display when it's non-zero. This means this can now be fed
to development/scripts/stack to decode the frame.

Bug: 37276041

Test: Ran dumpsys meminfo --unreachable on an app that leaks from a
Test: shared library and verified the offset output is present.
Change-Id: I61d34ae3f617622d354cc099eff520a64782b6e2

7 years agoMerge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
Treehugger Robot [Fri, 26 May 2017 01:30:01 +0000 (01:30 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"

7 years agoMerge "Expand whitelist" am: eca29cb508 am: 27752635e9 am: fcb452e602
Paul Lawrence [Fri, 26 May 2017 01:14:10 +0000 (01:14 +0000)]
Merge "Expand whitelist" am: eca29cb508 am: 27752635e9 am: fcb452e602
am: 4c18818524

Change-Id: Id5af566740f45748c71e58c915a43f402cd4e2e8

7 years agoMerge "Expand whitelist" am: eca29cb508 am: 27752635e9
Paul Lawrence [Fri, 26 May 2017 01:12:39 +0000 (01:12 +0000)]
Merge "Expand whitelist" am: eca29cb508 am: 27752635e9
am: fcb452e602

Change-Id: Ia2251c04295adfcb4f105abedc25aa19a2c20efc

7 years agoMerge "Expand whitelist" am: eca29cb508
Paul Lawrence [Fri, 26 May 2017 01:10:39 +0000 (01:10 +0000)]
Merge "Expand whitelist" am: eca29cb508
am: 27752635e9

Change-Id: I6669f8bb0820f7ba51157ac32a0eb4326b1c963e

7 years agoMerge "Expand whitelist"
Paul Lawrence [Fri, 26 May 2017 01:08:39 +0000 (01:08 +0000)]
Merge "Expand whitelist"
am: eca29cb508

Change-Id: Ic673b3fcaca1bb311da4aa23b8c8f2e24598d4f6

7 years agoMerge "Expand whitelist"
Treehugger Robot [Fri, 26 May 2017 01:01:54 +0000 (01:01 +0000)]
Merge "Expand whitelist"

7 years agoMerge "Update malloc debug documentation." am: a559cff654 am: b597371036 am: f2de106e9c
Christopher Ferris [Fri, 26 May 2017 00:48:40 +0000 (00:48 +0000)]
Merge "Update malloc debug documentation." am: a559cff654 am: b597371036 am: f2de106e9c
am: 9106fbfe0b

Change-Id: I028fb6609d9aec60d839e816a444891e15f6b6f5

7 years agoMerge "Update malloc debug documentation." am: a559cff654 am: b597371036
Christopher Ferris [Fri, 26 May 2017 00:47:07 +0000 (00:47 +0000)]
Merge "Update malloc debug documentation." am: a559cff654 am: b597371036
am: f2de106e9c

Change-Id: Iac5f96696f1b126254cb9bbe381b1c34409801a1

7 years agoMerge "Update malloc debug documentation." am: a559cff654
Christopher Ferris [Fri, 26 May 2017 00:43:07 +0000 (00:43 +0000)]
Merge "Update malloc debug documentation." am: a559cff654
am: b597371036

Change-Id: I3867e2b66f2062d061f9e34e6ca1b75f17823319

7 years agoMerge "Update malloc debug documentation."
Christopher Ferris [Fri, 26 May 2017 00:41:07 +0000 (00:41 +0000)]
Merge "Update malloc debug documentation."
am: a559cff654

Change-Id: I9efbff08ce65d3c973a588065841b99f1faac17a

7 years agoMerge "Update malloc debug documentation."
Christopher Ferris [Fri, 26 May 2017 00:29:59 +0000 (00:29 +0000)]
Merge "Update malloc debug documentation."

7 years agoUpdate malloc debug documentation.
Christopher Ferris [Thu, 25 May 2017 02:04:33 +0000 (19:04 -0700)]
Update malloc debug documentation.

Test: NA
Change-Id: I8ab73bfc28c7a673efb5b0cec6067989153f092a

7 years agoExpand whitelist
Paul Lawrence [Thu, 25 May 2017 21:15:23 +0000 (14:15 -0700)]
Expand whitelist

Bug: 37769298
Test: Boots. Cannot test app behavior without account
Change-Id: Iebb7616f100368bf2e702ec51f637df1f3727885

7 years agoMerge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d am:...
Elliott Hughes [Thu, 25 May 2017 23:22:01 +0000 (23:22 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d am: fd387e7d0a am: 13db96bbeb
am: 9ca718f941

Change-Id: I7aa2c23b2c05c68fdeafcf9fe0445255469806f4

7 years agoMerge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d am:...
Elliott Hughes [Thu, 25 May 2017 23:17:30 +0000 (23:17 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d am: fd387e7d0a
am: 13db96bbeb

Change-Id: Ic7d28cc8160cb5abc03ed2875f1fab73d370a8f5

7 years agoMerge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d
Elliott Hughes [Thu, 25 May 2017 23:08:00 +0000 (23:08 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am: 025fb33c9d
am: fd387e7d0a

Change-Id: Idcf8c0db2ca3c1fe0cd5cd9ea5148fe6598b2c4b

7 years agoMerge "Remove the repetitive warnings from the uapi headers."
Elliott Hughes [Thu, 25 May 2017 23:03:00 +0000 (23:03 +0000)]
Merge "Remove the repetitive warnings from the uapi headers."
am: 025fb33c9d

Change-Id: I98bb1dd996bd331948d0e2ec3b2acf17c2d3f4c3

7 years agoMerge "Remove the repetitive warnings from the uapi headers."
Treehugger Robot [Thu, 25 May 2017 22:50:05 +0000 (22:50 +0000)]
Merge "Remove the repetitive warnings from the uapi headers."

7 years agoRelax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test
Dimitry Ivanov [Thu, 25 May 2017 21:02:03 +0000 (14:02 -0700)]
Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test

The number of available physical pages is not constant and can
potentially change between calls to get_avphys_pages and
sysconf(_SC_AVPHYS_PAGES) calls.

Relax the assert to check that sconf(_SC_AVPHYS_PAGES) <= phys_pages.

Bug: http://b/31502852
Test: build and run bionic-unit-tests
Change-Id: Ibf8873d2151d93239391d2638dfbf055b70cde3a

7 years agoRemove the repetitive warnings from the uapi headers.
Elliott Hughes [Thu, 25 May 2017 20:48:01 +0000 (13:48 -0700)]
Remove the repetitive warnings from the uapi headers.

Having

  WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS

every four lines made the headers harder to read, made the diffs much worse
each time we upgraded, and wasn't really providing any benefit. Before the
next uapi update, let's just stop doing this.

Bug: N/A
Test: builds, manually inspected files look right
Change-Id: Id7088cf750894c9d24950f3d53587fe3156c4f7d

7 years agoMerge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5 am: b9bf6...
Elliott Hughes [Thu, 25 May 2017 01:55:35 +0000 (01:55 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5 am: b9bf674cc8 am: 4107ee67e4
am: 634144cd08

Change-Id: I622a373fc62a44b5c2bc3885f4741351f38c21af

7 years agoMerge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5 am: b9bf6...
Elliott Hughes [Thu, 25 May 2017 01:52:38 +0000 (01:52 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5 am: b9bf674cc8
am: 4107ee67e4

Change-Id: I3f672f8532ec705c1ed650f57547b549cbfe4532

7 years agoMerge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5
Elliott Hughes [Thu, 25 May 2017 01:50:05 +0000 (01:50 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>." am: f58179cda5
am: b9bf674cc8

Change-Id: I5e24c7d7ce1f136353c64608f6b665be2f96c38d

7 years agoMerge "Stop including <sys/sysmacros.h> from <sys/types.h>."
Elliott Hughes [Thu, 25 May 2017 01:47:05 +0000 (01:47 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>."
am: f58179cda5

Change-Id: If03478f3cd2f6c0a8ac51a7ed0bc4b07d497430d

7 years agoMerge "Stop including <sys/sysmacros.h> from <sys/types.h>."
Treehugger Robot [Thu, 25 May 2017 01:43:05 +0000 (01:43 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>."

7 years agoMerge "Fix assembler warnings." am: 1143a62977 am: 119ffa4e29 am: 96137dc175
Christopher Ferris [Thu, 25 May 2017 01:41:04 +0000 (01:41 +0000)]
Merge "Fix assembler warnings." am: 1143a62977 am: 119ffa4e29 am: 96137dc175
am: c60a8cb40a

Change-Id: Idbfe582a5c63a5ffae2b6a465dec16f2e4313b3c

7 years agoMerge "Fix assembler warnings." am: 1143a62977 am: 119ffa4e29
Christopher Ferris [Thu, 25 May 2017 01:38:04 +0000 (01:38 +0000)]
Merge "Fix assembler warnings." am: 1143a62977 am: 119ffa4e29
am: 96137dc175

Change-Id: I775e1e0432347b36e6d996707d20b35a6663d841

7 years agoMerge "Fix assembler warnings." am: 1143a62977
Christopher Ferris [Thu, 25 May 2017 01:35:03 +0000 (01:35 +0000)]
Merge "Fix assembler warnings." am: 1143a62977
am: 119ffa4e29

Change-Id: I84a0c8f42d0d7ce71f00cb034347553789c19f9a

7 years agoMerge "Fix assembler warnings."
Christopher Ferris [Thu, 25 May 2017 01:32:03 +0000 (01:32 +0000)]
Merge "Fix assembler warnings."
am: 1143a62977

Change-Id: Iea37406fe631e0754499d6448773f1e7a010af86