91794ca2751a627e8db92c807dc4befb21d11247 |
|
15-Nov-2017 |
Yao Chen <yaochen@google.com> |
Revert "Add functions for testability to the EventLog APIs" This reverts commit a3465441246ec339448e99847d518d81a17099b6. Change-Id: I779a1fa9595f5fc7274e358de1f61c35922fe70c
/system/core/liblog/log_event_list.c
|
a3465441246ec339448e99847d518d81a17099b6 |
|
18-Oct-2017 |
Joe Onorato <joeo@google.com> |
Add functions for testability to the EventLog APIs Test: bit statsd_test && adb push out/target/product/sailfish/testcases/statsd_test/arm/statsd_test /data/statsd_test && adb shell /data/statsd_test Change-Id: I34ef25b174e9660ee328d5eddbac631c5c7caf62
/system/core/liblog/log_event_list.c
|
1b1b6f50c78d88e3256a5e13559d92fbb6d1c8fe |
|
25-Aug-2017 |
Stefan Lafon <stlafon@google.com> |
Create stats buffer in logd. Test: Ran the existing tests in logd, liblog and logcat. Confirmed that the liblog tests are already failing at head. Also that logcat test fails at head. Change-Id: I65b801bb0b84c9d4983c3f4af6895a366ced0d7a
/system/core/liblog/log_event_list.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/log_event_list.c
|
2ca4f49476a4e4e46dc7b47b2ce56ccaaadb9c8d |
|
12-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: add private android_log_write_list_buffer() Allows us to compose an event message for our own in-memory purposes. Will be used to compose an event message in logd and directly write it to just the pmsg buffer. Provide an internal enhanced C++ wrapper for event handling. Test: gTest liblog-unit-tests --gtest_filter=liblog.android_log_write_list_buffer Bug: 31456426 Change-Id: I98246898ba580f9e506baba8af2fd1b26a2a8aae
/system/core/liblog/log_event_list.c
|
472245d9625b8f0c52737aa8753524facfa211db |
|
18-Nov-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: move android_log_event_context class to log/log_event_list.h rename class from android_log_event_context to android_log_event_list Test: gTest logcat-unit-tests Bug: 31992412 Bug: 31456426 Change-Id: Ib61cbca7d453837d64959c56b0e11f8c5edbfbdd
/system/core/liblog/log_event_list.c
|
6debf985aa5127b43f1f79a010dc000f733793b8 |
|
05-Oct-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: adb: move security interfaces to private Test: Compile & adb functioning Bug: 19235719 Bug: 26552300 Bug: 31289077 Bug: 31456426 Change-Id: I7ad8963bcca3d8b5c37b547c11d163b652d35556
/system/core/liblog/log_event_list.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/log_event_list.c
|
facf94c74a2cc44f294c4789d36d5c7281c7bc3f |
|
01-Mar-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: split out transports into separate files (cherry pick from commit 018a96d03f0d452bf078084eedcd5693da42308d) 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/log_event_list.c
|
6d753faaf8694792433eb78c5c3572efd74a3d54 |
|
10-Mar-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: audit declare LIBLOG_ABI_PUBLIC (cherry pick from commit be1d3c21b57d3e67c6a9682f3b2f0838486a3ee8) - replace <sys/cdefs.h> with local "log_cdefs.h" which fortifies and expands definitions, adding LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE and LIBLOG_WEAK. - clearly tag each interface as LIBLOG_ABI_PUBLIC, LIBLOG_HIDDEN, LIBLOG_ABI_PRIVATE, LIBLOG_WEAK or static depending on scope - Add -fvisibility=hidden to ensure nothing else leaks - some code standard adjustments Bug: 27566046 Change-Id: Ic14033c4e6d833d973beb035ddc1c6134fb35a3f
/system/core/liblog/log_event_list.c
|
1d5afc9e08d0f5d6a79716d8f003cef97a01dd68 |
|
25-Feb-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: add android_log_write_string8_len (cherry pick from commit 67d7eafd56010f154137e4316e938f802b2b0732) android_log_write_string8_len(android_log_context ctx, const char *value, size_t maxlen) Caps the supplied string to a maxlen length. Alter API to handle a NULL pointer for the value string for this and android_log_write_string8() and instead of returning -EINVAL, act like a null string "" was supplied to preserve the list location. API is also changed to report the number of characters actually placed into the android_log_context. Bug: 27356456 Bug: 19235719 Change-Id: I6a03d405eac1d741555dd05555513ec691e7a46e
/system/core/liblog/log_event_list.c
|
9dd6510dd09f40973b8834c5cad1217ce1c3011d |
|
18-Feb-2016 |
Mark Salyzyn <salyzyn@google.com> |
liblog: event log list logging handler (cherry pick from commit bd1ad049b2494c70f671dbd6a0566f30dc420d1a) Based off an initial request and effort by williamluh@google.com - Added the following functions: * Composing and Writing: android_log_context create_android_logger(uint32_t tag) int android_log_write_list_begin(android_log_context ctx) int android_log_write_list_end(android_log_context ctx) int android_log_write_int32(android_log_context ctx, int32_t value) int android_log_write_int64(android_log_context ctx, int64_t value) int android_log_write_string8(android_log_context ctx, const char *value) int android_log_write_float32(android_log_context ctx, float value) int android_log_write_list(android_log_context ctx, log_id_t id) * Reading and Interpreting: android_log_context create_android_log_parser(const char *msg, size_t len) android_log_list_element android_log_read_next(android_log_context ctx) android_log_list_element android_log_peek_next(android_log_context ctx) * Destroy context used above: int android_log_destroy(android_log_context *ctx); - Added unit gTests We moved implemented android_log_buffer_to_string() to the test since it is an alternate for already existing logprint functionality. Please move into liblog should it be of some common use, otherwise as is it is a good means of stessing the reading and interpreting handlers. Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 19235719 Change-Id: I4aa1927e8e6a75f0a129d15a27c891cf1ccd4f5c
/system/core/liblog/log_event_list.c
|