summaryrefslogtreecommitdiffstats
path: root/liblog/log_read.c
Commit message (Collapse)AuthorAgeFilesLines
* 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