summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename Android.soong.mk to Android.mkColin Cross2016-07-111-0/+3
| | | | | | | | | | Soong is always on now, so we don't have to distinguish between makefiles that should be ignored because Soong is handling them with an Android.bp file, and makefiles that are still needed with Soong. All obsolete Android.mk files have been removed, rename all Android.soong.mk files to Android.mk. Change-Id: Iabbddcbfb2c837cfd4556241b570474452cc5d4d
* Remove deprecated Android.mk filesColin Cross2016-05-261-85/+0
| | | | | | | These directories all have Android.bp files that are always used now, delete the Android.mk files. Change-Id: I8b0c89072a660c4a7a30fcefc76a7bbe247df977
* liblog: suppress pmsg on user buildsMark Salyzyn2016-03-291-0/+1
| | | | | | | | | - add optimized & cached LIBLOG_HIDDEN __android_log_is_debuggable() - check when writing, either LOG_ID_SECURITY, SafetyNet or debuggable when pushing content to the pmsg buffer. Bug: 27566046 Change-Id: I85f1b55ec329b38e00f4183836b6ed53046c323d
* liblog: split out transports into separate filesMark Salyzyn2016-03-221-2/+6
| | | | | | | | | | | | | Create config_logger, logger and logger_read to house the log interfaces. Add fake_logger, logd_logger and pmsg_logger to house the write and read transports. Allows for an easier and direct path to add new transports to the library. SideEffects: None, logger benchmark performance unaffected Bug: 27176738 Bug: 27405083 Change-Id: I01b38637334a5242905c8c89f6ab0a92e2540008
* liblog: audit declare LIBLOG_ABI_PUBLICMark Salyzyn2016-03-101-3/+3
| | | | | | | | | | | | | - replace <sys/cdefs.h> with local "log_cdefs.h" which fortifies and expands definitions, adding LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE and LIBLOG_WEAK. - clearly tag each interface as LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE, LIBLOG_WEAK or static depending on scope - Add -fvisibility=hidden to ensure nothing else leaks - some code standard adjustments Bug: 27566046 Change-Id: Ic14033c4e6d833d973beb035ddc1c6134fb35a3f
* liblog: __android_log_error_write use event list libraryMark Salyzyn2016-02-251-5/+4
| | | | | | | | | | Switch to the event list library to compose the associated event. SideEffects: Instead of composing event on a stack buffer of 512 bytes in size, a PAGE is allocated temporarily. Bug: 27356456 Change-Id: Ic15a87f49385834c2287ed82c26439b2c5eb4f77
* liblog: event log list logging handlerMark Salyzyn2016-02-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based off an initial request and effort by williamluh@google.com - Added the following functions: * Composing and Writing: android_log_context create_android_logger(uint32_t tag) int android_log_write_list_begin(android_log_context ctx) int android_log_write_list_end(android_log_context ctx) int android_log_write_int32(android_log_context ctx, int32_t value) int android_log_write_int64(android_log_context ctx, int64_t value) int android_log_write_string8(android_log_context ctx, const char *value) int android_log_write_float32(android_log_context ctx, float value) int android_log_write_list(android_log_context ctx, log_id_t id) * Reading and Interpreting: android_log_context create_android_log_parser(const char *msg, size_t len) android_log_list_element android_log_read_next(android_log_context ctx) android_log_list_element android_log_peek_next(android_log_context ctx) * Destroy context used above: int android_log_destroy(android_log_context *ctx); - Added unit gTests We moved implemented android_log_buffer_to_string() to the test since it is an alternate for already existing logprint functionality. Please move into liblog should it be of some common use, otherwise as is it is a good means of stessing the reading and interpreting handlers. Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 19235719 Change-Id: I4aa1927e8e6a75f0a129d15a27c891cf1ccd4f5c
* Revert "logd: liblog: whitelist "snet_event_log""Mark Salyzyn2016-01-061-1/+1
| | | | | | | | | | Callers will not guarantee that they can or will ratelimit, we need to retain the ability to blacklist snet_event_log as a result. This reverts commit 6aa21b225dd1600473388bd640443653d649420a. Bug: 26178938 Change-Id: Ibf47d2e23a84c56f5f72d02312c698df7ff2b601
* logd: liblog: whitelist "snet_event_log"Mark Salyzyn2015-12-301-1/+1
| | | | | | | | | | Dangerous bridge to cross to whitelist, who is special, who is not? Rationalized as these events are used to catch exploits on platform. As it stands no one should be allowed to block any messages in the security context, not even for development purposes. Bug: 26178938 Change-Id: Ibdc76bc0fe29ba05be168b623af1c9f41d7edbd2
* Fix bug number for linker related workaroundsDmitriy Ivanov2015-09-281-1/+1
| | | | | Bug: http:/b/24425865 Change-Id: I87e1af3cf39b5234647ecbbd5844c9d88eeb9200
* Ensure that libbase and liblog can be built for Windows.Stephen Hines2015-09-111-0/+1
| | | | Change-Id: If4adf1e2bd7ec36a7f02ae2e263d2db5187c6e7b
* Remove USE_MINGW/CYGWIN; Whitelist windows modulesDan Willemsen2015-09-021-21/+10
| | | | | | | | CYGWIN is not supported, USE_MINGW and HOST_OS==windows are being replaced with LOCAL_..._windows variables. Bug: 23566667 Change-Id: I3e4a1e4097dc994cf5abdce6939e83a91758fd75
* Add macro to call event logger for errors.William Luh2015-08-261-1/+1
| | | | | Bug:23180694 Change-Id: I566a290334345f48013029534efef3e08e726e40
* liblog: deprecate TARGET_USES_LOGDMark Salyzyn2015-07-281-8/+0
| | | | | | | This is not the kernel logger you are loiking for Bug: 22787659 Change-Id: Id65ed2e8e7ffe4b2be1bdeed65fa8db23bd66b51
* Fix SANITIZE_TARGET build of liblog.Evgenii Stepanov2015-06-121-0/+6
| | | | | | | | | * liblog does not use STL, don't link it. * ASan runtime library depends on liblog, hence liblog can never be sanitized. Bug: 21785137 Change-Id: I1e97378c61d4d18d740287f5f0881427aa7cc227
* Switch liblog.so to hash-style=bothDmitriy Ivanov2015-05-081-1/+1
| | | | | Bug: http://b/19059885 Change-Id: I7cde911f11b09c3a13553154aca6e291bb91befb
* Switch liblog to sysv-only hash styleDmitriy Ivanov2015-03-131-1/+1
| | | | | Bug: 19059885 Change-Id: I5519a4e19716303692d4117bc24988f21d5a829e
* Generate gnu hash for arm onlyGoran Jakovljevic2015-03-101-1/+1
| | | | | | | | | | | Fixes mips build failure caused by: https://android-review.googlesource.com/#/c/139580/ As previously discussed [1], MIPS does not support GNU-style ELF hashes. [1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk Change-Id: I757fef1d47663da3e414f5771dfc580ea7aa3732
* Generate sysv hash for liblogDmitriy Ivanov2015-03-091-0/+4
| | | | | Bug: 19059885 Change-Id: I6fff4372504e3ca0d870c5cafe6f19d412787923
* liblog: build cleanupMark Salyzyn2015-03-051-13/+9
| | | | | | | | - Drop CYGWIN build checking - Hard code the "liblog" event tag - Drop use of internal WITH_MINGW Change-Id: I7b63bd7fa4471f340f356b477a0e5e25fe83a851
* liblog: logprint use <endian.h> part threeMark Salyzyn2015-03-041-1/+3
| | | | | | | | Fix host/sdk builds: - Drop logprint from list of host products - Drop <endian.h> for FAKE_LOG_DEVICE Change-Id: I8aa854413ff6d809f0b04987cf913eb228e4213c
* liblog: Instrument logging of logd write dropsMark Salyzyn2015-03-041-4/+6
| | | | | | | | | | | | | - If logger system is prostrated, send an event message with the liblog tag from the associated UID and PID with a count of dropped messages once logging is resumed. - Added to the README a description of the error return values. - Describe in the README the appropriate mitigations for dropped messages. - If the caller sees this message, then /proc/sys/net/unix/max_dgram_qlen is likely too small Change-Id: Iaf387b9e5e1b6aa93bebc7481f9e8353732e3229
* liblog: add __android_log_is_loggable()Mark Salyzyn2015-02-091-1/+1
| | | | | | | | | - Add new liblog API __android_log_is_loggable(prio, tag, def) - future plan to integrate this into the runtime checks and into the logd daemon for filtration. Inert for now. Bug: 17760225 Change-Id: I16395b4d42acc08f0209f55a1cbf87b0b2112898
* Remove invalid 64-bit host objects.Stephen Hines2014-07-221-8/+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
* Host multilib build of both 32-bit and 64-bit libraries.Ian Rogers2014-06-051-0/+2
| | | | Change-Id: I54f91f385b109fc664a1a1f9320affb2a846fef1
* liblog: set -WerrorMark Salyzyn2014-05-071-4/+4
| | | | | | | - Deal with some -Wunused issues - Cleanup UNUSED to __unused transition Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-8/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-021-4/+0
| | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* Fix build some moreChristopher Tate2014-03-151-0/+2
| | | | | | | | Missed one. (cherry picked from commit f7f080ce62a4a448ef7ac6cc9bddfd55e615710a) Change-Id: I33bf8bcc651330b9bc434da02c47c29bc0d54369
* Fix the buildChristopher Tate2014-03-151-2/+8
| | | | | | (cherry-picked from commit 296dc446376e19d2ce995ae7bc886560523eca2d) Change-Id: I924f4796fbb70a0f45cc23a852e26e634c5b0e0e
* liblog: Build Breakage in sdk(linux)Mark Salyzyn2014-03-141-3/+3
| | | | | | - Build Breakage in branch: aosp-idea133 @ 1072786 Change-Id: I36da253b69a66977ec568a5f96d38b970c25fe3e
* logd: liblog: logcat: Arbitrary time to tailMark Salyzyn2014-03-141-2/+4
| | | | Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
* logd: liblog: logcat: Add LogWhiteBlackListMark Salyzyn2014-03-131-0/+6
| | | | | | | | | | | | | | | - 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: default user space loggerMark Salyzyn2014-03-121-2/+2
| | | | Change-Id: I16825c26f098241376d4014f3a8e93174387dbcf
* liblog: enable logging to logd.Mark Salyzyn2014-02-281-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* liblog: Add liblog test suiteMark Salyzyn2014-01-271-2/+3
| | | | | | (cherry picked from commit 8d1fdb509305e93eb46d45a6dcd34bedd6dc0742) Change-Id: Ia457d518b4e7ff37e840336ff0c48583709700d4
* liblog: fix build againColin Cross2014-01-271-6/+2
| | | | | | | | | log_read.c has to be in the target sources on all platforms, but never needs to be in the host sources. (cherry picked from commit 3c37fae4a472835c8e20060e1e6b7495b84f254a) Change-Id: Ie0829f3f1daf16d151c401653dbef603b1c2f59d
* liblog: git_master@964770 build problemMark Salyzyn2014-01-271-1/+4
| | | | | | | | - darwin does not get log reader (cherry picked from commit 5feea6890875c9046f40bdadc0dbd4a411e7f3f5) Change-Id: I64eb69a6099a88d2acf501de725c35741fd7e551
* liblog: Interface to support abstracting log readMark Salyzyn2014-01-271-0/+1
| | | | | | (cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e) Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee
* Move liblog headers to system/core/include/logColin Cross2013-07-241-0/+3
| | | | | | | | | Move the liblog headers to log/ instead of cutils/ to complete the separation of libcutils and liblog. cutils/log.h still exists and includes log/log.h in order to support the many existing modules that use cutils/log.h. Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
* Make a liblog.so for the host too.Elliott Hughes2012-05-031-1/+6
| | | | | | | | Change-Id: I0317bb3b80c6555bcb1ff9f2238f32be5f7adedb Conflicts: liblog/Android.mk
* Added rules to build 64-bit libraries: lib64cutils.a and lib64log.aAndrew Hsieh2012-03-021-0/+12
| | | | | | | | | | | Both libraries are needed to build four shared libraries in 64-bit for 64-bit emulator with "-gpu on" lib64OpenglRender.so lib64EGL_translator.so lib64GLES_CM_translator.so lib64GLES_V2_translator.so Change-Id: If57f72d4661a74f1d5e537568881f39132e0b43d
* Remove the simulator target from all makefiles.Jeff Brown2011-07-121-21/+10
| | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+72
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-72/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+72