summaryrefslogtreecommitdiffstats
path: root/include/cutils
Commit message (Collapse)AuthorAgeFilesLines
* Remove atomic-inline.h.Elliott Hughes2014-11-173-21/+2
| | | | Change-Id: I3ac0229b9c516744e6a9c9d9e795b43bc9c5636b
* Remove the error-prone TARGET_CPU_SMP from system/core.Elliott Hughes2014-11-172-8/+0
| | | | | | | | This means that code that uses libcutils no longer has to ensure that it's set ANDROID_SMP in the calling code's Android.mk for this to function correctly. Change-Id: I80c7ff170cd621106f34d6b74689d6b4f03e4eb7
* Second attempt to "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-11-138-1039/+112
| | | | | | | | | | | | This should not be committed until win_sdk and aarch64 builds are fixed in the presence of this CL. This reverts commit 2789faabfa9cdf16902a52a1de3fc4a7ae98efed. We additionally remove uniprocessor support from the earlier CL, thus avoiding a potential compiler code reordering issue. Change-Id: I7207a5ca2efa907a6f757f172d7090a62b2311fe
* am 07f1300c: am 7979f1ce: Merge "Do not inline rarely used trace function ↵Chih-Hung Hsieh2014-10-151-39/+11
|\ | | | | | | | | | | | | bodies." * commit '07f1300c4c4f7d3c0df540bf8df3443c3f4539cd': Do not inline rarely used trace function bodies.
| * Do not inline rarely used trace function bodies.Chih-Hung Hsieh2014-10-141-39/+11
| | | | | | | | | | | | | | | | When atrace_* functions are inlined, the rarely used 1024-byte buffers are allocated on stack. BUG: 17444504 Change-Id: I773512aeb70e8b79f3803c6d59cba064d2aa65b6
* | am 072877af: am 41198eea: Merge "Revert "Rewrite atomic.h to use stdatomic.h.""Hans Boehm2014-10-048-124/+1039
|\ \ | |/ | | | | | | * commit '072877af485d49f11e227c0d22a7bb4a341533d6': Revert "Rewrite atomic.h to use stdatomic.h."
| * Revert "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-048-124/+1039
| | | | | | | | | | | | This reverts commit cb344d464009337c283431dec4441b70481d1a49. Change-Id: Ib17cd8d00695062177ce863cedc4ec7148012317
* | am f5204549: am 028928fe: Merge "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-048-1039/+124
|\ \ | |/ | | | | | | * commit 'f5204549faf7310cc808bcb3676fb36268178e26': Rewrite atomic.h to use stdatomic.h.
| * Rewrite atomic.h to use stdatomic.h.Hans Boehm2014-10-018-1039/+124
| | | | | | | | | | | | | | Replace atomic-inl.h with a file that just includes atomic.h. Remove platform specific implementations. Change-Id: If16d74fbe0af7836ed8c1296c17e13a2d0d20f64
| * Use the correct debuggerd given the tid.Christopher Ferris2014-09-131-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | am 07dda6b5: Merge "Use the correct debuggerd given the tid." into lmp-devChristopher Ferris2014-09-131-3/+16
|\ \ | | | | | | | | | | | | * commit '07dda6b57c6a476177b68ad42966f24cbbdb04c1': Use the correct debuggerd given the tid.
| * | Use the correct debuggerd given the tid.Christopher Ferris2014-09-121-3/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Change-Id: Icf123a6f4508b1aeec073663aa1a0ceae5380aa1
| * | Remove android_... store_barriers and 64-bit atomics.Hans Boehm2014-09-028-262/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are no longer used, and we want to strongly discourage future use. Keep the 32-bit variants while there are still uses. All users should move to C11 or C++11 atomics. (Resolved conflicts in atomic-...64.h with uniprocessor support removal as in AOSP.) Bug:16880454 Change-Id: I122b541cfd29ef4a6c932647f85d0d6a9d802061 (cherry picked from commit 9959ed953069ac9a7f08bebd2df55440e9370c0f)
* | | am 424eaece: am 69001e08: Merge "Remove android_... store_barriers and ↵Hans Boehm2014-08-278-225/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | 64-bit atomics." * commit '424eaece64e3649082a3972a8eebf76a6b403494': Remove android_... store_barriers and 64-bit atomics.
| * | Remove android_... store_barriers and 64-bit atomics.Hans Boehm2014-08-278-225/+0
| | | | | | | | | | | | | | | | | | | | | | | | These are no longer used, and we want to strongly discourage future use. Keep the 32-bit variants while there are still uses. All users should move to C11 or C++11 atomics. Change-Id: I122b541cfd29ef4a6c932647f85d0d6a9d802061
* | | am 4592d73e: am a59b6ac6: Merge "Only the Mac doesn\'t have open_memstream."Elliott Hughes2014-08-211-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit '4592d73e18684b8ba2addb97433eed4cf389e386': Only the Mac doesn't have open_memstream.
| * | Merge "Only the Mac doesn't have open_memstream."Elliott Hughes2014-08-211-2/+2
| |\ \
| | * | 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
* | | | am f7e88e51: am 373c7758: Merge "There\'s no non-SMP LP64."Elliott Hughes2014-08-203-37/+0
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | * commit 'f7e88e51b31e64e085b3a564f4b1baa8334d63f1': There's no non-SMP LP64.
| * | There's no non-SMP LP64.Elliott Hughes2014-08-203-37/+0
| |/ | | | | | | | | Bug: 17108682 Change-Id: I7e44ab48b5cacf989333882ffe67f39e9b0ce843
| * Remove <cutils/tztime.h>.Elliott Hughes2014-07-241-24/+0
| | | | | | | | Change-Id: I043c6686361bda9e85b82408511bf241a42b9229
| * Do not typedef char16_t if it is a keyword.Hans Boehm2014-07-161-1/+4
| | | | | | | | | | | | | | Don't define char16_t on platforms where char16_t is a keyword, as C11 and C++11 define it to be. Change-Id: I6717bc2133c1363ecd85861f3869e1eabd2ce96a
* | Add trace tag for power management.Jeff Brown2014-08-141-1/+2
| | | | | | | | | | Bug: 17004602 Change-Id: Iecd79e6e0417c02b902cde468b0e842f9348b386
* | Remove <cutils/tztime.h>.Elliott Hughes2014-07-241-24/+0
| | | | | | | | | | | | | | (cherry picked from commit f2e4b411e6e1a90209a4c815c37a36f0af1af120) Bug: 15765976 Change-Id: I758acdb18d75ea601a06d02b53f1df9f1ad17a26
* | Do not typedef char16_t if it is a keyword.Hans Boehm2014-07-181-1/+4
| | | | | | | | | | | | | | | | Don't define char16_t on platforms where char16_t is a keyword, as C11 and C++11 define it to be. (cherry picked from commit dfdbe61d28dbf3e45b6108d739170482ca19a03c) Change-Id: I6717bc2133c1363ecd85861f3869e1eabd2ce96a
* | am e6b0c566: am 981dcd79: Merge "Add comment to discourage use of ↵Hans Boehm2014-07-121-2/+33
|\ \ | |/ | | | | | | | | | | cutils/atomic.h." * commit 'e6b0c566762dbea1c45198d15ecc5e8a59378d73': Add comment to discourage use of cutils/atomic.h.
| * Add comment to discourage use of cutils/atomic.h.Hans Boehm2014-07-111-2/+33
| | | | | | | | Change-Id: Ib05c745158fdf5a11fd4697c3665a6370ffc04f5
* | am 8e1f3f58: am 2c2fdae7: am 633be1f3: Merge "Remove android_atomic_swap ↵Elliott Hughes2014-06-232-34/+0
|\ \ | |/ | | | | | | | | | | from mips & mips64." * commit '8e1f3f58e41e97cb6cf131d8bcd75e3ad2e733ad': Remove android_atomic_swap from mips & mips64.
| * Remove android_atomic_swap from mips & mips64.Elliott Hughes2014-06-232-34/+0
| | | | | | | | | | | | | | | | Looks like this got left behind in mips by mistake, and 84c3e9923108122045d689f1d2412359ad5208eb carried this over to mips64. Clean up before it wastes any more time... Change-Id: I6aeaa6e68be81f94065589337e2f7d3483e6e43c
* | am bad62c53: am ba467827: am 29705171: Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
|\ \ | |/ | | | | | | * commit 'bad62c532c8fabbada924c617d983fbfc94623e3': [MIPS64] add atomic-mips64
| * Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
| |\
| | * [MIPS64] add atomic-mips64Duane Sand2014-06-032-0/+253
| | | | | | | | | | | | | | | | | | Supplied by Broadcom. Change-Id: Ica8f4f6e713623e372a68e1dc11086ceb52516da
| * | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-201-0/+59
| |/ | | | | | | | | | | | | | | | | * 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
* | am b3697ec2: am c752d6dd: am bf082ffb: Merge "Updated trace.h to recognize ↵Elliott Hughes2014-05-281-1/+2
|\ \ | |/ | | | | | | | | | | ATRACE_TAG_BIONIC." * commit 'b3697ec2cb75d4f13c22a54b0ef90f4e8fb46e02': Updated trace.h to recognize ATRACE_TAG_BIONIC.
| * Merge "Updated trace.h to recognize ATRACE_TAG_BIONIC."Elliott Hughes2014-05-281-1/+2
| |\
| | * Updated trace.h to recognize ATRACE_TAG_BIONIC.Brigid Smith2014-05-271-1/+2
| | | | | | | | | | | | | | | Bug: 15116468 Change-Id: If8d4971505ffe5cbc193c6ad71618a5adb8192b6
* | | am 7aa8cdfb: am 21157abc: am 8814bd1d: Merge "include: cleanup for ↵Mark Salyzyn2014-05-233-2/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | -Wsystem-header" * commit '7aa8cdfb317dcb7efb7127b070526df09da05377': include: cleanup for -Wsystem-header
| * | include: cleanup for -Wsystem-headerMark Salyzyn2014-05-233-2/+4
| | | | | | | | | | | | | | | | | | | | | - warnings as errors, or errors introduced when -Wsystem-header was experimentally introduced. Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
* | | am 2113474a: am 17c3a227: am 617c28b8: Merge "Fix list_for_each_safe macro"Colin Cross2014-05-231-3/+3
|\ \ \ | |/ / | | | | | | | | | * commit '2113474ae090ee4c6a06864011ce8a4e4cae9673': Fix list_for_each_safe macro
| * | Merge "Fix list_for_each_safe macro"Colin Cross2014-05-221-3/+3
| |\ \
| | * | Fix list_for_each_safe macroThierry Escande2014-05-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second macro parameter is named 'next' like listnode structure 'next' field. Since the precompiler will expand all 'next' occurrences in the macro definition with what is passed by the caller, it is not possible to call this macro with something else than 'next' as second parameter. This patch replaces the 'next' parameter with 'n' allowing use of a next node not named 'next'. Change-Id: I78c859caf8193f21fe0bedaeaa8342d6e89ad14b Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | | am fcc81e3c: am 184eecf0: am 4ecbda41: Merge "Add list_add_head to libcutils"Colin Cross2014-05-231-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'fcc81e3c6f0724b3b360b19071005e559334bc58': Add list_add_head to libcutils
| * | | Merge "Add list_add_head to libcutils"Colin Cross2014-05-221-0/+8
| |\ \ \ | | |_|/ | |/| |
| | * | Add list_add_head to libcutilsSamuel Ortiz2014-05-131-0/+8
| | |/ | | | | | | | | | | | | | | | | | | | | | Adds a node to the head of the linked list. Change-Id: I03fc81f348c5c4fdab8680928b6e353413e4bc3c Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Yong Yao <yong.yao@intel.com>
* | | am b42f1413: am 0e71e3ab: am 9cae50b3: Merge "Bound the ADB connect time ↵Elliott Hughes2014-05-201-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | with a non-blocking connect" * commit 'b42f141315ae0929325335645d397db04a500c88': Bound the ADB connect time with a non-blocking connect
| * | Bound the ADB connect time with a non-blocking connectKen Lierman2014-05-191-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | am 29941ec8: am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic ↵Elliott Hughes2014-04-261-0/+1
|\ \ | |/ | | | | | | | | | | passes us." * commit '29941ec81705bdcad2b43f0059e1288304c523e8': Use the si_code value bionic passes us.
| * Use the si_code value bionic passes us.Elliott Hughes2014-04-251-0/+1
| | | | | | | | | | | | | | | | | | 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
* | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-04-111-0/+59
| | | | | | | | | | | | | | | | * 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 Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* | Adding a handy predicate function (str_parms_has_key()Paul McLean2014-03-251-0/+6
| | | | | | Change-Id: I1af5c260a1a820b65f0850ea9adb38b01fcb183c