History log of /system/core/include/log/logger.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b6a8d41e2a2379c4ee489121b1fabddfaab00fee 04-Dec-2015 Mark Salyzyn <salyzyn@google.com> logger.h: reduce maximum payload so sum is page size

Reduce maximum log payload so that the sum with the maximum
length header logger_entry_v4 is a page size. This is a
performance measure.

Expect side effects, truncates messages 8 bytes earlier. The
length has a long history (2008) so there may be non-C code
somewhere that has it hard-coded rather than reflecting this
header. CTS tests may need to be adjusted.

Bug: 25996918
Change-Id: I598c8c5cc78f6b0afc2c1f30cc6f3c18eb8c4c9d
/system/core/include/log/logger.h
9b292f563ea483563878fc29e75de63cb790fc49 04-Dec-2015 Mark Salyzyn <salyzyn@google.com> logger.h: Add definition for logger_entry_v4

Extends logger_entry_v3 to add an uid field and moves some fields to
unsigned (easier to have zero'd bit-field for future adjustments).

Still no version field, not crossing that bridge, historical reasons.

Bug: 25996918
Change-Id: I18b7291666c3a5b170d6771a012363a41f2c5847
/system/core/include/log/logger.h
f8e546e6090002cde90c21c83b8cdef311e50816 30-Nov-2015 Mark Salyzyn <salyzyn@google.com> liblog: Support for ANDROID_LOG_WRAP mode flag on reader

If ANDROID_LOG_WRAP is specified, add timeout=3600 to the reader
request. logd will comply by going to sleep with the socket open.
If the start time is about to wrap or get pruned in the specified log
buffers, then wakeup and dump the logs; or wakeup on timeout,
whichever comes first.

Bug: 25929746
Change-Id: I531b4317a20abcf3ba87d78c68fa2f268a4488ab
/system/core/include/log/logger.h
ba7a9a016bf011fdf45b6736d4c6d6795faba9d3 02-Dec-2015 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: switch to android_log_clockid() (2)

android_log_timestamp returns the property leading letter,
it is better to return a clockid_t with android_log_clockid()

Bug: 23668800
Change-Id: I38dee773bf3844177826b03a26b03215c79a5359
/system/core/include/log/logger.h
9e18cdcebd893fbbb2369d893be219a7d832865f 07-Dec-2015 Mark Salyzyn <salyzyn@google.com> Revert "logd: liblog: logcat: switch to android_log_clockid()"

This reverts commit 77b5696b1dea6f7afed89e113e479f4a131c14fc.

Change-Id: I7711bf1a7e3f72ed29a2498d7287b725a0e624bd
/system/core/include/log/logger.h
77b5696b1dea6f7afed89e113e479f4a131c14fc 02-Dec-2015 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: switch to android_log_clockid()

android_log_timestamp returns the property leading letter,
it is better to return a clockid_t with android_log_clockid()

Bug: 23668800
Change-Id: I3c4e3e6b87f6676950797f1f0e203b44c542ed43
/system/core/include/log/logger.h
500afc75325823c03dbdf6b2d56fd86e29f120f4 08-Sep-2015 Mark Salyzyn <salyzyn@google.com> liblog: add android_log_timestamp() private function

Change-Id: Iefbea3b1be2f97cfdeb35e5330e5495e0337215b
/system/core/include/log/logger.h
6eef4171195f83541b3ee62cdcc4eac863c5edd9 15-Dec-2014 Mark Salyzyn <salyzyn@google.com> liblog: add pstore read

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
/system/core/include/log/logger.h
2d3f38a6b8e724749b59d201a01b35fa0951141e 26-Jan-2015 Mark Salyzyn <salyzyn@google.com> liblog: introduce ANDROID_LOG_* flags

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
/system/core/include/log/logger.h
4887842c925f304dc862bdd5810f27cdd2eaedcb 23-May-2014 Mark Salyzyn <salyzyn@google.com> include: cleanup for -Wsystem-header

- warnings as errors, or errors introduced when -Wsystem-header
was experimentally introduced.

Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
/system/core/include/log/logger.h
1c950479393d42d18829d4009dbdb3a7f03acbb7 02-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: enable prune features for user

- Enable whitelist, blacklist and logsize tuneables for user

Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
/system/core/include/log/logger.h
fa3716b2501ccddc8e0cd30f6343692b8deb7639 15-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: Arbitrary time to tail

Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
/system/core/include/log/logger.h
dfa7a07f5be656cfafdb4e75916bc9dcd9e592e7 11-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: Add LogWhiteBlackList

- 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
/system/core/include/log/logger.h
34facab86b0fe7ec613de92b46b637f864fb0682 06-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: Add Statistics

- 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
/system/core/include/log/logger.h
7e2f83c0bcc3ad8a2840a48be14d302ed79d671c 05-Mar-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: 64-bit issues

- structure packing
- move towards log_time from struct timespec
- extend log_time to cover differences between
log_time and struct timespec

Change-Id: I106ed0b609917306d170044054b5b32645f2a295
/system/core/include/log/logger.h
154f4608aac6218af0e25c98b71d0803278c047e 20-Feb-2014 Mark Salyzyn <salyzyn@google.com> liblog: enable logging to logd.

* 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
/system/core/include/log/logger.h
0175b0747a1f55329109e84c9a1322dcb95e2848 26-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: initial checkin.

* 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
/system/core/include/log/logger.h
318bb72601c0b6895a93d95ad0dedaebf2ae3d9f 10-Jan-2014 Mark Salyzyn <salyzyn@google.com> liblog: Add const pedantics

(cherry picked from commit 9e03ce45f999b75000f1652747783d74e7063b9a)

Change-Id: I819695b778ac08fcfc9b1a87f3f86e5715f53084
/system/core/include/log/logger.h
1345f38e4419607ea9c5b24109e5bd6df52dcffa 14-Jan-2014 Mark Salyzyn <salyzyn@google.com> liblog: deprecate export LOGGER ioctl definitions

(cherry picked from commit 2e44a9ea2518024a07f38c2cc6066ec2074d5210)

Change-Id: I150cad9309255bec2b8bc7230c744e9bbb1b9578
/system/core/include/log/logger.h
e9c4196980208124066fb45fa03bfb85fe1d8581 02-Jan-2014 Mark Salyzyn <salyzyn@google.com> liblog: deprecate export of LOGGER_LOG_* defines

(cherry picked from commit 73459a5c87dc9e7c2aeee00597b9d3cc8d9a190e)

Change-Id: I263af8e889f8f2ad91b91757caf90a4d17823dab
/system/core/include/log/logger.h
f387fa5df0180831abfd2004e78859d66836bc05 04-Jan-2014 Mark Salyzyn <salyzyn@google.com> liblog: drop use of sys/cdefs.h

(cherry picked from commit c96a44888a50fdc6155cb1a7fa8e37bee00fafc0)

Change-Id: I44ea5d6b572e3712c301e6ebf4b34e6225d7e18b
/system/core/include/log/logger.h
4295841ebe68a2ebf50ed7adf0a603c523d5af52 22-Nov-2013 Mark Salyzyn <salyzyn@google.com> liblog: Interface to support abstracting log read

(cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e)

Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee
/system/core/include/log/logger.h
9227bd385504ace739d4451a6c5dc3d777b5bf21 24-Jul-2013 Colin Cross <ccross@android.com> Move liblog headers to system/core/include/log

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
/system/core/include/log/logger.h