OSDN Git Service

android-x86/bionic.git
9 years agoam 0edffb85: am a2e5d98b: am 2a8c929a: Merge "Implement __fsetlocking."
Elliott Hughes [Thu, 22 Jan 2015 01:59:21 +0000 (01:59 +0000)]
am 0edffb85: am a2e5d98b: am 2a8c929a: Merge "Implement __fsetlocking."

* commit '0edffb85fa40987c00dd078111c6218efd5aded7':
  Implement __fsetlocking.

9 years agoam 0a45cc25: am 0930323e: am 8476b8ed: Merge "Contact proper debuggerd when crashing."
Christopher Ferris [Thu, 22 Jan 2015 01:59:21 +0000 (01:59 +0000)]
am 0a45cc25: am 0930323e: am 8476b8ed: Merge "Contact proper debuggerd when crashing."

* commit '0a45cc25566049860f3f38ab174569964af6ac6a':
  Contact proper debuggerd when crashing.

9 years agoam f0de7d6c: am a6e2e070: am fbc70d38: Merge "Report 404 errors from Gerrit and conti...
Dan Albert [Thu, 22 Jan 2015 01:59:20 +0000 (01:59 +0000)]
am f0de7d6c: am a6e2e070: am fbc70d38: Merge "Report 404 errors from Gerrit and continue."

* commit 'f0de7d6c6973b0c2e268fac4373bfd5765b49dc1':
  Report 404 errors from Gerrit and continue.

9 years agoam a2e5d98b: am 2a8c929a: Merge "Implement __fsetlocking."
Elliott Hughes [Thu, 22 Jan 2015 00:13:10 +0000 (00:13 +0000)]
am a2e5d98b: am 2a8c929a: Merge "Implement __fsetlocking."

* commit 'a2e5d98b641bef4c5611f6aba5defff74abcad93':
  Implement __fsetlocking.

9 years agoam 0930323e: am 8476b8ed: Merge "Contact proper debuggerd when crashing."
Christopher Ferris [Thu, 22 Jan 2015 00:13:09 +0000 (00:13 +0000)]
am 0930323e: am 8476b8ed: Merge "Contact proper debuggerd when crashing."

* commit '0930323e98e88157b567dab3b1c75618229dd281':
  Contact proper debuggerd when crashing.

9 years agoam a6e2e070: am fbc70d38: Merge "Report 404 errors from Gerrit and continue."
Dan Albert [Thu, 22 Jan 2015 00:13:08 +0000 (00:13 +0000)]
am a6e2e070: am fbc70d38: Merge "Report 404 errors from Gerrit and continue."

* commit 'a6e2e070f2add9869e2160e3c0ca4454cac7bb7b':
  Report 404 errors from Gerrit and continue.

9 years agoam 2a8c929a: Merge "Implement __fsetlocking."
Elliott Hughes [Wed, 21 Jan 2015 22:58:17 +0000 (22:58 +0000)]
am 2a8c929a: Merge "Implement __fsetlocking."

* commit '2a8c929aaf8d34d2b6e89ed9c8b6da163316143e':
  Implement __fsetlocking.

9 years agoam 8476b8ed: Merge "Contact proper debuggerd when crashing."
Christopher Ferris [Wed, 21 Jan 2015 22:58:11 +0000 (22:58 +0000)]
am 8476b8ed: Merge "Contact proper debuggerd when crashing."

* commit '8476b8ed9e290d79cd00e7801c505268f0e8ec15':
  Contact proper debuggerd when crashing.

9 years agoam fbc70d38: Merge "Report 404 errors from Gerrit and continue."
Dan Albert [Wed, 21 Jan 2015 22:58:07 +0000 (22:58 +0000)]
am fbc70d38: Merge "Report 404 errors from Gerrit and continue."

* commit 'fbc70d3899a58e6aff7d3e94803fcdc80629de5a':
  Report 404 errors from Gerrit and continue.

9 years agoMerge "Implement __fsetlocking."
Elliott Hughes [Wed, 21 Jan 2015 19:42:40 +0000 (19:42 +0000)]
Merge "Implement __fsetlocking."

9 years agoMerge "Contact proper debuggerd when crashing."
Christopher Ferris [Wed, 21 Jan 2015 18:39:59 +0000 (18:39 +0000)]
Merge "Contact proper debuggerd when crashing."

9 years agoImplement __fsetlocking.
Elliott Hughes [Wed, 21 Jan 2015 02:09:05 +0000 (18:09 -0800)]
Implement __fsetlocking.

The old __isthreaded hack was never very useful on Android because all user
code runs in a VM where there are lots of threads running. But __fsetlocking
lets a caller say "I'll worry about the locking for this FILE*", which is
useful for the normal case where you don't share a FILE* between threads
so you don't need any locking.

Bug: 17154740
Bug: 18593728
Change-Id: I2a8dddc29d3edff39a3d7d793387f2253608a68d

9 years agoMerge "Report 404 errors from Gerrit and continue."
Dan Albert [Wed, 21 Jan 2015 18:25:39 +0000 (18:25 +0000)]
Merge "Report 404 errors from Gerrit and continue."

9 years agoReport 404 errors from Gerrit and continue.
Dan Albert [Wed, 21 Jan 2015 17:56:28 +0000 (09:56 -0800)]
Report 404 errors from Gerrit and continue.

Currently, we get a 404 from Gerrit in the event that two projects
have the same Change-Id. We should be able to handle this and actually
cherry-pick each change so we can check multi-project changes, but for
now just skip these changes.

Change-Id: I7bc63208998d58beec83b71b302450d9be3ea026

9 years agoam eb1ac69d: am 45bdcf89: am f3743584: Merge "Fix signed/unsigned comparison that...
Elliott Hughes [Wed, 21 Jan 2015 02:25:41 +0000 (02:25 +0000)]
am eb1ac69d: am 45bdcf89: am f3743584: Merge "Fix signed/unsigned comparison that was upsetting clang."

* commit 'eb1ac69d453c586192f1fff8bb8604f9c54a718e':
  Fix signed/unsigned comparison that was upsetting clang.

9 years agoam e574a70d: am c4f1cfc9: am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s...
Elliott Hughes [Wed, 21 Jan 2015 02:25:39 +0000 (02:25 +0000)]
am e574a70d: am c4f1cfc9: am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read/write functions."

* commit 'e574a70d1e3dca32893ded21ae043221a1f9882a':
  Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.

9 years agoam 6428c625: am 7d196768: am 927d8be7: Merge "Fix build error when XLOG is enabled"
Elliott Hughes [Wed, 21 Jan 2015 02:25:38 +0000 (02:25 +0000)]
am 6428c625: am 7d196768: am 927d8be7: Merge "Fix build error when XLOG is enabled"

* commit '6428c625e8012cbb7a367e900d2a9c31439c6ebf':
  Fix build error when XLOG is enabled

9 years agoam 822fe55e: am 06645218: am c053a428: Merge "Optimized fread."
Elliott Hughes [Wed, 21 Jan 2015 02:25:37 +0000 (02:25 +0000)]
am 822fe55e: am 06645218: am c053a428: Merge "Optimized fread."

* commit '822fe55ea982326c91df79ef2e8eeed4f8052d3a':
  Optimized fread.

9 years agoam 45bdcf89: am f3743584: Merge "Fix signed/unsigned comparison that was upsetting...
Elliott Hughes [Wed, 21 Jan 2015 02:21:59 +0000 (02:21 +0000)]
am 45bdcf89: am f3743584: Merge "Fix signed/unsigned comparison that was upsetting clang."

* commit '45bdcf895b7f4cd6b4741fe33bc7a56d40fb220a':
  Fix signed/unsigned comparison that was upsetting clang.

9 years agoam c4f1cfc9: am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read...
Elliott Hughes [Wed, 21 Jan 2015 02:21:58 +0000 (02:21 +0000)]
am c4f1cfc9: am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read/write functions."

* commit 'c4f1cfc9fc5ba053525cd155d50fae8b67df0392':
  Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.

9 years agoam 7d196768: am 927d8be7: Merge "Fix build error when XLOG is enabled"
Elliott Hughes [Wed, 21 Jan 2015 02:21:57 +0000 (02:21 +0000)]
am 7d196768: am 927d8be7: Merge "Fix build error when XLOG is enabled"

* commit '7d196768029f36b0e3fa57ba747ce58ef2b1c9d6':
  Fix build error when XLOG is enabled

9 years agoam 06645218: am c053a428: Merge "Optimized fread."
Elliott Hughes [Wed, 21 Jan 2015 02:21:56 +0000 (02:21 +0000)]
am 06645218: am c053a428: Merge "Optimized fread."

* commit '0664521893e88f2cd266306e707a832d9d1f94a2':
  Optimized fread.

9 years agoam f3743584: Merge "Fix signed/unsigned comparison that was upsetting clang."
Elliott Hughes [Wed, 21 Jan 2015 02:11:35 +0000 (02:11 +0000)]
am f3743584: Merge "Fix signed/unsigned comparison that was upsetting clang."

* commit 'f374358414812d3e5a45ba75a2b1926693924420':
  Fix signed/unsigned comparison that was upsetting clang.

9 years agoam a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read/write functions."
Elliott Hughes [Wed, 21 Jan 2015 02:11:34 +0000 (02:11 +0000)]
am a779719d: Merge "Add TEMP_FAILURE_RETRY to stdio\'s low-level read/write functions."

* commit 'a779719d628de5e504dac08d334bc576f3b7fb0a':
  Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.

9 years agoam 927d8be7: Merge "Fix build error when XLOG is enabled"
Elliott Hughes [Wed, 21 Jan 2015 02:11:33 +0000 (02:11 +0000)]
am 927d8be7: Merge "Fix build error when XLOG is enabled"

* commit '927d8be76d956fcda630e1088e9b89eb31be5146':
  Fix build error when XLOG is enabled

9 years agoam c053a428: Merge "Optimized fread."
Elliott Hughes [Wed, 21 Jan 2015 02:11:32 +0000 (02:11 +0000)]
am c053a428: Merge "Optimized fread."

* commit 'c053a42831165044cca0bb9eb220b8f5d27fdd18':
  Optimized fread.

9 years agoContact proper debuggerd when crashing.
Christopher Ferris [Mon, 19 Jan 2015 19:16:52 +0000 (11:16 -0800)]
Contact proper debuggerd when crashing.

Make the request structure match the new structure found in debuggerd
code.

On 64 bit systems, make sure that the 32 bit compiled linker is contacted.

Bug: https://code.google.com/p/android/issues/detail?id=97024
Change-Id: I675b8ff222fcf836b05de4e9b5976ff91ca929bf

9 years agoMerge "Fix signed/unsigned comparison that was upsetting clang."
Elliott Hughes [Wed, 21 Jan 2015 00:57:06 +0000 (00:57 +0000)]
Merge "Fix signed/unsigned comparison that was upsetting clang."

9 years agoFix signed/unsigned comparison that was upsetting clang.
Elliott Hughes [Wed, 21 Jan 2015 00:52:04 +0000 (16:52 -0800)]
Fix signed/unsigned comparison that was upsetting clang.

bionic/libc/stdio/fread.c:86:27: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Werror,-Wsign-compare]

Change-Id: Ia7e1e053e0cb13113e8f2eede820be013acbab82

9 years agoMerge "Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions."
Elliott Hughes [Wed, 21 Jan 2015 00:50:01 +0000 (00:50 +0000)]
Merge "Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions."

9 years agoAdd TEMP_FAILURE_RETRY to stdio's low-level read/write functions.
Elliott Hughes [Wed, 21 Jan 2015 00:18:32 +0000 (16:18 -0800)]
Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions.

This is correctness rather than performance, but found while investigating
performance.

Bug: 18593728
Change-Id: Idbdfed89d1931fcfae65db29d662108d4bbd9b65

9 years agoMerge "Fix build error when XLOG is enabled"
Elliott Hughes [Wed, 21 Jan 2015 00:13:27 +0000 (00:13 +0000)]
Merge "Fix build error when XLOG is enabled"

9 years agoFix build error when XLOG is enabled
Patrick Tjin [Wed, 21 Jan 2015 00:02:04 +0000 (16:02 -0800)]
Fix build error when XLOG is enabled

(cherrypick of 79a49c9857f3949fc13373eeb179f27b6ecdca81.)

Change-Id: I7bb44fd1fe3ef2ddfc115247f328eccfceeb5352
Signed-off-by: Patrick Tjin <pattjin@google.com>
9 years agoMerge "Optimized fread."
Elliott Hughes [Wed, 21 Jan 2015 00:11:30 +0000 (00:11 +0000)]
Merge "Optimized fread."

9 years agoMerge "Fix build error when XLOG is enabled"
Patrick Tjin [Wed, 21 Jan 2015 00:09:26 +0000 (00:09 +0000)]
Merge "Fix build error when XLOG is enabled"

9 years agoFix build error when XLOG is enabled
Patrick Tjin [Wed, 21 Jan 2015 00:02:04 +0000 (16:02 -0800)]
Fix build error when XLOG is enabled

Change-Id: I7bb44fd1fe3ef2ddfc115247f328eccfceeb5352
Signed-off-by: Patrick Tjin <pattjin@google.com>
9 years agoOptimized fread.
Elliott Hughes [Tue, 20 Jan 2015 19:23:50 +0000 (11:23 -0800)]
Optimized fread.

This makes us competitive with glibc for fully-buffered and unbuffered reads,
except in single-threaded situations where glibc avoids locking, but since
we're never really single-threaded anyway, that isn't a priority.

Bug: 18593728
Change-Id: Ib776bfba422ccf46209581fc0dc54f3567645b8f

9 years agoam 0d53dd80: am da307e7d: am d3d75c02: Merge "Remove testcase time printing in bionic...
Yabin Cui [Tue, 20 Jan 2015 23:54:42 +0000 (23:54 +0000)]
am 0d53dd80: am da307e7d: am d3d75c02: Merge "Remove testcase time printing in bionic-unit-tests."

* commit '0d53dd8081e618ca6891f33dae1045d3cd565010':
  Remove testcase time printing in bionic-unit-tests.

9 years agoam da307e7d: am d3d75c02: Merge "Remove testcase time printing in bionic-unit-tests."
Yabin Cui [Tue, 20 Jan 2015 23:48:37 +0000 (23:48 +0000)]
am da307e7d: am d3d75c02: Merge "Remove testcase time printing in bionic-unit-tests."

* commit 'da307e7d91559f32a15390b1ac48693ffb7def89':
  Remove testcase time printing in bionic-unit-tests.

9 years agoam d3d75c02: Merge "Remove testcase time printing in bionic-unit-tests."
Yabin Cui [Tue, 20 Jan 2015 23:43:15 +0000 (23:43 +0000)]
am d3d75c02: Merge "Remove testcase time printing in bionic-unit-tests."

* commit 'd3d75c029a9b768989d5370000788dca4032b97a':
  Remove testcase time printing in bionic-unit-tests.

9 years agoMerge "Remove testcase time printing in bionic-unit-tests."
Yabin Cui [Tue, 20 Jan 2015 23:38:34 +0000 (23:38 +0000)]
Merge "Remove testcase time printing in bionic-unit-tests."

9 years agoam e00eb27c: am 978e54a7: am 1c01c9f7: Merge "Add target libbionic_gtest_main for...
Yabin Cui [Tue, 20 Jan 2015 23:24:47 +0000 (23:24 +0000)]
am e00eb27c: am 978e54a7: am 1c01c9f7: Merge "Add target libbionic_gtest_main for cts test."

* commit 'e00eb27c651d6de62cb4ee2ece73182f6dff5de5':
  Add target libbionic_gtest_main for cts test.

9 years agoam 978e54a7: am 1c01c9f7: Merge "Add target libbionic_gtest_main for cts test."
Yabin Cui [Tue, 20 Jan 2015 23:15:21 +0000 (23:15 +0000)]
am 978e54a7: am 1c01c9f7: Merge "Add target libbionic_gtest_main for cts test."

* commit '978e54a7884211302b230685d73c8e1d9790a0ae':
  Add target libbionic_gtest_main for cts test.

9 years agoam 1c01c9f7: Merge "Add target libbionic_gtest_main for cts test."
Yabin Cui [Tue, 20 Jan 2015 22:51:49 +0000 (22:51 +0000)]
am 1c01c9f7: Merge "Add target libbionic_gtest_main for cts test."

* commit '1c01c9f752c07d758349356c18563261b8216da9':
  Add target libbionic_gtest_main for cts test.

9 years agoRemove testcase time printing in bionic-unit-tests.
Yabin Cui [Tue, 20 Jan 2015 22:46:03 +0000 (14:46 -0800)]
Remove testcase time printing in bionic-unit-tests.

Bug: 19075565
Change-Id: Icccb60657a2985e96abb1703673f0ebe2199586a

9 years agoMerge "Add target libbionic_gtest_main for cts test."
Yabin Cui [Tue, 20 Jan 2015 22:44:01 +0000 (22:44 +0000)]
Merge "Add target libbionic_gtest_main for cts test."

9 years agoAdd target libbionic_gtest_main for cts test.
Yabin Cui [Tue, 20 Jan 2015 20:02:21 +0000 (12:02 -0800)]
Add target libbionic_gtest_main for cts test.

Bug: 17589740
Change-Id: I37f2d3fe72870b9dc867407fa1619c9a6fcd5cbb

9 years agoam 717bb49e: am 3873c9df: am 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."
Elliott Hughes [Tue, 20 Jan 2015 18:41:40 +0000 (18:41 +0000)]
am 717bb49e: am 3873c9df: am 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."

* commit '717bb49ec3d93c1f4ab3782227d4747e758294a6':
  Improve <stdio_ext.h> testing.

9 years agoam 3873c9df: am 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."
Elliott Hughes [Tue, 20 Jan 2015 18:34:28 +0000 (18:34 +0000)]
am 3873c9df: am 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."

* commit '3873c9dfe675e05fdda8ebfc11fdee0ee810b1b3':
  Improve <stdio_ext.h> testing.

9 years agoam 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."
Elliott Hughes [Tue, 20 Jan 2015 18:27:47 +0000 (18:27 +0000)]
am 1d7b3f3c: Merge "Improve <stdio_ext.h> testing."

* commit '1d7b3f3ccc4f2883cbc0fe677dff888c56c18996':
  Improve <stdio_ext.h> testing.

9 years agoMerge "Improve <stdio_ext.h> testing."
Elliott Hughes [Tue, 20 Jan 2015 18:07:36 +0000 (18:07 +0000)]
Merge "Improve <stdio_ext.h> testing."

9 years agoam 4e7078de: am 3ef0c58d: am 3bbf4639: Merge "Add a benchmark for using stdio to...
Elliott Hughes [Sat, 17 Jan 2015 02:11:11 +0000 (02:11 +0000)]
am 4e7078de: am 3ef0c58d: am 3bbf4639: Merge "Add a benchmark for using stdio to read a file in /proc."

* commit '4e7078de2cc4925616fab1ee36eab51fafa571e4':
  Add a benchmark for using stdio to read a file in /proc.

9 years agoam 3ef0c58d: am 3bbf4639: Merge "Add a benchmark for using stdio to read a file in...
Elliott Hughes [Sat, 17 Jan 2015 02:05:59 +0000 (02:05 +0000)]
am 3ef0c58d: am 3bbf4639: Merge "Add a benchmark for using stdio to read a file in /proc."

* commit '3ef0c58db6ed50b6ae0f8560230f0791b9e51415':
  Add a benchmark for using stdio to read a file in /proc.

9 years agoam 3bbf4639: Merge "Add a benchmark for using stdio to read a file in /proc."
Elliott Hughes [Sat, 17 Jan 2015 01:42:16 +0000 (01:42 +0000)]
am 3bbf4639: Merge "Add a benchmark for using stdio to read a file in /proc."

* commit '3bbf4639080bc2f42435b4a7fd400c44aab7fd70':
  Add a benchmark for using stdio to read a file in /proc.

9 years agoMerge "Add a benchmark for using stdio to read a file in /proc."
Elliott Hughes [Sat, 17 Jan 2015 01:24:43 +0000 (01:24 +0000)]
Merge "Add a benchmark for using stdio to read a file in /proc."

9 years agoAdd a benchmark for using stdio to read a file in /proc.
Elliott Hughes [Sat, 17 Jan 2015 01:08:31 +0000 (17:08 -0800)]
Add a benchmark for using stdio to read a file in /proc.

Change-Id: I12517aae19e36b7c022a11e8807aece61bb0cb9c

9 years agoImprove <stdio_ext.h> testing.
Elliott Hughes [Sat, 17 Jan 2015 00:40:55 +0000 (16:40 -0800)]
Improve <stdio_ext.h> testing.

I almost fixed a non-bug. Add a test to prevent me from doing that.

Change-Id: I4a1dc13e603a7a377bdaee2e78132015087f7107

9 years agoam d3509e4a: am 52e9fe53: am 481cf21e: Merge "Use SI prefixes throughout the benchmar...
Elliott Hughes [Sat, 17 Jan 2015 00:38:18 +0000 (00:38 +0000)]
am d3509e4a: am 52e9fe53: am 481cf21e: Merge "Use SI prefixes throughout the benchmark output."

* commit 'd3509e4ad0785fceedc5d3575999b946f0175a5c':
  Use SI prefixes throughout the benchmark output.

9 years agoam 52e9fe53: am 481cf21e: Merge "Use SI prefixes throughout the benchmark output."
Elliott Hughes [Sat, 17 Jan 2015 00:31:45 +0000 (00:31 +0000)]
am 52e9fe53: am 481cf21e: Merge "Use SI prefixes throughout the benchmark output."

* commit '52e9fe53bb73a399449d2b3ac47d243ce0ba5b3f':
  Use SI prefixes throughout the benchmark output.

9 years agoam 481cf21e: Merge "Use SI prefixes throughout the benchmark output."
Elliott Hughes [Sat, 17 Jan 2015 00:27:58 +0000 (00:27 +0000)]
am 481cf21e: Merge "Use SI prefixes throughout the benchmark output."

* commit '481cf21e08a6cbbc686487744f1cb07b6d3f400e':
  Use SI prefixes throughout the benchmark output.

9 years agoMerge "Use SI prefixes throughout the benchmark output."
Elliott Hughes [Sat, 17 Jan 2015 00:23:34 +0000 (00:23 +0000)]
Merge "Use SI prefixes throughout the benchmark output."

9 years agoam 39b71a98: am 58bbe437: am cfe7e75f: Merge "Make sys_resource test more robust."
Yabin Cui [Fri, 16 Jan 2015 22:10:34 +0000 (22:10 +0000)]
am 39b71a98: am 58bbe437: am cfe7e75f: Merge "Make sys_resource test more robust."

* commit '39b71a98926a76511d6425c7aefab8997dbb553a':
  Make sys_resource test more robust.

9 years agoam 58bbe437: am cfe7e75f: Merge "Make sys_resource test more robust."
Yabin Cui [Fri, 16 Jan 2015 22:03:55 +0000 (22:03 +0000)]
am 58bbe437: am cfe7e75f: Merge "Make sys_resource test more robust."

* commit '58bbe437ac1cf8f74780235a421d844dfe0cc4dc':
  Make sys_resource test more robust.

9 years agoam cfe7e75f: Merge "Make sys_resource test more robust."
Yabin Cui [Fri, 16 Jan 2015 21:57:33 +0000 (21:57 +0000)]
am cfe7e75f: Merge "Make sys_resource test more robust."

* commit 'cfe7e75fc13afb987d86aaaee305040f3369f797':
  Make sys_resource test more robust.

9 years agoMerge "Make sys_resource test more robust."
Yabin Cui [Fri, 16 Jan 2015 21:52:11 +0000 (21:52 +0000)]
Merge "Make sys_resource test more robust."

9 years agoMake sys_resource test more robust.
Yabin Cui [Mon, 5 Jan 2015 19:06:30 +0000 (11:06 -0800)]
Make sys_resource test more robust.

"ulimit -c xxx" command may run before bionic-unit-tests.
Make sure sys_resource test fails gently in that case.

Change-Id: Ic3b5ed8b20acba56df8c5ef082c88e5050e761aa

9 years agoUse SI prefixes throughout the benchmark output.
Elliott Hughes [Fri, 16 Jan 2015 21:11:25 +0000 (13:11 -0800)]
Use SI prefixes throughout the benchmark output.

Also switch throughput to GiB/s. I did play with using the new code,
but having consistent units for all results seemed easier to use
anyway (and doesn't require extra code).

Change-Id: I466fd573373bd05619e6f6e6d3dedd7dae0d9362

9 years agoam 7c385167: am e8d620d5: am ffad8df6: Merge "Use a vector of benchmarks and new...
Elliott Hughes [Fri, 16 Jan 2015 06:14:37 +0000 (06:14 +0000)]
am 7c385167: am e8d620d5: am ffad8df6: Merge "Use a vector of benchmarks and new for loop syntax."

* commit '7c385167242373859414434ca7d3354a0b88b9c7':
  Use a vector of benchmarks and new for loop syntax.

9 years agoam e8d620d5: am ffad8df6: Merge "Use a vector of benchmarks and new for loop syntax."
Elliott Hughes [Fri, 16 Jan 2015 06:07:41 +0000 (06:07 +0000)]
am e8d620d5: am ffad8df6: Merge "Use a vector of benchmarks and new for loop syntax."

* commit 'e8d620d5a2716cfc16b40c82016ae9d4b84a181c':
  Use a vector of benchmarks and new for loop syntax.

9 years agoam ffad8df6: Merge "Use a vector of benchmarks and new for loop syntax."
Elliott Hughes [Fri, 16 Jan 2015 03:27:04 +0000 (03:27 +0000)]
am ffad8df6: Merge "Use a vector of benchmarks and new for loop syntax."

* commit 'ffad8df672363bad43528898cc47aa2ed3d08c66':
  Use a vector of benchmarks and new for loop syntax.

9 years agoMerge "Use a vector of benchmarks and new for loop syntax."
Elliott Hughes [Fri, 16 Jan 2015 03:22:40 +0000 (03:22 +0000)]
Merge "Use a vector of benchmarks and new for loop syntax."

9 years agoUse a vector of benchmarks and new for loop syntax.
Elliott Hughes [Fri, 16 Jan 2015 01:10:42 +0000 (17:10 -0800)]
Use a vector of benchmarks and new for loop syntax.

Change-Id: Ib1f1250e7786770083ed6a478677a893b2075a93

9 years agoam 927875a7: am cb41ce5f: am 594db0f1: Merge "bionic benchmarks: limit benchmark...
Elliott Hughes [Fri, 16 Jan 2015 01:00:48 +0000 (01:00 +0000)]
am 927875a7: am cb41ce5f: am 594db0f1: Merge "bionic benchmarks: limit benchmark run time to 1s real time"

* commit '927875a7d01ef252539fa742612327f60c9f4fe8':
  bionic benchmarks: limit benchmark run time to 1s real time

9 years agoam 29bfcf2a: am f1417093: am 3159972a: Merge "bionic benchmarks: export benchmark...
Elliott Hughes [Fri, 16 Jan 2015 00:56:41 +0000 (00:56 +0000)]
am 29bfcf2a: am f1417093: am 3159972a: Merge "bionic benchmarks: export benchmark library"

* commit '29bfcf2a032eb61a3d033b4cf245321a868390dc':
  bionic benchmarks: export benchmark library

9 years agoam cb41ce5f: am 594db0f1: Merge "bionic benchmarks: limit benchmark run time to 1s...
Elliott Hughes [Fri, 16 Jan 2015 00:54:14 +0000 (00:54 +0000)]
am cb41ce5f: am 594db0f1: Merge "bionic benchmarks: limit benchmark run time to 1s real time"

* commit 'cb41ce5f4e942dce66defb76f25b2e7d61f8ab8d':
  bionic benchmarks: limit benchmark run time to 1s real time

9 years agoam 594db0f1: Merge "bionic benchmarks: limit benchmark run time to 1s real time"
Elliott Hughes [Fri, 16 Jan 2015 00:48:36 +0000 (00:48 +0000)]
am 594db0f1: Merge "bionic benchmarks: limit benchmark run time to 1s real time"

* commit '594db0f1b235306d2687395564745888348df808':
  bionic benchmarks: limit benchmark run time to 1s real time

9 years agoam f1417093: am 3159972a: Merge "bionic benchmarks: export benchmark library"
Elliott Hughes [Fri, 16 Jan 2015 00:48:32 +0000 (00:48 +0000)]
am f1417093: am 3159972a: Merge "bionic benchmarks: export benchmark library"

* commit 'f14170937f19710cdedf4bc44f3c3712545648a2':
  bionic benchmarks: export benchmark library

9 years agoMerge "bionic benchmarks: limit benchmark run time to 1s real time"
Elliott Hughes [Fri, 16 Jan 2015 00:44:16 +0000 (00:44 +0000)]
Merge "bionic benchmarks: limit benchmark run time to 1s real time"

9 years agoam 3159972a: Merge "bionic benchmarks: export benchmark library"
Elliott Hughes [Fri, 16 Jan 2015 00:42:43 +0000 (00:42 +0000)]
am 3159972a: Merge "bionic benchmarks: export benchmark library"

* commit '3159972a80234f7a8e3903cefaeb7719a50f6279':
  bionic benchmarks: export benchmark library

9 years agobionic benchmarks: limit benchmark run time to 1s real time
Colin Cross [Thu, 28 Nov 2013 01:37:54 +0000 (17:37 -0800)]
bionic benchmarks: limit benchmark run time to 1s real time

The benchmark run loop tries to run until 1s of time has been
accumulated between StartBenchmarkTiming() and StopBenchmarkTiming().
If a majority of the time is spent stopped this can lead to
benchmarks running for very long periods of time.  This can easily
happen when benchmarking something that requires initialization or
cleanup on each iteration.

Modify the loop to run for 1s of real time instead of 1s of
benchmark time.  For existing benchmarks this shouldn't make much
of a difference.

Change-Id: Iaba8a13b4dfc4a5e2cd9992041c9173ea556f9cc

9 years agoMerge "bionic benchmarks: export benchmark library"
Elliott Hughes [Fri, 16 Jan 2015 00:36:19 +0000 (00:36 +0000)]
Merge "bionic benchmarks: export benchmark library"

9 years agobionic benchmarks: export benchmark library
Colin Cross [Fri, 15 Nov 2013 22:34:22 +0000 (14:34 -0800)]
bionic benchmarks: export benchmark library

Export libbenchmark for external projects to write benchmarks against.

Change-Id: I3b04a56a62ce517afc0d5e06dc8d28879ada3d30

9 years agoam b8679a84: am afb488a3: am 6fac2f68: Merge "Fix possible leak in pthread_detach."
Yabin Cui [Thu, 15 Jan 2015 22:17:47 +0000 (22:17 +0000)]
am b8679a84: am afb488a3: am 6fac2f68: Merge "Fix possible leak in pthread_detach."

* commit 'b8679a84dfc5f8ed628e7bd4772c72f76240d458':
  Fix possible leak in pthread_detach.

9 years agoam 5b143c54: am 4a538412: am deab11ac: Merge "Make bionic-unit-tests default run...
Yabin Cui [Thu, 15 Jan 2015 22:17:46 +0000 (22:17 +0000)]
am 5b143c54: am 4a538412: am deab11ac: Merge "Make bionic-unit-tests default run isolate mode."

* commit '5b143c547bf8a576e656ce7d5bbded0029c45cb2':
  Make bionic-unit-tests default run isolate mode.

9 years agoam 9a0641a0: am c16eafd5: am fcc6fd35: Merge "Refactoring: move mips reloc to separat...
Dmitriy Ivanov [Thu, 15 Jan 2015 22:17:21 +0000 (22:17 +0000)]
am 9a0641a0: am c16eafd5: am fcc6fd35: Merge "Refactoring: move mips reloc to separate method"

* commit '9a0641a0f321dffc5991f883cd8e65df83b5c800':
  Refactoring: move mips reloc to separate method

9 years agoam afb488a3: am 6fac2f68: Merge "Fix possible leak in pthread_detach."
Yabin Cui [Thu, 15 Jan 2015 19:47:35 +0000 (19:47 +0000)]
am afb488a3: am 6fac2f68: Merge "Fix possible leak in pthread_detach."

* commit 'afb488a3e91c7ac297b4f91e9985fd10c09d6f81':
  Fix possible leak in pthread_detach.

9 years agoam 6fac2f68: Merge "Fix possible leak in pthread_detach."
Yabin Cui [Thu, 15 Jan 2015 19:43:52 +0000 (19:43 +0000)]
am 6fac2f68: Merge "Fix possible leak in pthread_detach."

* commit '6fac2f680f829570122276dc6876f02350a652b1':
  Fix possible leak in pthread_detach.

9 years agoMerge "Fix possible leak in pthread_detach."
Yabin Cui [Thu, 15 Jan 2015 19:35:38 +0000 (19:35 +0000)]
Merge "Fix possible leak in pthread_detach."

9 years agoam 4a538412: am deab11ac: Merge "Make bionic-unit-tests default run isolate mode."
Yabin Cui [Thu, 15 Jan 2015 19:17:06 +0000 (19:17 +0000)]
am 4a538412: am deab11ac: Merge "Make bionic-unit-tests default run isolate mode."

* commit '4a53841212de2c129ca0769968d8891be97b6cde':
  Make bionic-unit-tests default run isolate mode.

9 years agoam deab11ac: Merge "Make bionic-unit-tests default run isolate mode."
Yabin Cui [Thu, 15 Jan 2015 19:10:33 +0000 (19:10 +0000)]
am deab11ac: Merge "Make bionic-unit-tests default run isolate mode."

* commit 'deab11acd7000573ad9c034e5bf9475aadbc5cbe':
  Make bionic-unit-tests default run isolate mode.

9 years agoFix possible leak in pthread_detach.
Yabin Cui [Thu, 18 Dec 2014 22:22:09 +0000 (14:22 -0800)]
Fix possible leak in pthread_detach.

If pthread_detach() is called while the thread is in pthread_exit(),
it takes the risk that no one can free the pthread_internal_t.
So I add PTHREAD_ATTR_FLAG_ZOMBIE to detect this, maybe very rare, but
both glibc and netbsd libpthread have similar function.

Change-Id: Iaa15f651903b8ca07aaa7bd4de46ff14a2f93835

9 years agoMerge "Make bionic-unit-tests default run isolate mode."
Yabin Cui [Thu, 15 Jan 2015 18:10:30 +0000 (18:10 +0000)]
Merge "Make bionic-unit-tests default run isolate mode."

9 years agoam c16eafd5: am fcc6fd35: Merge "Refactoring: move mips reloc to separate method"
Dmitriy Ivanov [Thu, 15 Jan 2015 18:08:14 +0000 (18:08 +0000)]
am c16eafd5: am fcc6fd35: Merge "Refactoring: move mips reloc to separate method"

* commit 'c16eafd5ff06845606fa24ed83794104c7f995e6':
  Refactoring: move mips reloc to separate method

9 years agoam fcc6fd35: Merge "Refactoring: move mips reloc to separate method"
Dmitriy Ivanov [Thu, 15 Jan 2015 18:01:49 +0000 (18:01 +0000)]
am fcc6fd35: Merge "Refactoring: move mips reloc to separate method"

* commit 'fcc6fd35dfa88e659aa1769d1a1351ad74278763':
  Refactoring: move mips reloc to separate method

9 years agoMerge "Refactoring: move mips reloc to separate method"
Dmitriy Ivanov [Thu, 15 Jan 2015 17:56:36 +0000 (17:56 +0000)]
Merge "Refactoring: move mips reloc to separate method"

9 years agoam 59c080ca: am 0f1fe41f: am ffa2c9ed: Merge "Refactoring: unify relocate function"
Dmitriy Ivanov [Thu, 15 Jan 2015 02:27:52 +0000 (02:27 +0000)]
am 59c080ca: am 0f1fe41f: am ffa2c9ed: Merge "Refactoring: unify relocate function"

* commit '59c080ca7935934a8a2db57127945eff10dcea16':
  Refactoring: unify relocate function

9 years agoam 6dcbe942: am 740ac6fe: am 2b15f54a: Merge "bionic: libc: Added path to root ramdis...
Andres Morales [Thu, 15 Jan 2015 02:27:39 +0000 (02:27 +0000)]
am 6dcbe942: am 740ac6fe: am 2b15f54a: Merge "bionic: libc: Added path to root ramdisk build properties file."

* commit '6dcbe94239385526c97d1954af92c14f29185950':
  bionic: libc: Added path to root ramdisk build properties file.

9 years agoam 49810c36: am d12ea31b: am 85747809: Merge "Test that ip6-localhost exists in etc...
Yabin Cui [Thu, 15 Jan 2015 02:27:25 +0000 (02:27 +0000)]
am 49810c36: am d12ea31b: am 85747809: Merge "Test that ip6-localhost exists in etc/hosts."

* commit '49810c36960e2821b056be450b7ac007e0257c19':
  Test that ip6-localhost exists in etc/hosts.

9 years agoam 5ae47f4d: am 47a32828: am a23569c9: Merge "Refactoring: use generic reloc constants"
Dmitriy Ivanov [Thu, 15 Jan 2015 02:27:24 +0000 (02:27 +0000)]
am 5ae47f4d: am 47a32828: am a23569c9: Merge "Refactoring: use generic reloc constants"

* commit '5ae47f4d815d9ef41fa1391706bac37ab0efddf7':
  Refactoring: use generic reloc constants

9 years agoam 7d640183: am 5bff8a23: am d986f2e4: Merge "Sync with upstream OpenBSD stdio."
Elliott Hughes [Thu, 15 Jan 2015 02:27:23 +0000 (02:27 +0000)]
am 7d640183: am 5bff8a23: am d986f2e4: Merge "Sync with upstream OpenBSD stdio."

* commit '7d640183f2ab6ec46cad73becc7fd259e8a48bdb':
  Sync with upstream OpenBSD stdio.