summaryrefslogtreecommitdiffstats
path: root/logd
Commit message (Collapse)AuthorAgeFilesLines
* logd: logcat: Add persist.logd.size group of propertiesMark Salyzyn2014-05-062-2/+54
| | | | | | | | | - logd Add persist.logd.size (global), persist.logd.size.<logid> - logcat report a more flexible multiplier in -g command. Bug: 14563261 Bug: 14469172 Change-Id: Ie389caa14ad3ae3d4a3a3cc463425bb9dbc5e483
* logd: default off by-UID spam filterMark Salyzyn2014-05-061-2/+2
| | | | | Bug: 14469172 Change-Id: I37c8dbcea0490afb994cbe6f033591fea1c58bc8
* logd: build breakage in git_master-nova @ 1151709Mark Salyzyn2014-05-021-1/+1
| | | | Change-Id: Ic7920d1b0930155c20a896720a79af62f8acacc1
* logd: turn on -WerrorMark Salyzyn2014-05-023-5/+2
| | | | | | - Deal with some -Wunused / -Wunused-variable issues Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc21
* logd: 64-bit compile issueMark Salyzyn2014-05-021-3/+3
| | | | | | | - ULONG_MAX is used against an uint32 - Add tv_sec_max and tv_nsec_max constants to log_time Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
* logd: oneline statistics does not report PID goneMark Salyzyn2014-05-012-10/+28
| | | | | | | - oneline, add check for gone - Add pidGone() method, which caches the gone status Change-Id: I8f03daeafb58583c2b08ec6b540486c05da0872d
* logd: add logd.auditd propertyMark Salyzyn2014-04-294-23/+41
| | | | | | | | - permit us a mechanism to disable auditd - standardize property boolean Bug: 14275676 Change-Id: I76f245c6aee511ed44274159e0ea55915b484dda
* logd: add thread setnameMark Salyzyn2014-04-295-0/+25
| | | | | | | - permits easier determination of logd thread at fault in a stack trace from debuggerd. Bug: 14275676 Change-Id: Iac2c523147e2bcce34ab7ddcecd02582c5fa7cc0
* logd: enable UID spam filter and testMark Salyzyn2014-04-252-3/+52
| | | | Change-Id: Ie9c7a744e341e6e64afa14973d4d095717c97933
* logd: Statistics improvementsMark Salyzyn2014-04-253-38/+108
| | | | | | | | - Drop in-place sorting. - Add fast-track for uid sizes and elements. - Add sort() for per-uid and per-pid statistics. Change-Id: Ib8655d4cc0b3bd4e87534522987bcc7fc7a5251a
* Merge "logd: liblog: ALOG silently drops excessively long messages"Mark Salyzyn2014-04-241-1/+1
|\
| * logd: liblog: ALOG silently drops excessively long messagesMark Salyzyn2014-04-241-1/+1
| | | | | | | | | | Bug: 14280914 Change-Id: Idddd29784625094e54144953c29f64692a88eee9
* | logd: Add README.propertyMark Salyzyn2014-04-241-0/+11
|/ | | | Change-Id: I89da10a73470b037f1811a9890d959cae186f257
* liblog: Statistics truncated to 16384 bytesMark Salyzyn2014-04-211-1/+20
| | | | | | | | | | | - 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
* Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"Mark Salyzyn2014-04-172-2/+2
|\
| * logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-162-2/+2
| | | | | | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* | logd: libsysutils: logd startup outside init environmentMark Salyzyn2014-04-176-3/+72
|/ | | | Change-Id: I3426b6c3eebdd0c8258e966dcaaaa2825d7a23d1
* logd: Add logd_testMark Salyzyn2014-04-153-0/+666
| | | | | | | | | | | | | | * Test statistics output, all four main log id types are checked to be present, and output is properly formatted with header (ascii new-line terminated byte count) and trailer (newline formfeed) frames. * On dev build test dgram_qlen, circumvent if liblog benchmarks executed first though. * Test if kernel and user space loggers are present, and if any content has leaked to both. * test benchmark and use it to verify worst UID pruning Change-Id: I890c89f64825956f40108de806ed750b0170ac6c
* logd: Statistics: Add up to 10 chattiest clientsMark Salyzyn2014-04-101-7/+108
| | | | | | | | | - embellish pid name - >1% of the logs - fix PID gone detection (EPERM) - some ? : cleanup Change-Id: Iba3b306e1fee43e53931165819a398693910514b
* Merge "logd: liblog: logcat: enable prune features for user"Mark Salyzyn2014-04-096-72/+7
|\
| * logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-026-72/+7
| | | | | | | | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* | Merge "logd: fix LogStatistics::format freeing wrong pointer"Greg Hackmann2014-04-071-1/+1
|\ \
| * | logd: fix LogStatistics::format freeing wrong pointerGreg Hackmann2014-04-071-1/+1
| |/ | | | | | | | | | | | | | | Fixes a leak and use-after-free if a client passes in an already-allocated target buffer (currently none do) Change-Id: Ie20c30bd5ba31e1b6db73885bd9d2ebd7e40dc27 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* | logd: Turn off default prune by worst UIDMark Salyzyn2014-04-071-1/+1
| | | | | | | | | | | | - Algorithm places too much weight on stack dumps Change-Id: Ibb31a59892870397b780965ec791f47a4ce87eaf
* | logd: auditd: add logd.auditd.dmesg propertyMark Salyzyn2014-04-073-7/+30
| | | | | | | | Change-Id: If4a579c2221eec99cf3f6acf59ead8c2d5230517
* | logd: selinux auditd initial commitWilliam Roberts2014-04-077-2/+639
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial commit for an audit daemon that writes kernel audit messages to the Android logger. The daemon searches dmesg for all lines that contain "audit" and writes them. Then receiving the messages from the netlink socket. It also formats the messages so they are compatable with ausearch (type=<t> <m> format) Modified: Mark Salyzyn <salyzyn@google.com> - do not start auditd - merge into logd, stripping unnecessary file logging. - Convert headers and code to support C++ - Fix bugs in libaudit - squash timestamp (replace with 0.0) due to duplication - squash pid due to duplication - squash comm due to duplication Change-Id: I421bcf33e7e670d596628b1b5c7c25536ce2d3fe
* | logd: Add pidToUid helperMark Salyzyn2014-04-073-0/+19
| | | | | | | | Change-Id: I23ebae1957c027bff6cbc2573a227bf0c44c08a2
* | logd: Add pidToName helperMark Salyzyn2014-04-073-6/+69
| | | | | | | | Change-Id: Idd8e804ab65feb8dc432150ae701464de1ad5302
* | logd: transitory reader thread create should be detachedMark Salyzyn2014-04-041-5/+16
|/ | | | | Bug: 13692914 Change-Id: Ia7306e6e844ae9f17c6f594bf6b25f3148652570
* logd: build breakage in userMark Salyzyn2014-04-011-0/+2
| | | | | | build breakage in branch: git_klp-dev-gpl @ 1101951 Change-Id: I4c9681bf4c97368ec19f5a79fef134aba937f337
* logd: Add minimum time bucket statisticsMark Salyzyn2014-04-015-5/+178
| | | | | | | | | | * Only enabled for dev builds because halves performance. - Used to establish if /proc/sys/net/unix/max_dgram_qlen is appropriate for the platform (see logd/LogStatistics.cpp comments) - enabled if logd.dgram_qlen.statistics is not zero/empty Change-Id: Ib8ecfeb75b6f0f954c099a6b1032b8afb5efcbd4
* Merge "logd: compile warning message"Mark Salyzyn2014-03-241-1/+1
|\
| * logd: compile warning messageMark Salyzyn2014-03-211-1/+1
| | | | | | | | Change-Id: I7ddd010031299395cad96f1743d7a7e6a6866b4c
* | logcat: white and blacklist failureMark Salyzyn2014-03-212-3/+5
|/ | | | | | | | - logcat improperly squashes out count - logcat test enhanced to catch failure - logd places entries in ascending sorted order Change-Id: If39d8e2c40852b520c98e7840034ab63c2538e5d
* logd: liblog: Thread IDs missing from logcat -v threadMark Salyzyn2014-03-215-10/+21
| | | | | | | - stuff caller's thread id into the packet. Bug: 13568206 Change-Id: I02d0cdf9b1d9e839ff8969f591db42dfe6e4cc95
* logd: Logging is truncatedMark Salyzyn2014-03-181-1/+2
| | | | | | | - stack buffer undersized Bug: 13514601 Change-Id: I3e5dda2daa7531ddcacece33dfdecaa28dcca765
* logd: Find log time for arbitrary time to tailMark Salyzyn2014-03-141-6/+51
| | | | | | | - prototype to evaluate the increase in complexity or performance impact. Change-Id: I4e815d74c023092fbb75055d260f75de57ad6522
* logd: liblog: logcat: Arbitrary time to tailMark Salyzyn2014-03-146-11/+41
| | | | Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
* logd: liblog: logcat: Add LogWhiteBlackListMark Salyzyn2014-03-139-48/+603
| | | | | | | | | | | | | | | - 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: prune by worst offending UIDMark Salyzyn2014-03-131-1/+54
| | | | | | (cherry picked from commit 3c4919e4748d32d7f3e147ab57f4fafee28c7447) Change-Id: I39965007569123ff5eebe01b5bfa555bbcb2dfe7
* logd: liblog: logcat: Add StatisticsMark Salyzyn2014-03-137-19/+802
| | | | | | | | | | | - 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
* logd: liblog: 64-bit issuesMark Salyzyn2014-03-054-14/+16
| | | | | | | | | - 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-1/+2
| | | | | | | | - 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
* logd: Always build logdMark Salyzyn2014-02-281-4/+0
| | | | | | - build breakage aosp-idea133 @ 1049092 Change-Id: Iabac6009567926137f455044b33ab5d67924896d
* liblog: enable logging to logd.Mark Salyzyn2014-02-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* logd: institute getGroups for socket credentialsMark Salyzyn2014-02-284-17/+126
| | | | | | (cherry pick from commit 4d851290fc81eb36d2fcf76e6f06213a28b877f5) Change-Id: Ib8be84d2a3f873e91fb1495df439a498f395c137
* logd: Remove $(KERNEL_HEADERS) include.Martijn Coenen2014-02-271-2/+0
| | | | | | | | | Points to wrong kernel-headers dir in multi-arch builds. (cherry picked from commit 920a5629ff91ee0f5decaaf4f16a8fb3af752496) Change-Id: I5055bf5cd80119a34f0a6b0872ffb0a422a06baf
* logd: Add SCHED_BATCH to reduce priorityMark Salyzyn2014-02-261-0/+8
| | | | | | (cherry picked from commit 85620a1bfff1824687fd1cb14c8e1a9b2683c061) Change-Id: Id25cdef0dd7f8c5e154a0da2db2dd0554849babc
* logd: Adjust to match defacto coding styleMark Salyzyn2014-02-265-13/+11
| | | | | | (cherry picked from commit c46f77bd2ad01f3a695416c4cf22d6a9738bb7b8) Change-Id: I80685cdc7116e10c5a5a77abe856fd96804f9117
* logd: prune more aggressively when over the topMark Salyzyn2014-02-261-3/+11
| | | | | | (cherry picked from commit 63c15d50615a4c9e9ad25f601ef9dcb1161d8990) Change-Id: I929dddc7da048c032fb791c7af23f215f8856bf3