summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH05Q-tomato-9828f8e9cccm-11.0-XNPH05Q-bacon-5229c4ef56Brint E. Kriebel2014-11-036-8/+13
|\
| * Use memmove from krait for cortex-a53 targetXin Qi2014-10-201-0/+3
| | | | | | | | | | | | Other functions are still as from cortex-a15 as originally configured. Change-Id: If69348fc2c52cd04536e67a6aa650743459d75d4
| * msm8916: Enable QCOM bionic optimizationsPracheer2014-10-205-8/+9
| | | | | | | | | | | | | | | | Enable QCOM bionic optimizations for 8916. Define QCOM_NEON_OPTIMIZATION for using QCOM specific bionic optimizations. Change-Id: I77cb7380ed2eed42a94cdf8f2ff04e800ff75092
| * libc: Add cortex-a53 bionic codePracheer2014-10-011-0/+1
| | | | | | | | | | | | | | Add cortex-a53 makefile. Currently it uses cortex-a15 bionic code. Change-Id: I1401b54b6c61d17782dff827d69f92b35a4f5c4f
* | Merge branch 'cm-11.0' into stable/cm-11.0Brint E. Kriebel2014-09-300-0/+0
|\|
| * Revert "DNS: make the same ip type DNS query as the interface address type"Chao Chen2014-09-151-62/+0
| | | | | | | | | | | | | | This reverts commit 53c2af91d6bc2e44c53aea98a06a76834e59fe09. The reverted commit broke vpn connect. Change-Id: I7e80dcf1fa1ba86effbe7716d50a5a08be7898ad
| * DNS: make the same ip type DNS query as the interface address typeNilesh Poddar2014-09-011-0/+62
| | | | | | | | | | | | | | | | | | Since dns query happens on non-default interface, only query the address type that the interface has;otherwise the dns results might not be usable. CRs-fixed: 694805 Change-Id: I4ce900507bf18a9f60a2971cf496aa7c930d540b
* | Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH44S-bacon-5fa8c79c0bBrint E. Kriebel2014-09-023-34/+65
|\|
| * Remove the dependency on the non-uapi __kernel_nlink_t.Elliott Hughes2014-09-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The kernel doesn't have an nlink_t; it just uses the equivalent of uint32_t. We already had a usable __nlink_t in the C library, so let's just define our nlink_t in terms of __nlink_t, which is what __nlink_t was meant for anyway. Note that our struct stat just follows the kernel, and doesn't refer to nlink_t anyway. Change-Id: I6f51188d188fab975e286d6f8945fe746200b8d4
| * Fix build for x86. Remove duplicate mcmchr from Android.mk. Other ↵HazouPH2014-08-191-2/+0
| | | | | | | | | | | | implemented in arch-x86/x86.mk Change-Id: I90a562960b214dd02b015d3e2715f711907ae9e8
| * bionic: update memmove for 32 bits atomicBrent DeGraaf2014-07-301-31/+63
| | | | | | | | | | | | | | When src/dst are 32bits aligned, the updated memmove will guarantee 32bits atomic. Change-Id: I21cb77451270d061b32e3e2d2fda22e7e373b7ff
* | Merge branch 'cm-11.0' into stable/cm-11.0cm-11.0-XNPH33R-bacon-3628510d76cm-11.0-XNPH30O-bacon-4f280f505aBrint E. Kriebel2014-06-303-48/+26
|\|
| * Merge tag 'android-4.4.3_r1' into HEADRicardo Cerqueira2014-06-033-48/+26
| |\ | | | | | | | | | Android 4.4.3 release 1
| | * Allow overlap in resolv uid => DNS iface mappingChad Brubaker2014-03-152-48/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When multiple rules exist covering a given uid the one added most recently will be used. This allows us to handle the simultaneous tuns case where a new tun is coming online for an already running VPN. _resolv_clear_iface_for_uid_range now also takes the iface and removes only that matching (iface, uid range) entry. Bug: 12134439 Change-Id: I9b9cfcfae2f38c409022a8c76ccadad7e2babd78
| | * Upgrade to tzdata2014a.Elliott Hughes2014-03-101-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: Changes affecting near-future time stamps Turkey begins DST on 2014-03-31, not 03-30. (Thanks to Faruk Pasin for the heads-up, and to Tim Parenti for simplifying the update.) Changes affecting past time stamps Fiji ended DST on 2014-01-19 at 02:00, not the previously-scheduled 03:00. (Thanks to Steffen Thorsen.) Ukraine switched from Moscow to Eastern European time on 1990-07-01 (not 1992-01-01), and observed DST during the entire next winter. (Thanks to Vladimir in Moscow via Alois Treindl.) In 1988 Israel observed DST from 04-10 to 09-04, not 04-09 to 09-03. (Thanks to Avigdor Finkelstein.) (cherry picked from commit 159b28eb46f03cb1dae6484059e2559f1e42e208) Bug: 13193205 Change-Id: I3d302039f7e057a97c9d307ce8d32efa056481ed
| | * Merge "Fix dns searchdomain use in gethostbyname." into klp-devRobert Greenwalt2014-03-051-0/+9
| | |\
| | | * Fix dns searchdomain use in gethostbyname.Robert Greenwalt2013-12-121-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to load search domain data before we attempt to use it. This is a cherry pick of an AOSP change c11f6f0f393e472984b5ac2934e2485855a319c9. bug:6799630 Change-Id: I4ea1131f06ffdf4037fe67f82af5a0349469b609
| | * | Upgrade to tzdata2013i.Elliott Hughes2014-02-251-0/+0
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: Changes affecting near-future time stamps: Jordan switches back to standard time at 00:00 on December 20, 2013. The 2006-2011 transition schedule is planned to resume in 2014. (Thanks to Steffen Thorsen.) Changes affecting past time stamps: In 2004, Cuba began DST on March 28, not April 4. (Thanks to Steffen Thorsen.) Bug: 13193205 Change-Id: I8f26cc50f6b571804a18ff2113b4a47a22bc56dd
| * | Fix pthread_detach for already-exited threads.Elliott Hughes2014-06-022-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | This fix handles the case when pthread_detach is called for threads which have already exited. This is required to avoid any memory leak Change-Id: I2bf7f41234d93b226132a4c51705f4186f4961c3 Reported-by: Paresh Nakhe <pnakhe@codeaurora.org>
* | | Fix pthread_detach for already-exited threads.cm-11.0-XNPH25R-bacon-d22b777afacm-11.0-XNPH22R-bacon-03d77315eaElliott Hughes2014-06-022-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix handles the case when pthread_detach is called for threads which have already exited. This is required to avoid any memory leak Change-Id: I2bf7f41234d93b226132a4c51705f4186f4961c3 Reported-by: Paresh Nakhe <pnakhe@codeaurora.org> (cherry picked from commit 452fa4ec246f502ac1e773151898ee85a8410cd8)
* | | Merge remote-tracking branch 'github/cm-11.0' into HEADBrint E. Kriebel2014-03-278-192/+319
|\| |
| * | libc: krait: Fix memmove half-word atomicityXin Qi2014-03-131-33/+22
| | | | | | | | | | | | | | | | | | | | | | | | In tailing case of less than 7, if even number of bytes are left, then use half word load/store to make sure the whole routine is half-word atomic Change-Id: I54948ac050ff866986a7e144d4240652981ea87a
| * | libc: Fix memchr inclusion on scorpionJames Sullins2014-03-051-1/+2
| | | | | | | | | | | | Change-Id: I0f4d31c85c8671be9790feab03469f89520763b7
| * | libc: Fix memchr inclusionSteve Kondik2014-03-042-2/+1
| | | | | | | | | | | | Change-Id: I6f374f16b08e19851a375a4abad3e8235f8da59c
| * | Replace Cortex A15 strlen implementation with cortex-stringsBernhard Rosenkraenzer2014-03-031-156/+137
| | | | | | | | | | | | | | | | | | | | | | | | Benchmarks on a Nexus 10 have shown this implementation to be 5%-20% faster (depending on input) Change-Id: I4331a390c404a77b1e13909d713c4258a3776bca Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
| * | Import memchr implementation from cortex-strings for Cortex A15Bernhard Rosenkraenzer2014-03-034-0/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | Benchmarks on a Nexus 10 have shown the cortex-strings implementation of memchr to be 60%-70% faster (depending on input) Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> Change-Id: I72b119905234570e54068375e5c3593d0647c67c
* | | Merge remote-tracking branch 'github/cm-11.0' into HEADBrint E. Kriebel2014-02-281-1/+5
|\| |
| * | libc: krait: support KINGFISHER optimized memcpyVince Leung2014-02-071-1/+5
| | | | | | | | | | | | | | | | | | | | | When defined use the KINGFISHER optimized cortex-a9 memcpy instead to improve performance. Change-Id: Idcfb94cc1e10d8326d7a9e623baed91125d7caf6
| * | Revert "Remove harmful attempts to be helpful in pthread_mutex functions."Steve Kondik2014-02-031-4/+21
| | | | | | | | | | | | This reverts commit 53f15d0325feeaf7e58dc79fce4ddf55e0a64b7a.
* | | Revert "Remove harmful attempts to be helpful in pthread_mutex functions."Steve Kondik2014-02-041-4/+21
|/ / | | | | | | This reverts commit 53f15d0325feeaf7e58dc79fce4ddf55e0a64b7a.
* | Remove harmful attempts to be helpful in pthread_mutex functions.Elliott Hughes2014-01-171-21/+4
| | | | | | | | | | | | | | | | | | | | | | Most callers won't check for EINVAL, so it's best to fail early. GCC takes the nonnull attribute as a guarantee that an argument won't be NULL, so these hacks were already ineffective, which is how we found that at least one commercial game was using NULL as if it's a mutex, but actually getting no-op behavior. Bug: 11971278 Change-Id: I89646e043d931778805a8b692e07a34d076ee6bf
* | ARM: Change dmb domain for bionic_atomic_barrier()Serban Constantinescu2014-01-173-4/+4
| | | | | | | | | | | | | | | | | | | | This patch changes the domain that the memory barrier operates on. Assumes that the scope of bionic_atomic_barrier() does not include device memory, memory shared with the GPU or any other memory external to the processor cluster. Change-Id: I291e741c98a64c86f3a3cf99811bbf1e714ac9aa Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
* | Clean up the pthread-only atomic stuff a little.Elliott Hughes2014-01-175-299/+124
| | | | | | | | | | | | | | | | | | | | It looks like we can probably just use the generic GCC stuff instead; the generated code looks pretty similar. We should come back to that. These routines are only used by the pthread implementation, and __bionic_atomic_inc isn't used, so we can remove it. Change-Id: I8b5b8cb30a1b159f0e85c3675aee06ddef39b429
* | Clean up some ARMv4/ARMv5 cruft.Elliott Hughes2014-01-1710-206/+50
| | | | | | | | Change-Id: I29e836fea4b53901e29f96c6888869c35f6726be
* | libc: Unbreak build for scorpionkszaq2013-12-313-224/+7
| | | | | | | | | | | | Use cortex-a15 memcpy and krait memset routines Change-Id: I02cb178b33b01fc91e903f1f7b620640fd0f3310
* | libc: Enable high-performance memmove and bcopy for cortex-a15Steve Kondik2013-12-291-0/+2
| | | | | | | | Change-Id: Id8e4e595021dd13bf4ab5620f5fb0b0d80333616
* | Clean up more recursive FORTIFY_SOURCE callsNick Kralevich2013-12-208-0/+16
| | | | | | | | | | | | | | | | | | | | Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE, to avoid infinite recursion problems. The previous patch only addressed one of the problems. Bug: 12216860 Change-Id: I6f30ae7cb5b481be9942add18182ea4839d348a6
* | __strnlen_chk: avoid recursive strlen callsNick Kralevich2013-12-201-0/+2
| | | | | | | | | | | | | | | | Don't use FORTIFY_SOURCE on functions which implement FORTIFY_SOURCE. Bug: 12216860 Change-Id: I61db1b47ccdd6bdcf41eab3303f4806494016199
* | Fix dns search domain use in gethostbyname.Robert Greenwalt2013-12-201-0/+9
| | | | | | | | | | | | | | Need to load search domain data before we attempt to use it. bug:6799630 Change-Id: Ib228f4ca260339f71a2e28d5930c0a722bd43c92
* | libc: krait: Implement optimized versions of memmove and bcopyBrent DeGraaf2013-12-202-89/+79
| | | | | | | | | | | | | | | | Restore a jellybean optimization for memmove and bcopy on krait. Code has been refactored to thumb2 for consistency with the rest of bionic libc, as well as performance and correctness. Change-Id: I8f2f77dce4534fbce1bdf0188ab353bf34ab8637
* | Merge tag 'android-4.4.1_r1' into HEADRicardo Cerqueira2013-12-061-0/+0
|\| | | | | | | Android 4.4.1 Release 1
| * Upgrade to tzdata2013h.Elliott Hughes2013-10-311-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the release notes: Changes affecting current and future time stamps: Libya has switched its time zone back to UTC+2 without DST, instead of UTC+1 with DST. (Thanks to Even Scharning.) Western Sahara (Africa/El_Aaiun) uses Morocco's DST rules. (Thanks to Gwillim Law.) Changes affecting future time stamps: Acre and (we guess) western Amazonas will switch from UTC-4 to UTC-5 on 2013-11-10. This affects America/Rio_Branco and America/Eirunepe. (Thanks to Steffen Thorsen.) Add entries for DST transitions in Morocco in the year 2038. This avoids some year-2038 glitches introduced in 2013g. (Thanks to Yoshito Umaoka for reporting the problem.) (cherry picked from commit 3df3879bd679f2a8cf29000036c751c93275c094) Change-Id: Ibdac6cc1db0fe24c62fe68e99d057dface6b6745
| * merge in klp-release (no-op)Ed Heyl2013-10-160-0/+0
| |\
* | | libc: krait: Use performance version of bcopy and memmoveBrent DeGraaf2013-11-294-3/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ported from CM10.2. bionic-benchmarks on mako: before: iterations ns/op BM_string_memmove/8 50000000 32 243.54 MiB/s BM_string_memmove/64 20000000 143 446.41 MiB/s BM_string_memmove/512 2000000 885 578.14 MiB/s BM_string_memmove/1K 1000000 1733 590.55 MiB/s BM_string_memmove/8K 200000 13618 601.54 MiB/s BM_string_memmove/16K 100000 27276 600.66 MiB/s BM_string_memmove/32K 50000 59115 554.30 MiB/s BM_string_memmove/64K 10000 118162 554.63 MiB/s after: iterations ns/op BM_string_memmove/8 50000000 20 381.94 MiB/s BM_string_memmove/64 100000000 17 3636.07 MiB/s BM_string_memmove/512 50000000 50 10116.80 MiB/s BM_string_memmove/1K 20000000 98 10429.23 MiB/s BM_string_memmove/8K 2000000 876 9346.43 MiB/s BM_string_memmove/16K 1000000 1836 8923.09 MiB/s BM_string_memmove/32K 500000 4392 7459.79 MiB/s BM_string_memmove/64K 200000 8562 7653.85 MiB/s Change-Id: Id64913a71857d9cfdf6bd1bbe2c66cfc49d72748
* | | linker: Avoid logcat spam with some blobsMarcin Chojnacki2013-11-251-1/+1
| | | | | | | | | | | | | | | | | | | | | Many of pre-kitkat blobs would emit a "text relocations" warning which makes logcat completely unreadable. This commit will hide this warning to prevent it. Change-Id: I8f32b5bbfea33d732320b3ac29da6b0027fbd521
* | | bionic: call stdio cleanup on exitPawit Pornkitprasan2013-11-193-19/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As of 61e699a133a4807fe878a6cb0d7190d7c96e21f8, stdio clean up functions are no longer registered in atexit and must be called manually via __cleanup. The issue this fixes is some static binaries linked against bionic cannot output properly when piped or redirected because the buffer is not flushed before closing. This is done by pulling in exit.c (and other dependencies) from netbsd. Change-Id: I193e54a6d08900f291550029fe75ce76394d9e22
* | | libc: krait: Re-factor high-performance memcpy for thumb2Brent DeGraaf2013-11-111-115/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The majority of libc under bionic is built for thumb2. Refactor the high performance memcpy used in previous builds for thumb2, including information that can be used for stack-unwinding. Change-Id: Ib5f7ab354f39313758402ec02b0aea27b15d45fa Conflicts: libc/arch-arm/krait/bionic/memcpy_base.S (cherry picked from commit cdeb493351044c3116fc0d42a64f33f8215a5886) (cherry picked from commit 0c524faa937b40178915c9478599b754b6f8f78d)
* | | bionic: linker: fix prelink supportPawit Pornkitprasan2013-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | load_bias_ needs to be calculated from the min_vaddr, not the prelink address Fixes couldn't map "libraryname.so" segment 1: Invalid argument Change-Id: Ibf1fd1d5a0f2c81ce515f5d47412a043ba768247
* | | Merge tag 'android-4.4_r1' into cm-11.0Ricardo Cerqueira2013-11-02319-4819/+27869
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | Android 4.4 Release 1.0 Conflicts: libc/arch-arm/arm.mk libc/upstream-freebsd/lib/libc/stdlib/getopt_long.c linker/linker_phdr.cpp
| * | merge in klp-release history after reset to klp-devThe Android Automerger2013-10-150-0/+0
| |\ \ | | |/ | |/|