History log of /system/core/liblog/pmsg_writer.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1f83aa424f537cf3f07e1d27dbbcc524818b5358 14-Apr-2017 Steven Moreland <smoreland@google.com> libcutils: compile with BOARD_VNDK_VERSION current

- moved __android_log_is_debuggable to a new public header
(log_properties.h)
- vendor version of sched_policy uses ALOG* instead SLOG*

Test: (sanity) liblog-unit-tests
Test: (sanity) libcutils_test (noting b/b/32972117, two tests continue
to fail)
Test: system/core as a whole makes with BOARD_VNDK_VERSION := current
now with no problems.
Test: boots/works on internal marlin
Bug: 33241851

Change-Id: I5bc1f348dc0f0c8814bec5b5c3d2c52c825ab640
/system/core/liblog/pmsg_writer.c
2ed51d708eda64516ec79ac6397f690de38f0075 09-Mar-2017 Mark Salyzyn <salyzyn@google.com> liblog: specify clang format

Switch coding style to match

SideEffects: None
Test: compile
Bug: 27405083
Change-Id: Id426d5c5e3b18f2ceec22b31bbc9781aabf6bcca
/system/core/liblog/pmsg_writer.c
106c3e6189203f73bc94a8c88cf41a0a1c22931f 08-Feb-2017 Ting-Yuan Huang <laszio@google.com> liblog: fix a memory leak in __android_log_pmsg_file_write()

Free the strdup()-ed filename before returning error.

Test: passed clang-tidy checks
Bug: none
Change-Id: I555492cb4e50400db758f7c721647a8747874a01
/system/core/liblog/pmsg_writer.c
cfd5b080af8de527d768f0ff7902c26af8d49307 17-Oct-2016 Mark Salyzyn <salyzyn@google.com> system/core: preparation to pull back interfaces from android/log.h

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
/system/core/liblog/pmsg_writer.c
db8a266aea6c12b0fb8ee3587d72333662b05266 10-Oct-2016 Mark Salyzyn <salyzyn@google.com> liblog: __android_log_pmsg_file_write() cleanup

__android_log_pmsg_file_write() will open /dev/pmsg0 if not
already, and will close it if we opened it.

Added atomic access to the android_log_context as insurance.

Fortify and correct pmsg tests.

Test: gTest liblog-unit-tests --gtest_filter=liblog.__android_log_pmsg_file_*
Bug: 31958686
Change-Id: I2cf6f971b6968938f471fda67367efe20dae3004
/system/core/liblog/pmsg_writer.c
6584d0a35ab7722bdc6590525dee29f72f0ec576 28-Sep-2016 Mark Salyzyn <salyzyn@google.com> liblog: Replace log/log.h with android/log.h

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
/system/core/liblog/pmsg_writer.c
ec4f5c776d2bde026e2a74128218924be7b3f46a 13-Jul-2016 Mark Salyzyn <salyzyn@google.com> liblog: reset pid and uid cache after a vfork()

Bionic getuid() and getpid() calls cache to reduce the need to
perform a syscall, and also reset their own cache after a vfork().
No more need for liblog to be performing this flawed cache operation.

Bug: 30085794
Change-Id: I70feed8bff0ddd919c2885a348ba67b14ddc0e0d
/system/core/liblog/pmsg_writer.c
78786da116064e6a2b7bb768e1eb77f3804eace4 29-Apr-2016 Mark Salyzyn <salyzyn@google.com> liblog: O_CLOEXEC flag on opens

Bug: 28455828
Change-Id: Ic00101a6192aab7271cb0c3461e249a77d7f29ed
/system/core/liblog/pmsg_writer.c
7ef5249afacffe3901e3a602372c7d34cf655675 25-Mar-2016 Mark Salyzyn <salyzyn@google.com> liblog: suppress pmsg on user builds

- add optimized & cached LIBLOG_HIDDEN __android_log_is_debuggable()
- check when writing, either LOG_ID_SECURITY, SafetyNet or
debuggable when pushing content to the pmsg buffer.

Bug: 27566046
Change-Id: I85f1b55ec329b38e00f4183836b6ed53046c323d
/system/core/liblog/pmsg_writer.c
d4b061bde280fce9b5426b5738a02d42ec263c48 10-Mar-2016 Mark Salyzyn <salyzyn@google.com> liblog: add __android_log_pmsg_file_write

- This is considered an Android Private function, not exported
for general use.
- goal is to record a file's content into a series of log
messages into pmsg, to be retrieved after a reboot for
transfer to a persistent location.
- filename reference is converted to a tag-unique
"<dirbase>:<filebase>".
- buffer and length representing the filename contents are
recorded, along with a sequence number placed into the nsec
time field to ANDROID_LOG_PMSG_FILE_MAX_SEQUENCE.
- Add a gTest for this function.

Bug: 27176738
Change-Id: If93df3ae8bfc1bb75516d4a1fd8dae0301af644b
/system/core/liblog/pmsg_writer.c
018a96d03f0d452bf078084eedcd5693da42308d 01-Mar-2016 Mark Salyzyn <salyzyn@google.com> liblog: split out transports into separate files

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
/system/core/liblog/pmsg_writer.c