summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* am e862350b: Merge "Kill HAVE_PTHREADS."Yabin Cui2015-01-271-18/+16
|\ | | | | | | | | * commit 'e862350bb2eb3d3eda526da7f3b6d5c2dd40a445': Kill HAVE_PTHREADS.
| * Kill HAVE_PTHREADS.Yabin Cui2015-01-271-18/+16
| | | | | | | | | | Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
* | am d426a4e7: Merge "Move 32 bit/64 bit check into debuggerd."Christopher Ferris2015-01-221-53/+5
|\ \ | |/ | | | | | | * commit 'd426a4e7b62c18124827868ddbf8987aa433451b': Move 32 bit/64 bit check into debuggerd.
| * Move 32 bit/64 bit check into debuggerd.Christopher Ferris2015-01-201-53/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 64 bit systems, calls to dump_backtrace_to_file or dump_tombstone try and directly contact the correct debuggerd (32 bit vs 64 bit) by reading the elf information for the executable. Unfortunately, system_server makes a call to dump_backtrace_to_file and it doesn't have permissions to read the executable data, so it defaults to always contacting the 64 bit debuggerd. This CL changes the code so that all dump requests go to the 64 bit debuggerd, which reads the elf information and redirects requests for 32 bit processes to the 32 bit debuggerd. Testing: - Forced the watchdog code in system_server to dump stacks and verified that all native stacks are dumped correctly. - Verified that dumpstate and bugreport still properly dump the native processes on a 64 bit and 32 bit system. - Intentionally forced the 64 bit to 32 bit redirect to write only a byte at a time and verified there are no errors, and no dropped data. - Used debuggerd and debuggerd64 to dump 32 bit and 64 bit processes seemlessly. - Used debuggerd on a 32 bit system to dump native stacks. Bug: https://code.google.com/p/android/issues/detail?id=97024 Change-Id: Ie01945153bdc1c4ded696c7334b61d58575314d1
* | am 45c4c06f: Merge "Remove unused cruft from libcutils."Elliott Hughes2015-01-162-83/+0
|\ \ | |/ | | | | | | * commit '45c4c06ffe6f38e0f77f37f488e07f2537eddd45': Remove unused cruft from libcutils.
| * Remove unused cruft from libcutils.Elliott Hughes2015-01-152-83/+0
| | | | | | | | Change-Id: I316d39e8e0a9aa385d8e1f37678b8bf2c03441eb
* | am 9f72ef89: Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-161-9/+17
|\ \ | |/ | | | | | | * commit '9f72ef8944a93bd333c6c7f87c7f7d79207ae663': Extend to receive NFLOG packets.
| * Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-161-9/+17
| |\
| | * Extend to receive NFLOG packets.Jeff Sharkey2015-01-151-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Packets captured and logged by the NFLOG target are unicast, so extend to catch and decode them. To avoid escaping issues, the raw contents are passed around as hex strings. Bug: 18335678 Change-Id: Ib7299500baa00080a1f000f9da843eb527363353
| * | Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-3/+29
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 (cherry picked from commit 5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38) Change-Id: I39e8e9c60209e3ef9efac795fedb8e1edce2bd3e
* | am 5f2ff6a9: Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-3/+29
|\ \ | | | | | | | | | | | | * commit '5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38': Add timed versions of stack dumping functions.
| * | Add timed versions of stack dumping functions.Christopher Ferris2015-01-141-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
* | | am ec556521: Merge "Remove HAVE_LIBC_SYSTEM_PROPERTIES and ↵Elliott Hughes2015-01-121-184/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | HAVE_SYSTEM_PROPERTY_SERVER." * commit 'ec556521e23f66ea52e41a7d9540b2dec31766c5': Remove HAVE_LIBC_SYSTEM_PROPERTIES and HAVE_SYSTEM_PROPERTY_SERVER.
| * | Remove HAVE_LIBC_SYSTEM_PROPERTIES and HAVE_SYSTEM_PROPERTY_SERVER.Elliott Hughes2015-01-121-184/+2
| | | | | | | | | | | | Change-Id: I3d92dbecebd2bb449a8c4332de684919a58847ad
* | | am fdb3da59: Merge "Use getmntent when accessing /proc/mounts."Yabin Cui2015-01-061-24/+9
|\ \ \ | |/ / | | | | | | | | | * commit 'fdb3da5953b70dc87a05d28c31cb0dc06b8181aa': Use getmntent when accessing /proc/mounts.
| * | Use getmntent when accessing /proc/mounts.Yabin Cui2015-01-051-24/+9
| | | | | | | | | | | | | | | Bug: 18887435 Change-Id: I6d7f95bbdb976428d4722bd640745e73c9839160
* | | am 0e74cfb6: Merge "Fix references to HAVE_PRCTL."Elliott Hughes2014-12-151-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit '0e74cfb677319c0f006dcc81f74fb21956807d2a': Fix references to HAVE_PRCTL.
| * | Fix references to HAVE_PRCTL.Elliott Hughes2014-12-151-2/+2
| | | | | | | | | | | | Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
* | | am fae953eb: Merge "HAVE_ANDROID_OS implies that you have <pthread.h> and ↵Elliott Hughes2014-12-151-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | <sched.h>." * commit 'fae953ebccfabfa500b3ebca93202063c8e3501d': HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>.
| * | HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>.Elliott Hughes2014-12-141-1/+1
| | | | | | | | | | | | Change-Id: Ica7940c00d1d5da9d50711fd138dd459deec9b6d
* | | am 374de72b: Merge "Libcutils: Remove unused variable"Andreas Gampe2014-11-251-1/+0
|\ \ \ | |/ / | | | | | | | | | * commit '374de72bbc218198e6a5f09ae4da853d02199b5c': Libcutils: Remove unused variable
| * | Libcutils: Remove unused variableAndreas Gampe2014-11-241-1/+0
| | | | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, remove unused variable. Change-Id: Iaf6dd7b84ee4ef4734a48b37a4d0ca8287ca5fb5
* | | am eda16b98: Merge "Kill LOCAL_SOCKET_NAMESPACE."Elliott Hughes2014-11-222-4/+4
|\ \ \ | |/ / | | | | | | | | | * commit 'eda16b98dce3ef4c75b7b46c6acdab2b6970f54a': Kill LOCAL_SOCKET_NAMESPACE.
| * | Kill LOCAL_SOCKET_NAMESPACE.Elliott Hughes2014-11-212-4/+4
| | | | | | | | | | | | Change-Id: I18928f89f66c37be310c45ff4c05a6d47ab84f66
* | | am 3ef0460e: Merge "Remove the error-prone TARGET_CPU_SMP from system/core."Elliott Hughes2014-11-171-10/+2
|\ \ \ | |/ / | | | | | | | | | * commit '3ef0460e86f2a7c5442bcf424b8e83fdfb8e3669': Remove the error-prone TARGET_CPU_SMP from system/core.
| * | Remove the error-prone TARGET_CPU_SMP from system/core.Elliott Hughes2014-11-171-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 29a34a5e: Merge "Disable the static libcutils tests."Dan Albert2014-11-141-15/+17
|\ \ \ | |/ / | | | | | | | | | * commit '29a34a5e7c249046a995a140ba30fa10960c7d42': Disable the static libcutils tests.
| * | Disable the static libcutils tests.Dan Albert2014-11-141-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | The static libcutils tests cannot be built when using libc++ because there are multiple symbol definition errors between libc++ and libgcc. Bug: 18389856 Change-Id: I6f41c561f97b3a37477f844e9abf6551524a0fa3
* | | am 64d7117e: Merge "Second attempt to "Rewrite atomic.h to use stdatomic.h.""Hans Boehm2014-11-141-1/+8
|\ \ \ | |/ / | | | | | | | | | * commit '64d7117efc7f7b8b477cd216a119b07041d8f406': Second attempt to "Rewrite atomic.h to use stdatomic.h."
| * | Second attempt to "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-11-131-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 06279285: Merge "Revert "Move some tests to libc++.""Dan Albert2014-11-121-3/+1
|\ \ \ | |/ / | | | | | | | | | * commit '06279285ae38b58988a9431c89b8689d8e16904e': Revert "Move some tests to libc++."
| * | Revert "Move some tests to libc++."Dan Albert2014-11-111-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | The build system is still linking both libgcc and libcompiler-rt, which is causing duplicate symbol errors on some architectures. This requires a fix in the build system, so reverting for now. This reverts commit e3cccbfd4776644c7cb705d52f51ca948df34f9a.
* | | am 7d196df6: Merge "Move some tests to libc++."Dan Albert2014-11-121-1/+3
|\ \ \ | |/ / | | | | | | | | | * commit '7d196df6f9990b5c93e0661fb0867971da7e6c34': Move some tests to libc++.
| * | Move some tests to libc++.Dan Albert2014-11-111-1/+3
| | | | | | | | | | | | Bug: 15193147 Change-Id: I93244e4a5d0c751056910ec8005a92401d305716
* | | am 85507404: Merge "Remove dead code."Elliott Hughes2014-11-081-8/+0
|\ \ \ | |/ / | | | | | | | | | * commit '855074043144e74156972e7a3416808dc6696452': Remove dead code.
| * | Remove dead code.Elliott Hughes2014-11-081-8/+0
| | | | | | | | | | | | | | | | | | __APPLE__ => HAVE_FUNOPEN. Change-Id: I191cccd9b75020ffbb3281283ce1f1b7abc15d22
| * | am 07f1300c: am 7979f1ce: Merge "Do not inline rarely used trace function ↵Chih-Hung Hsieh2014-10-151-0/+57
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | bodies." * commit '07f1300c4c4f7d3c0df540bf8df3443c3f4539cd': Do not inline rarely used trace function bodies.
| * \ \ am ad0ff1d9: am 4fceda2b: Merge "Add -no-integrated-as at local level."Chih-Hung Hsieh2014-10-061-0/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'ad0ff1d99cd00ce53f667b27e53f44e802315a36': Add -no-integrated-as at local level.
| * \ \ \ am 072877af: am 41198eea: Merge "Revert "Rewrite atomic.h to use stdatomic.h.""Hans Boehm2014-10-041-8/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '072877af485d49f11e227c0d22a7bb4a341533d6': Revert "Rewrite atomic.h to use stdatomic.h."
| * \ \ \ \ am f5204549: am 028928fe: Merge "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-041-1/+8
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f5204549faf7310cc808bcb3676fb36268178e26': Rewrite atomic.h to use stdatomic.h.
| * \ \ \ \ \ am be0d295d: am 19d686ee: Merge "Don\'t manually link stlport."Dan Albert2014-09-261-1/+1
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'be0d295da912076239a1e112c4b7b94be10cf7af': Don't manually link stlport.
| * \ \ \ \ \ \ am 6c03b85f: am 32e2f1be: Merge "Clean up memset[16,32] routines: unify ↵Elliott Hughes2014-09-189-1275/+1209
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | files names, remove redundant wrapper for 32-bit, remove Atom caches sizes for 64-bit, fix license." * commit '6c03b85f1dcfd0efd2ec741cbfb6c5ecc404fbd8': Clean up memset[16,32] routines: unify files names, remove redundant wrapper for 32-bit, remove Atom caches sizes for 64-bit, fix license.
* | \ \ \ \ \ \ \ Merge "Fix native_handle_create to check if malloc fails" into lmp-mr1-devMichael Lentine2014-11-041-3/+5
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | automerge: b542285 * commit 'b5422854361be038b812f1c0272c66cdb4618a4b': Fix native_handle_create to check if malloc fails
| * | | | | | | | Fix native_handle_create to check if malloc failsMichael Lentine2014-11-031-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18076253 Change-Id: I8dbe3af88f52f18f74a3ab857fea53ae7585e2f7
* | | | | | | | | am 07f1300c: am 7979f1ce: Merge "Do not inline rarely used trace function ↵Chih-Hung Hsieh2014-10-151-0/+57
|\ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bodies." * commit '07f1300c4c4f7d3c0df540bf8df3443c3f4539cd': Do not inline rarely used trace function bodies.
| * | | | | | | | 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
* | | | | | | | am 33b33549: Merge "Make the default cgroup, the foreground cgroup." into ↵Riley Andrews2014-10-081-23/+3
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-dev * commit '33b335495c7b8eea4b9af13a7157cf83cd085129': Make the default cgroup, the foreground cgroup.
| * | | | | | | Make the default cgroup, the foreground cgroup.Riley Andrews2014-10-071-23/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All kernel services will now be in the same cgroup as foreground applications. This will now make kernel threads not implicitly higher priority than android foreground services. Bug 17681097 Change-Id: I28e81c7aade50428d5395df86f00ce01c1e7af02
* | | | | | | | am ad0ff1d9: am 4fceda2b: Merge "Add -no-integrated-as at local level."Chih-Hung Hsieh2014-10-061-0/+3
|\ \ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | * commit 'ad0ff1d99cd00ce53f667b27e53f44e802315a36': Add -no-integrated-as at local level.
| * | | | | | | 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