summaryrefslogtreecommitdiffstats
path: root/liblog/log_read.c
Commit message (Collapse)AuthorAgeFilesLines
* liblog: Add kernel log idMark Salyzyn2015-05-131-0/+1
| | | | | | (cherry pick from commit 440e109d642b691eb857d14bcd1af76740e305fa) Change-Id: I53002f05a8bdf8d67e1d761c56c8761d3b534a76
* liblog: add pstore readMark Salyzyn2015-02-261-0/+171
| | | | | | | | | | | Used to pull the Android log messages after a reboot. Adding an ANDROID_LOG_PSTORE flag to the mode parameter in calls to android_logger_list_alloc() and android_logger_list_alloc_time(). The side effects are that android_logger_clear() and android_logger_list_read() will react with the user space pstore driver. Forms a companion to the pstore console logs. Change-Id: I7bb07b87b3bf73f059a21af3f810af37c7715b6d
* liblog: introduce ANDROID_LOG_* flagsMark Salyzyn2015-02-251-6/+6
| | | | | | | | Move away from using POSIX open(2) flags and introduce ANDROID_LOG_* flags to replace them. Add security by preventing random mode flags from getting into underlying POSIX calls. ANDROID_LOG_* flags overlap POSIX O_* flag definitions. Change-Id: Ib32bb64c287e8bf150be62242e1ba46bb37839fc
* liblog: add __android_log_is_loggable()Mark Salyzyn2015-02-091-0/+4
| | | | | | | | | - 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
* Kill LOCAL_SOCKET_NAMESPACE.Elliott Hughes2014-11-211-3/+3
| | | | Change-Id: I18928f89f66c37be310c45ff4c05a6d47ab84f66
* liblog: set -WerrorMark Salyzyn2014-05-071-10/+9
| | | | | | | - Deal with some -Wunused issues - Cleanup UNUSED to __unused transition Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
* liblog: Statistics truncated to 16384 bytesMark Salyzyn2014-04-211-2/+37
| | | | | | | | | | | - if network read/write broken up, reassemble the pieces. - Use a 20ms poll to check if a new fragment has been sent by the other side. - fixup logd-unit-tests to take a (simplified) fragment from the liblog changes. Bug: 14164765 Change-Id: I98ff87888c119e1e8349717646d0f733e8971bc8
* logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-1/+2
| | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-021-8/+0
| | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* liblog: improve errno handling on read failureGreg Hackmann2014-03-171-3/+7
| | | | | | | | | 1. socket() failures should skip close(), since sock is not an open fd 2. on other I/O related failures, preserve errno around the close() call 3. set errno to a meaningful value on check_log_success() failure Change-Id: I0fb9e726ae5fee2f7b84344aa925e5159d57c360 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* logd: liblog: logcat: Arbitrary time to tailMark Salyzyn2014-03-141-0/+34
| | | | Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
* logd: liblog: logcat: Add LogWhiteBlackListMark Salyzyn2014-03-131-8/+53
| | | | | | | | | | | | | | | - 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/+26
| | | | | | | | | | | - 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
* liblog: enable logging to logd.Mark Salyzyn2014-02-281-398/+321
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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: deprecate export LOGGER ioctl definitionsMark Salyzyn2014-01-271-0/+11
| | | | | | (cherry picked from commit 2e44a9ea2518024a07f38c2cc6066ec2074d5210) Change-Id: I150cad9309255bec2b8bc7230c744e9bbb1b9578
* liblog: high CPU usage from logcatMark Salyzyn2014-01-271-5/+7
| | | | | | | | | | BUG: 12457855 - log_read.c poll timeout should be -1 instead of 0 when idling (cherry picked from commit 080bbfab94ce91e4845860d5253eea6d869bbc18) Change-Id: I9082a15fae0fbf999c0ed516950a49d65a279298
* liblog: Interface to support abstracting log readMark Salyzyn2014-01-271-0/+652
(cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e) Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee