summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
* audio: fix audio_is_bluetooth_sco_device()Eric Laurent2014-04-241-6/+10
| | | | | Bug: 14268964 Change-Id: Ia2a185c5e0939930c5114209651a1e0db6c36ef3
* Improve liblog's fatal logging.Elliott Hughes2014-04-241-3/+3
| | | | | | | This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular assert(3). Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
* Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"Mark Salyzyn2014-04-171-0/+1
|\
| * logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-0/+1
| | | | | | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* | logd: libsysutils: logd startup outside init environmentMark Salyzyn2014-04-171-0/+1
|/ | | | Change-Id: I3426b6c3eebdd0c8258e966dcaaaa2825d7a23d1
* Include 64bit valgrind in the android_filesystem_config.Narayan Kamath2014-04-121-0/+1
| | | | | | Required so that we set the exectuable bit correctly. Change-Id: If59bd0ff47d2b4b2b8f92a1c007b4ba414ea1876
* Merge "logd: liblog: logcat: enable prune features for user"Mark Salyzyn2014-04-091-4/+0
|\
| * logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-021-4/+0
| | | | | | | | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* | Add guards to prevent typedefs when C++11 is available.Tim Murray2014-04-071-0/+3
| | | | | | | | | | | | char32_t and char16_t are both defined in C++11. Change-Id: I44fe8f4f05f230c18a1b77fa21b6a40c8f8ecc2d
* | Create an UnwindMapLocal object.Christopher Ferris2014-04-031-1/+1
|/ | | | | | | | | | | | | The way libunwind handles local unwinds is different from remote unwinds, so create a new map object to handle the differences. Add new test to verify the map data is being generated correctly. Add new tests to check for leaks. Refactor the BACK_LOGW code into a single header file. Change-Id: I01f3cbfc4b927646174ea1b614fa25d23b9b3427
* cutils: trace 64-bit compile issuesMark Salyzyn2014-03-201-9/+10
| | | | | | | - switch format to PRId64 for int64_t - switch format to PRId32 for int32_t Change-Id: I1e66db06810000936d584ed49234550abd96cdff
* logd: liblog: logcat: Arbitrary time to tailMark Salyzyn2014-03-142-5/+31
| | | | Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
* logd: liblog: logcat: Add LogWhiteBlackListMark Salyzyn2014-03-131-2/+11
| | | | | | | | | | | | | | | - liblog android_logger_get_log_size and android_logger_get_readable_size adjusted to return long instead of int because of -G flag extending range NB: ifdef'd only for userdebug and eng builds - liblog Add android_logger_[sg]et_prune_list and android_logger_set_log_size - logcat Add -P, -p and -G flags - logd Add LogWhiteBlackList and configurable log size (cherry picked from commit 18a5432158ad43b8faefe4950b30e760200ce0b4) Change-Id: I1572338c1b34bd968ad7867857ef708156ec3b6a
* logd: liblog: logcat: Add StatisticsMark Salyzyn2014-03-131-0/+3
| | | | | | | | | | | - logd add statistical collection and formatting - liblog add android_logger_get_statistics call - logcat add -S flag - logcat add -b all (cherry picked from commit 51a29c8dc445e4fb89860561933e54a231e6ffb4) Change-Id: I521753b1969ecd4590c956aeeb1557d101059d67
* libcutils: add method to get klog levelAlex Ray2014-03-071-0/+1
| | | | Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361
* logd: liblog: 64-bit issuesMark Salyzyn2014-03-052-8/+59
| | | | | | | | | - structure packing - move towards log_time from struct timespec - extend log_time to cover differences between log_time and struct timespec Change-Id: I106ed0b609917306d170044054b5b32645f2a295
* set /proc/sys/net/unix/max_dgram_qlen to large valueMark Salyzyn2014-03-031-0/+1
| | | | | | | | - init: set /proc/sys/net/unix/max_dgram_qlen to 300 - libsysutils: Add listen backlog argument to startListener - logd: set listen backlog to 300 Change-Id: Id6d37d6c937ba2d221e76258d89c9516619caeec
* liblog: enable logging to logd.Mark Salyzyn2014-02-281-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Modify liblog to send all messages to the new syslog user space daemon. Original-Change-Id: I0ce439738cd921efb2db4c1d6a289a96bdbc8bc2 Original-Change-Id: If4eb0d09409f7e9be3eb4bb7017073dc7e931ab4 Signed-off-by: Nick Kralevich <nnk@google.com> * Add a TARGET_USES_LOGD make flag for BoardConfig.mk to manage whether logd is enabled for use or not. * rename syslog to logd to avert confusion with bionic syslog * Add fake log support back in * prefilter for logging messages from logd * Fill in timestamps at logging source * update abstract log reader * switch from using suffix for id to v3 format * log a message when creating devices that a deprecated interface is being utilized. Signed-off-by: Mark Salyzyn <salyzyn@google.com> (cherry pick from commit 099e2c1f6f706a8600c1cef74cce9066fc315480) Change-Id: I47929a5432977a1d7235267a435cec0a7d6bd440
* Merge "AArch64: Use negative values in error enumeration"Narayan Kamath2014-02-271-10/+10
|\
| * AArch64: Use negative values in error enumerationAshok Bhat2014-02-201-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | With AArch64 the enumerations with values in the range 0x80000000 to 0x80000007 are being assigned to ssize_t typed variables which are 64-bit rather than 32-bit, and are being used in conditions where they are being checked for being negative. This is not the case when ssize_t is 64-bit, so redefine this to INT32_MIN value. Change-Id: I7a031a940a28658b3bf34bebac93dfb3ba397b05 Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | logd: initial checkin.Mark Salyzyn2014-02-263-8/+22
|/ | | | | | | | | | | | | | | | | | | | | | | | * Create a new userspace log daemon for handling logging messages. Original-Change-Id: I75267df16359684490121e6c31cca48614d79856 Signed-off-by: Nick Kralevich <nnk@google.com> * Merge conflicts * rename new syslog daemon to logd to prevent confusion with bionic syslog * replace racy getGroups call with KISS call to client->getGid() * Timestamps are filed at logging source * insert entries into list in timestamp order * Added LogTimeEntry tail filtration handling * Added region locking around LogWriter list * separate threads for each writer * /dev/socket/logd* permissions Signed-off-by: Mark Salyzyn <salyzyn@google.com> (cherry picked from commit 3e76e0a49760c4970b7cda6153e51026af98e4f3) Author: Nick Kralevich <nnk@google.com> Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
* Enable building init with -Wall -Werror.Stephen Smalley2014-02-191-5/+13
| | | | | | | | Eliminates various warnings from SELinux-related code. Bug: 12587913 Change-Id: I28921f0ebd934324436609540d95ccef58552b64 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* x86_64: Add atomic funtionsQiming Shi2014-02-112-1/+229
| | | | | | | This patch adds atomic functions for x86_64. Change-Id: I298c760a1e6efa2ce2c61a143f833b6785805442 Signed-off-by: Qiming Shi <qiming.shi@intel.com>
* log: add compile-time checking when ALOGV is disabledColin Cross2014-02-091-7/+14
| | | | | | | | | | Wrap the call in a if (0) when verbose logging is disabled to provide compile time checking. Also add a printf format attribute to the function to warn if parameters are incorrect. Change-Id: Ic77edeadcc4d886ca0f8b434f8550e18e22d5901
* Revert "Move to the canonical UniquePtr.h."Elliott Hughes2014-02-042-1/+240
| | | | | | This reverts commit 2a72c575d260cd256f767b7ad511a6959444134b. Change-Id: Idb485f1be2906e8c1c8f0da3df186a7aade027f6
* Move to the canonical UniquePtr.h.Elliott Hughes2014-02-042-240/+1
| | | | Change-Id: I5330c36d2b571acb6d3debd30b8020e33aa8a4a7
* LP64 should have debuggerd and debuggerd64.Elliott Hughes2014-01-311-0/+4
| | | | Change-Id: I4e39c200e6867bb9a5bbcfec1c449b8864028feb
* Remove dead code that looked like part of debuggerd.Elliott Hughes2014-01-311-7/+0
| | | | | | | Note that these were two different functions. The definition was unused, and the declaration was undefined. Change-Id: I2edd10a0ab9422cd5252bdb9ccdd726dc5fad531
* LP64: Enable debuggerd/libbacktrace/libunwind.Pavel Chupin2014-01-301-2/+11
| | | | | Change-Id: I2e432839f86c33c2adbaac8cc12ca8961956044b Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Merge "Re-enable libunwind for arm."Christopher Ferris2014-01-282-9/+8
|\
| * Re-enable libunwind for arm.Christopher Ferris2014-01-282-9/+8
| | | | | | | | | | | | | | | | | | | | Update to handle the new optimized way that libunwind works. In addition, a small refactor of the BacktraceMap code. A few new tests of for good measure. Change-Id: I2f9b4f5ad5a0dfe907b31febee76e4b9b94fb76f
* | libsysutils: SocketListener export releaseMark Salyzyn2014-01-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | * Foreground thread (legacy) closes connection by reporting false return value for onDataAvailable. * Background thread can choose instead to close the connection asynchronously by calling release, must return true for the onDataAvailable method. (cherry picked from commit d7ad4e409eaac53db3a9789060097b712850b337) Change-Id: I70ab37d5c22b02804aa3b4dfb26cc9b75291f8b6
* | libsysutils: Add iovec/runOnEachSocketMark Salyzyn2014-01-273-13/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SocketClient: * Replace sendDataLocked with sendDataLockedv which takes an iovec. * Add a version of sendData, sendDatav, which takes an iovec. * do not preserve iovec content through sendDatav SocketListener: * Add runOnEachSocket, which allows to to specify a SocketClientCommand to run individually on each socket. This allows you to do broadcast-like actions customized for each individual socket. * Client safe list reference counting for sendBroadcast & runOnEach Socket (cherry picked from commit a6e965578e44f8ae5f98de822ba5decec381d5fc) Signed-off-by: Nick Kralevich <nnk@google.com> Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: I716f89c01b4cb7af900045c7e41fac1492defb06
* | liblog: Add const pedanticsMark Salyzyn2014-01-271-11/+11
| | | | | | | | | | | | (cherry picked from commit 9e03ce45f999b75000f1652747783d74e7063b9a) Change-Id: I819695b778ac08fcfc9b1a87f3f86e5715f53084
* | liblog: Add liblog test suiteMark Salyzyn2014-01-272-2/+81
| | | | | | | | | | | | (cherry picked from commit 8d1fdb509305e93eb46d45a6dcd34bedd6dc0742) Change-Id: Ia457d518b4e7ff37e840336ff0c48583709700d4
* | liblog: deprecate export LOGGER ioctl definitionsMark Salyzyn2014-01-271-15/+0
| | | | | | | | | | | | (cherry picked from commit 2e44a9ea2518024a07f38c2cc6066ec2074d5210) Change-Id: I150cad9309255bec2b8bc7230c744e9bbb1b9578
* | liblog: deprecate export of LOGGER_LOG_* definesMark Salyzyn2014-01-271-6/+1
| | | | | | | | | | | | (cherry picked from commit 73459a5c87dc9e7c2aeee00597b9d3cc8d9a190e) Change-Id: I263af8e889f8f2ad91b91757caf90a4d17823dab
* | liblog: resolve build warning messagesMark Salyzyn2014-01-271-3/+3
| | | | | | | | | | | | (cherry picked from commit 153b370624c3da0660281f692fbe3f2da96cfd70) Change-Id: Icc6f1f2c926a008efc4df71022cfde8d0e285880
* | liblog: drop use of sys/cdefs.hMark Salyzyn2014-01-272-6/+12
| | | | | | | | | | | | (cherry picked from commit c96a44888a50fdc6155cb1a7fa8e37bee00fafc0) Change-Id: I44ea5d6b572e3712c301e6ebf4b34e6225d7e18b
* | liblog: Interface to support abstracting log readMark Salyzyn2014-01-272-17/+123
| | | | | | | | | | | | (cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e) Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee
* | libcutils: Move list.c to inlines on list.hMark Salyzyn2014-01-271-4/+20
|/ | | | | | (cherry picked from commit 0ea3624b3ef2a6545df770d06338c4655386220d) Change-Id: I0572555a194d2560e74dfbf07abcec05e9a276a2
* system/core: rename aarch64 target to arm64Colin Cross2014-01-232-1/+1
| | | | | | | Rename aarch64 build targets to arm64. The gcc toolchain is still aarch64. Change-Id: Ia92d8a50824e5329cf00fd6f4f92eae112b7f3a3
* libcutils: fix atomic_memory_store_barrierColin Cross2014-01-221-1/+1
| | | | | | | dmb isht is not a valid instruction, fix it to be dmb ishst (data memory barrier, inner shareable, on writes). Change-Id: I98723ccd8618b7863cb55da53dc29b979c9905a5
* Add PROT_* constants not found on windows.Christopher Ferris2014-01-171-0/+8
| | | | Change-Id: Ic515363ed66dfb2d8e1a6fdfa274508b3a91311d
* Rewrite libbacktrace to be all C++.Christopher Ferris2014-01-165-157/+150
| | | | | | | | | | | | | This includes removing the map_info.c source and replacing it with the BacktraceMap class to handle all map related code. Change all callers of libbacktrace map functionality. Also modify the corkscrew thread code so that it doesn't need to build the map twice (once in the corkscrew format and once in the libbacktrace format). Change-Id: I32865a39f83a3dd6f958fc03c2759ba47d12382e
* Merge "AArch64: Add atomic functions"Elliott Hughes2014-01-143-1/+247
|\
| * AArch64: Add atomic functionsAshok Bhat2014-01-143-1/+247
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds atomic functions for AArch64. The functions will be revisited later for potential optimizations using assembly or otherwise. This patch also introduces new 64-bit atomic functions for LP64 platforms. Change-Id: Id2127dd01cea65025f939e955d73d27e95d8687e Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | Next phase of the move, reformat use C++ features.Christopher Ferris2014-01-132-0/+9
|/ | | | | | | | | | | | | | | | | Use the libbacktrace C++ interface instead of the C interface in debuggerd. Reformat the debuggerd code to be closer to Google C++ style. Fix all debuggerd casts to be C++ casts. Add a frame number to the frame data structure for ease of formatting and add another FormatFrameData function. Change the format_test to use the new FormatFrameData function. Modify all of the backtrace_test to use the C++ interface. Change-Id: I10e1610861acf7f4a3ad53276b74971cfbfda464
* Move BACKTRACE_NO_TID to BACKTRACE_CURRENT_THREAD.Christopher Ferris2014-01-092-3/+3
| | | | | | | | | | | Use a bit better name for this. The other name was a bit confusing. Change-Id: I1261f2ee3854a9c8b82133ad0bfbbbe48b43c9ac (cherry picked from commit 242b1a8c7a5ec73172bac811e51acbc27201f22c) Conflicts: libbacktrace/Backtrace.cpp