summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Do not inline rarely used trace function bodies.Chih-Hung Hsieh2014-10-141-0/+57
| | | | | | | | When atrace_* functions are inlined, the rarely used 1024-byte buffers are allocated on stack. BUG: 17444504 Change-Id: I773512aeb70e8b79f3803c6d59cba064d2aa65b6
* Add -no-integrated-as at local level.Chih-Hung Hsieh2014-10-061-0/+3
| | | | | | | Later we will enable integrated-as as default at the global level. BUG: 17820427 Change-Id: I1beed3e75d074d970fa9112ec1c0f0df3d43947a
* Revert "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-041-8/+1
| | | | | | This reverts commit cb344d464009337c283431dec4441b70481d1a49. Change-Id: Ib17cd8d00695062177ce863cedc4ec7148012317
* Rewrite atomic.h to use stdatomic.h.Hans Boehm2014-10-011-1/+8
| | | | | | | Replace atomic-inl.h with a file that just includes atomic.h. Remove platform specific implementations. Change-Id: If16d74fbe0af7836ed8c1296c17e13a2d0d20f64
* Don't manually link stlport.Dan Albert2014-09-261-1/+1
| | | | Change-Id: I60d2bc868fb9052f120103e9675046ef54f510d0
* Clean up memset[16,32] routines: unify files names, remove redundant wrapperVarvara Rainchik2014-09-179-1275/+1209
| | | | | | | for 32-bit, remove Atom caches sizes for 64-bit, fix license. Change-Id: Ieda6367d7b21cf25b2beda6dd8d77cf668d3f2af Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
* Use the correct debuggerd given the tid.Christopher Ferris2014-09-131-57/+119
| | | | | | | | | | | | | | | | | On 64 bit systems, calling dump_backtrace_to_file will automatically call debuggerd64. If the process to dump is actually 32 bit, this creates an unrecognizable dump backtrace. Modify the code to check the type of the process and connect to the appropriate debuggerd process. This change refactors both the tombstone and backtrace functionality to allow both to work properly on 64 bit systems when dealing with mixed processes. Bug: 17487122 (cherry picked from commit a9fa7b87f1aefd7b96f749a545d3385ad384c12b) Change-Id: I3c9e0212c8720877a6af092071a3695df2a36df8
* Remove makefile cruft.Dan Albert2014-09-121-0/+2
| | | | | | Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
* Fix some clang compilation issues.Dan Albert2014-09-111-1/+1
| | | | | | | | | | | | Use expected inline behavior with clang. GCC defaults to -std=gnu90, giving C89 inline semantics with GNU extensions. Clang defaults to C99. Explicitly use gnu90. Mark an unused parameter as __unused. Fix some incorrect casts. Change-Id: I05b95585d5e3688eda71769b63b6b8a9237bcaf4
* Only the Mac doesn't have open_memstream.Elliott Hughes2014-08-201-2/+2
| | | | | | | We should probably move this into art, since they're the only people using it. Bug: 17164505 Change-Id: I67b8f0cbad4c6368d4424e6979d6b044dd36aa37
* Remove androidGetTid.Elliott Hughes2014-08-181-4/+0
| | | | | Bug: 17048545 Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
* [MIPSR6] Skip pixelflinger, memset assembler code on mips32r6Duane Sand2014-07-311-1/+9
| | | | | | Temporarily use generic C-coded libpixelflinger & memset on mips32r6. Change-Id: I629b11ba955eaba323cba1df96c39f75f4d24d62
* Remove invalid 64-bit host objects.Stephen Hines2014-07-221-13/+0
| | | | | | | | | Bug: 16408818 These targets are no longer in use, since we have a proper way to create both 32-bit and 64-bit host libraries in a single build now. Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
* Add android_memset16/android_memset32 for aarch64.Christopher Ferris2014-06-235-9/+426
| | | | | | | | Included new unit tests for these functions. Bug: 15456369 Change-Id: I3fac02f61c62d15d54d0df51957680d7155e98ae
* libcutils: Fix warnings in properties.c when verbose logging is enabledIgor Murashkin2014-06-202-4/+6
| | | | Change-Id: I07c5eb59b9395734ad3fc25eba753564c0f096a0
* cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-203-2/+422
| | | | | | | | | * Read out system properties with same syntax as SystemProperties.java * Also adds unit test suite to validate correctness of properties * Also fixes buffer overrun in property_get (cherry picked from commit d4507e9246e4855c5431cac5c3d1a9155caebc87) Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* Fix windows sdk build.Dan Albert2014-06-131-1/+1
| | | Change-Id: I53c9f43a5f9ae2f40de686316185d162d0e0503a
* Use syscall(2) instead of ioprio_get/ioprio_set.Dan Albert2014-06-121-19/+5
| | | | Change-Id: Ibfd0bdd3dd0bad9804ec9fd9292f4b68a510afdb
* Port libcutils memset16/32 to x86_64.Henrik Smiding2014-06-054-16/+994
| | | | | | | | Port libcutils memset16/32 assembly SSE2 optimizations to x86_64 architecture. Ensures the same performance on 64-bit arch. Change-Id: I874a71a884c0d28a152933ddff9cb886c9a6e99e Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
* Host multilib build of both 32-bit and 64-bit libraries.Ian Rogers2014-06-051-0/+1
| | | | Change-Id: I54f91f385b109fc664a1a1f9320affb2a846fef1
* Merge "Fix libcutils/dlmalloc_stubs.c build breakage."Elliott Hughes2014-06-041-1/+0
|\
| * Fix libcutils/dlmalloc_stubs.c build breakage.Elliott Hughes2014-06-031-1/+0
| | | | | | | | Change-Id: I344c410c100ce13c7a88063bf5354ad61c50094b
* | Fix build.Mathieu Chartier2014-06-031-1/+3
| | | | | | | | Change-Id: I7b0cf6a248c74f1a06e0b5d51a5be13124ced6a0
* | Fix build.Mathieu Chartier2014-06-031-10/+8
|/ | | | Change-Id: I6bafe6221e1ce7e4b04269df90996ab08b050e93
* Merge "Make host ashmem_create_region seed only once."Mathieu Chartier2014-06-031-61/+63
|\
| * Make host ashmem_create_region seed only once.Mathieu Chartier2014-06-031-61/+63
| | | | | | | | | | | | | | | | | | Not seeding this each call should help reduce collisions when multiple threads are calling ashmem_create_region. Also cleaned up code by deleting gotos, and making formatting consistent. Bug: 15394258 Change-Id: Iafdaea57b2317e0eb7c40d7b5595c523814fd88c
* | libcutils: fix rw FS remount check issueHong-Mei Li2014-06-021-1/+1
|/ | | | | | | | | | | | | | | | In some condition, some of FS would set disable_roll_forward option. In this case, when we do power off or reboot, the power down progress would stuck at android_reboot for 360 sec. The reason is, remount_ro_done function check key word "rw" to determine whether all the read-write FS has been remounted as read-only FS. Unfortunately, it takes disable_roll_forward as a rw flag too by mistake, so the check would always fail, until reach 360 sec threshold. The patch would match "rw," from mount options, this can avoid the issue successfully. Change-Id: I409f9dc88c9ee5cf049615ea9dcccaf195b6bc5a Signed-off-by: Hong-Mei Li <a21834@motorola.com>
* Fix win32 undefined reference to `_socket_network_client_timeout'.Elliott Hughes2014-05-202-18/+9
| | | | Change-Id: I063213957b8452f4690da0f64872075f7c27b4cd
* Fix Windows socket_network_client.c build failures.Elliott Hughes2014-05-191-1/+8
| | | | Change-Id: Ie67a2305ade02e078bf0edf54104c295b091b1b7
* Bound the ADB connect time with a non-blocking connectKen Lierman2014-05-191-5/+72
| | | | | | | | | | | | | After a disconnect, the initial blocking connect takes a long time to return, while subsequent calls return quicks. Switch to a non-blocking connect to make the re-connect time more consistent and faster overall. Change-Id: I21d02b22a8eb9a457c2f1fa95eb17894d5612ccd Signed-off-by: Ken Lierman <ken.lierman@windriver.com> Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com> Reviewed-by: Jovanovic, Radivoje <radivoje.jovanovic@intel.com> Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-2/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* Merge "Add Silvermont architecture cache sizes"Elliott Hughes2014-05-051-2/+9
|\
| * Add Silvermont architecture cache sizesHenrik Smiding2014-04-181-2/+9
| | | | | | | | | | | | | | Adds Silvermont specific cache sizes for memset16/32 SSE optimization. Change-Id: Ib5ea086d57544e74ac384ee1ef516b8511392f70 Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
* | libcutils: win_sdk build issuesMark Salyzyn2014-05-053-5/+14
| | | | | | | | Change-Id: Ic431166f686aebfd0ee00ad3224b95237ff7a0de
* | libcutils: Mac build pulls in __unused from sys/cdefs.hMark Salyzyn2014-05-021-0/+2
| | | | | | Change-Id: I2da8a52e07cef0b749f7e60709536e98bd96660e
* | libcutils: turn on -WerrorMark Salyzyn2014-05-0118-103/+96
| | | | | | | | | | | | - Deal with some -Wunused / -Wunused-variable issues Change-Id: I28c23fb213382a392ec30935749fb359e072d664
* | Use the si_code value bionic passes us.Elliott Hughes2014-04-251-2/+3
| | | | | | | | | | | | | | | | | | Bionic needs to re-raise various signals, which means the si_code debuggerd sees has been clobbered. If bionic sends us the original si_code value, we can use that instead of the one we see when the ptrace the crashed process' siginfo. Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
* | Handle errno properly to avoid corrupt str_parmsJens Gulin2014-04-032-13/+54
|/ | | | | | | | | | | | | | | | | | | | | | | A normal sequence of calls is as follows: str_parms_create_str, str_parms_add_str, str_parms_destroy. In some cases the destroy caused double free. str_parms_add_str will clone the input and send it to hashmapPut for storage. If hashmapPut did not store the strings it will raise errno = ENOMEM and leave caller with ownership of the strings. In any of these cases it will be safe to destroy the str_parms. But what if it wasn't hashmapPut that said NOMEM? What if there was a stale NOMEM already before a successful hashmapPut? In that case the strings will be successfully added to the list (if new), but when str_parms_add_str sees the NOMEM it will free them anyway, leaving dangling pointers in the str_parms!! It is the responsibility of the caller to clear errno before any interesting call. This patch makes sure that str_parms_add_str reacts only on errno emmitted from hashmapPut. Change-Id: If87e4bcc482f09e1c66133d33517b152ebdac65f
* Merge "libcutils: 64-bit compile issues"Mark Salyzyn2014-03-071-9/+11
|\
| * libcutils: 64-bit compile issuesMark Salyzyn2014-03-071-9/+11
| | | | | | | | | | | | - Use inttypes.h to print uint64_t values. Change-Id: Ia10a3b67cadcce282563467a464ec07066cc2051
* | libcutils: add method to get klog levelAlex Ray2014-03-071-0/+4
|/ | | | Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361
* libcutils: Socket type might contain bitwise OR flagsPaul Kocialkowski2014-02-261-1/+3
| | | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Change-Id: Ia5c8f136793a989fc1d71c61292afe4e5cf169fa
* Merge "Remove dead code."Elliott Hughes2014-02-207-764/+0
|\
| * Remove dead code.Elliott Hughes2014-02-207-764/+0
| | | | | | | | | | | | | | We have benchmarking for memset in bionic itself, and a benchmarking framework for other native benchmarking. Change-Id: I241a288a96d3b2d37f3d51b04a519ac23f18a989
* | Enable building init with -Wall -Werror.Stephen Smalley2014-02-191-4/+10
|/ | | | | | | | Eliminates various warnings from SELinux-related code. Bug: 12587913 Change-Id: I28921f0ebd934324436609540d95ccef58552b64 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* libcutils: resolve warning in iosched_policy.cMark Salyzyn2014-01-271-3/+6
| | | | | | (cherry picked from commit 407038cd937391216d93f72d4d13db3803c5b452) Change-Id: I35b0d1eeba21cc1ed9645a5acfa180ed20797c56
* libcutils: bug str_parms.c:str_parms_get_float().Mark Salyzyn2014-01-271-4/+5
| | | | | | | | | | str_parms_get_float did not return the output into *val. Only output if returning with no error. Audit shows no internal users of this library function (cherry picked from commit 8e71ddeac00d0733c7fcc2965d69f07aa5c5d0a3) Change-Id: I14a3f08a098072a159dd93f85ead36b3f445816f
* libcutils: UNUSED argument warningsMark Salyzyn2014-01-273-3/+9
| | | | | | (cherry picked from commit ba02cd1e9bccee9b112ccbee06bc204381b5a215) Change-Id: Ie427d481298af8d911bb2b157ebba30954335354
* libcutils: Move list.c to inlines on list.hMark Salyzyn2014-01-272-38/+0
| | | | | | (cherry picked from commit 0ea3624b3ef2a6545df770d06338c4655386220d) Change-Id: I0572555a194d2560e74dfbf07abcec05e9a276a2
* system/core: remove $(KERNEL_HEADERS) from includesColin Cross2014-01-221-1/+1
| | | | | | | | The kernel headers are already in the include path, and manually adding them again will break on a multiarch build, where the kernel headers may be different for each arch. Change-Id: Ib13d96543f2c97b1b487a46e1748ceb2c5724169