Commit graph

30141 commits

Author SHA1 Message Date
Elliott Hughes
bab9cfd99a Add trivial towlower/towupper benchmarks.
Currently 11ns for both ascii and unicode in 64-bit, 15ns for 32-bit.

Test: ran benchmarks
Change-Id: Ie810b324c855b52b66a96889a194bc5b5b55653f
2019-09-25 22:13:32 -07:00
Kiyoung Kim
2ba6a1eb4e Merge "Use generated linker config by default"
am: 34c0043fd8

Change-Id: I240b5d9356435705df574fa5f6c7beda31454f97
2019-09-25 21:14:49 -07:00
Kiyoung Kim
34c0043fd8 Merge "Use generated linker config by default" 2019-09-26 00:58:15 +00:00
Ryan Prichard
51fe8ac1d7 Merge "run-on-host fixes"
am: ef0adb1275

Change-Id: Ie4bb92b12050ae868521a30ff9b6bc8e52175235
2019-09-25 13:08:58 -07:00
Ryan Prichard
8cf02d08f0 Merge "Add benchmarks that run simple programs"
am: b10ac9e661

Change-Id: Ib191a5a7ca8341e00a5726a660c9ec8ad0930f7e
2019-09-25 13:08:00 -07:00
Ryan Prichard
ef0adb1275 Merge "run-on-host fixes" 2019-09-25 19:48:35 +00:00
Ryan Prichard
b10ac9e661 Merge "Add benchmarks that run simple programs" 2019-09-25 19:48:21 +00:00
Dongwon Kang
d13749216f Merge "Remove libvorbisdec from greylist."
am: 45d2a09c95

Change-Id: I75a188353e716ce20df73a016281c76ecc554601
2019-09-25 12:00:27 -07:00
Dongwon Kang
45d2a09c95 Merge "Remove libvorbisdec from greylist." 2019-09-25 18:50:11 +00:00
Evgeny Eltsin
ab93b21b66 Merge "Make more pthread functions weak for native bridge"
am: d481848e4d

Change-Id: I7cf572ab1ea38829788d8676e332dae21d4007de
2019-09-25 10:57:52 -07:00
Treehugger Robot
d481848e4d Merge "Make more pthread functions weak for native bridge" 2019-09-25 17:44:22 +00:00
Evgeny Eltsin
8a18af52d9 Make more pthread functions weak for native bridge
These are using __pthread_internal_*.

Test: run bionic-unit-tests on cuttlefish
Change-Id: Idbb2503f03bd9f1f2a20fced34b734f573c1c0ad
2019-09-25 16:55:47 +02:00
Ryan Prichard
aa85ac2b08 Add benchmarks that run simple programs
Specifically, test the wall-clock time for running:
 * a C program that does nothing (i.e. no STL)
 * a C++ program that does nothing
 * a statically-linked C++ program
 * toybox true (in /system/bin and /vendor/bin)
 * mksh -c true (in /system/bin and /vendor/bin)

Test: bionic-spawn-benchmarks
Change-Id: I961850ec90004cac83088feab5783f4f27768be1
2019-09-25 09:35:43 +00:00
Dongwon Kang
b2a1c11c77 Remove libvorbisdec from greylist.
Test: build and boot. Checked libvorbisdec.so is not in /system/lib[64]
Bug: 141257741
Change-Id: Id9d9f691d5e5fa089a9d98a1be49754c8355202f
2019-09-24 18:55:44 -07:00
Ryan Prichard
3cfb89d451 run-on-host fixes
* Fix the path to bionic-benchmarks-glibc

 * Add symlinks for the toybox symlink commands. Each symlink bypasses the
   intermediate symlink in ${OUT}/system/bin and points to the final
   toybox binary. Suppress a bunch of warnings by skipping symlinks for
   non-existent files.

   The new spawn benchmarks try to run /system/bin/true. (They also try to
   run /vendor/bin/true and print an error.)

 * Quote "$@"

 * Use soong_ui.bash --dumpvars-mode to set a bunch of variables, rather
   than get_build_var, which invokes Soong once per variable. This reduces
   the "build/run-on-host.sh" runtime from 4s to 1.3s.

 * build/run-on-host.sh isn't executable and is only useful when it's
   sourced into another shell, so remove its shebang to reduce confusion.

Bug: none
Test: \
  . build/envsetup.sh
  lunch aosp_x86_64-userdebug
  . bionic/build/run-on-host.sh
  prepare MODULES-IN-bionic MODULES-IN-external-toybox
  /system/bin/true

Change-Id: I59e9a6aca77d35b16bdf51759c5fc7e725bfc67c
2019-09-24 15:36:31 -07:00
Christopher Ferris
4bd1f74f8b Merge "Revert "Temporarily disable some clock_getres tests.""
am: f97dcc15e8

Change-Id: I91655acf2bde0b3e3eab1e0d2ee291084efcfe61
2019-09-24 12:45:45 -07:00
Christopher Ferris
f97dcc15e8 Merge "Revert "Temporarily disable some clock_getres tests."" 2019-09-24 19:19:28 +00:00
Christopher Ferris
a9dfe1c352 Revert "Temporarily disable some clock_getres tests."
This reverts commit 8eba2a59ac.

Reason for revert: The kernel update has been reverted.

Change-Id: I21d9ac3c319b8c6e8546a0b40c5646c5610cc8c5
2019-09-24 16:20:17 +00:00
Christopher Ferris
a4f5db67ab Merge "Temporarily disable some clock_getres tests."
am: 849f0db7ca

Change-Id: Ia002ff900640f0ff6fde67829eac77cfa2221fc0
2019-09-24 07:23:57 -07:00
Christopher Ferris
849f0db7ca Merge "Temporarily disable some clock_getres tests." 2019-09-24 14:12:13 +00:00
Christopher Ferris
387e8bf4e3 Merge "Stop executing if skip occurs."
am: 7c852064bb

Change-Id: Ida6b9d6211619203fc8c9a3f79a88d18e033e74a
2019-09-23 21:26:41 -07:00
Christopher Ferris
8eba2a59ac Temporarily disable some clock_getres tests.
A kernel update broke three clock_getres tests, so disable
them while the kernel is fixed.

Bug: 141515847

Test: All tests pass on cuttlefish.
Change-Id: I7db789b2b8ba0bc5f8b13bb06e85711031735925
2019-09-23 18:44:22 -07:00
Christopher Ferris
7c852064bb Merge "Stop executing if skip occurs." 2019-09-24 01:14:15 +00:00
Christopher Ferris
103b998a52 Stop executing if skip occurs.
Bug: 141358530

Test: Forced a skip and verified it registers as a skip.
Change-Id: I9915c67ebae4389a26f28e16375ad4a41f3e4837
2019-09-23 09:41:13 -07:00
Kiyoung Kim
89b9528445 Use generated linker config by default
Use generated linker config by default, but with some back up plan
(sys.linker.use_generated_config property). Linker config generator
still does not support non-treblelized devices and vndk-lite, so these
cases should be handled later.

Bug: 138920271
Test: m -j && atest passed
Test: Tested from cuttlefish
Change-Id: I39e9d089a82f9409eccdcaa4fb26660caf3f5779
2019-09-23 14:25:40 +09:00
George Burgess IV
3d987e9042 Merge "fortify: remove pragma diagnostic error from tests"
am: 14d5c12ed6

Change-Id: I98b676f22c717c2ad4e2fdb8911bc6d6a5843cfe
2019-09-20 17:10:16 -07:00
Treehugger Robot
14d5c12ed6 Merge "fortify: remove pragma diagnostic error from tests" 2019-09-20 23:49:33 +00:00
George Burgess IV
8a4414ef9c fortify: remove pragma diagnostic error from tests
This was necessary because we weren't doing -Werror=fortify-source
everywhere. As of I2715ea411ef067f801534dab4d306fef5431f290, we should
be doing this.

Bug: 131861088
Test: mma
Change-Id: I00d499938ae24c3870760470576d6be603fbecd1
2019-09-19 15:23:45 -07:00
Elliott Hughes
358edf570c Merge "Remove global seccomp list."
am: 1db8fdb76e

Change-Id: I8d70634a449b42985de9549cd970c5816ea19de9
2019-09-18 11:26:33 -07:00
Elliott Hughes
c7bb60e43f Merge "ifuncs: start sharing."
am: fa43309a59

Change-Id: Iea4f6b84a360f6a669b32fd2550cf214f0695ac8
2019-09-18 11:26:07 -07:00
Elliott Hughes
1db8fdb76e Merge "Remove global seccomp list." 2019-09-18 18:10:13 +00:00
Elliott Hughes
fa43309a59 Merge "ifuncs: start sharing." 2019-09-18 18:01:54 +00:00
Elliott Hughes
68ce7bcf33 Merge "libm: track arm-optimized-routines changes."
am: 252eccfc84

Change-Id: I10357881ac8eb2a65b712df0f114d3a2ddf704eb
2019-09-18 05:14:02 -07:00
Treehugger Robot
252eccfc84 Merge "libm: track arm-optimized-routines changes." 2019-09-18 11:57:37 +00:00
Elliott Hughes
9e175f384d Merge "Remove bionicbb."
am: e2075ee6d1

Change-Id: I70b7c293dceb912343797b8a6e7d3e44527b1496
2019-09-18 00:46:19 -07:00
Treehugger Robot
e2075ee6d1 Merge "Remove bionicbb." 2019-09-18 07:36:52 +00:00
Elliott Hughes
5bd4f335a5 Remove bionicbb.
Turned down years ago, and we can get it from the history if we ever
need it again...

Test: N/A
Change-Id: I6923bd4cbc68139e0b89149280864b9da422013d
2019-09-17 16:41:20 -07:00
Elliott Hughes
ae03b12925 Remove global seccomp list.
Never used, and incompatible with having bionic in a mainline module.

Test: builds
Change-Id: If377f66cc105fd3a1ec4d9c92330fa6a2d2c145c
2019-09-17 16:37:05 -07:00
George Burgess IV
41e6d0ca78 Merge "fortify: account for new clang diagnostics"
am: e6c3f0628c

Change-Id: I3ba482efe59627720f4793e44dc9fc7f87856bcf
2019-09-17 13:28:52 -07:00
Treehugger Robot
e6c3f0628c Merge "fortify: account for new clang diagnostics" 2019-09-17 20:11:51 +00:00
Elliott Hughes
3984a99742 libm: track arm-optimized-routines changes.
Test: builds
Change-Id: I194ba29a2cabbf2fb2ef5c14ac6ad6252b43c76d
2019-09-17 13:08:02 -07:00
Elliott Hughes
a4c7876c01 ifuncs: start sharing.
We're going to have to add ifuncs to libm, and there will be some SVE
ones for arm64 soon too, so let's start sharing the absolute minimum...

Test: builds
Change-Id: Idbb9dd9477291ed3c15dc3902f65e593b766dfb9
2019-09-17 12:44:41 -07:00
Christopher Ferris
e32153d86f Merge "Make bionic_malloc.h a platform header."
am: 807acefbd2

Change-Id: I9b69f28fb2bcbe480fac7aa361284914c9e50048
2019-09-17 09:50:37 -07:00
Christopher Ferris
807acefbd2 Merge "Make bionic_malloc.h a platform header." 2019-09-17 16:33:25 +00:00
George Burgess IV
36926f4ca8 fortify: account for new clang diagnostics
Clang recently grew its own diagnostics for memcpy and such. These are
generally higher-quality than what we can do with diagnose_if, since
clang is happy to include e.g., sizes of things per-callsite. Move to
those instead where applicable.

Bug: 131861088, 123644155
Test: blueline internal-master checkbuild; treehugger
Change-Id: I701f5a8b247ba2948ca47fdc60ff5198b564c03e
2019-09-16 12:48:04 -07:00
Christopher Ferris
2b0638ef29 Make bionic_malloc.h a platform header.
Instead of having platform directories directly include the
private header, create a platform header directory and export it.

Bug: 130763340

Test: Builds.
Change-Id: Ie0f092b3fe077a3de8b90266c0b28bfbc20d0dfa
Merged-In: Ie0f092b3fe077a3de8b90266c0b28bfbc20d0dfa
(cherry picked from commit 8f582ef2f8)
2019-09-16 12:27:33 -07:00
Ryan Prichard
0be0ee1cb6 Merge "crtbegin: replace TPREL with R_*_NONE relocs"
am: 1ffee0cfc1

Change-Id: I7fe240bddea313813d1de5cd50e94cb3c7050ed2
2019-09-10 12:49:55 -07:00
Ryan Prichard
1ffee0cfc1 Merge "crtbegin: replace TPREL with R_*_NONE relocs" 2019-09-10 19:21:36 +00:00
Xin Li
92786bce3e Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
No content change.

Bug: 135460123
Change-Id: I6c63705611bac56c270318252a52b63b6bde02fb
Merged-In: I2f0d11636620f686f4cbd98ce1d6387fa93377c9
2019-09-08 12:42:27 -07:00
Xin Li
6cdd29bb61 [automerger skipped] Merge "DO NOT MERGE - Merge Android 10 into master"
am: df0daeb1ee -s ours
am skip reason: subject contains skip directive

Change-Id: I2f0d11636620f686f4cbd98ce1d6387fa93377c9
2019-09-05 13:45:36 -07:00