summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* liblog: specify clang formatMark Salyzyn2017-03-091-399/+354
| | | | | | | | | Switch coding style to match SideEffects: None Test: compile Bug: 27405083 Change-Id: Id426d5c5e3b18f2ceec22b31bbc9781aabf6bcca
* liblog: add android_log_logger_list managementMark Salyzyn2017-02-081-0/+19
| | | | | | | | | | | | | | Add list of android_log_logger_list entities as a way of accessing the list of transport contexts from within one of the transports. This will enable us to iterate back to an internal transport context which may house a last index or signalling semaphore to propagate a wakeup on a blocking read. Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests, logcat-unit-tests Bug: 27405083 Change-Id: I0a5e793946c020d97ffe10192369998e4ed92a83
* system/core: preparation to pull back interfaces from android/log.hMark Salyzyn2016-10-201-1/+0
| | | | | | | | | | | | | | | | Point to log/log.h where necessary, define LOG_TAG where necessary. Accept that private/android_logger.h is suitable replacement for log/logger.h and android/log.h. Correct liblog/README Effectively a cleanup and controlled select revert of 'system/core: drop or replace log/logger.h' and 'system/core: Replace log/log.h with android/log.h'. Test: compile Bug: 30465923 Change-Id: Ic2ad157bad6f5efe2c6af293a73bb753300b17a2
* liblog: Replace log/log.h with android/log.hMark Salyzyn2016-09-301-1/+1
| | | | | | | | | | Move all liblog related content into android/log.h, and make log/log.h points to android/log.h. Test: Compile Bug: 26552300 Bug: 31289077 Change-Id: I858e0ebe047b86f2a8530a99bc9c380d3d58edbb
* logger: validate hdr_size field in logger entryMark Salyzyn2016-08-231-0/+4
| | | | | | | | | | - check hdr_size to make sure it is in the expected range from sizeof entry_v1 to entry (entry_v4). - alter msg() method to report NULL on invalid hdr_size - alter all users of msg() method. Bug: 30947841 Change-Id: I9bc1740d7aa9f37df5be966c18de1fb9de63d5dd
* Merge "Fix misc-macro-parentheses warnings in liblog."Chih-hung Hsieh2016-05-181-2/+2
|\
| * Fix misc-macro-parentheses warnings in liblog.Chih-Hung Hsieh2016-05-181-2/+2
| | | | | | | | | | Bug: 28705665 Change-Id: Ib272a83cb93b09d986c19a40e23a2679b9e17558
* | liblog: log reader validate headersMark Salyzyn2016-05-171-8/+51
|/ | | | | | | | Ensure len and hdr_size fields are valid and match the return value. Truncate or zero content as necessary, but do not drop the message. Bug: 28610769 Change-Id: I10785fa5b03aa3da7d07b368188e3f7c36a84b4f
* liblog: gate write on log id availableMark Salyzyn2016-03-291-0/+5
| | | | | | | | | | - Secure LOG_ID_KERNEL in writer - Secure LOG_ID_SECURITY in reader and writer - if writer transport says not available, do not write to that log id Bug: 27566046 Bug: 27896341 Change-Id: If63a78a56fb94adfbf9979454c4cadb81af45c19
* liblog: split out transports into separate filesMark Salyzyn2016-03-221-0/+474
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