summaryrefslogtreecommitdiffstats
path: root/liblog/tests
Commit message (Collapse)AuthorAgeFilesLines
* liblog: add __android_log_close()Mark Salyzyn2016-09-271-1/+9
| | | | | | | | | Bug: 30963384 (cherry picked from commit df7a4c6bae5f85532d79a93b7d9197a2aab17825) Change-Id: I2255486e84dd55af0f4e7fbbfb616c2deb1765d0 (cherry picked from commit 2d149691552676968b7de337f543463b920578b0)
* Add macro to call event logger for errors.William Luh2015-12-011-0/+396
| | | | | Bug:23180694 Change-Id: I566a290334345f48013029534efef3e08e726e40
* liblog: __android_log_is_loggable support global propertiesMark Salyzyn2015-06-152-2/+196
| | | | | | | | | | | | | | | | | | | | | | | | (cherry pick from commit c158456f50817ac506f4eed780978e63dd222fe4) - Add support for "log.tag" and "persist.log.tag" global logging properties, effectively a runtime default minimum logging level. - Add a thread-safe single level cache plus selective logic for the four properties being checked to help speed up logging decision on subsequent identical calls. - Using new __system_property_area_serial() to make for efficient (<100ns) handling of cache misses. Despite adding two new properties, we are 8 times faster on subsequent calls even if the properties do not exist. - A NULL or blank tag is no longer directed to return default, it will check the pair of global logging properties first. - Add liblog.is_loggable gTest - Fixup liblog.android_logger_get_, allow no content in crash buffer - Fixup liblog.max_payload, lowered logd priority increases latency Bug: 19544788 Bug: 21696721 Change-Id: Ideb887755aa3f1fd14a2603bda1fe23cba49642c
* liblog: gtest open("/dev/pmsg0", "a")Mark Salyzyn2015-05-131-0/+9
| | | | | | (cherry pick from commit df0257d344b6d85bbbdae248748040e15aac35b8) Change-Id: I918025a8ac28204076ce4831ce277b04091619f6
* liblog: Add BM_is_loggable benchmarkMark Salyzyn2015-04-241-0/+14
| | | | | | | | | | - On a N9 64-bit benchmark, the __android_log_is_loggable overhead is roughly 500ns (1/2 of a syscall?) Bug: 19544788 Bug: 17760225 Bug: 20416721 Change-Id: Ib9e4d06d96e1b19ca5d459e569ead451ef47a9c0
* Remove LOCAL_ADDITIONAL_DEPENDENCIES in cases where it's not needed.Elliott Hughes2015-04-021-2/+0
| | | | Change-Id: I720b8ef1050da45a7833adef8219b6acb2cf3a38
* liblog: introduce ANDROID_LOG_* flagsMark Salyzyn2015-02-253-11/+11
| | | | | | | | 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
* liblog: test: ARM64: Enable 32 and 64-bit liblog_benchmarkMark Salyzyn2015-02-101-2/+1
| | | | | | | - Enable build for 32 and 64 bit benchmark executables - Fix some cosmetics issues in logd_write.c Change-Id: I544446e5116607d7fec89171135f6e1eff6aebd8
* Move liblog tests and benchmarks to libc++.Dan Albert2014-11-122-1/+1
| | | | Bug: 15193147 Change-Id: Ib063eb9490e40f9d10c0b0f29b7808c729e4fff9
* Merge "Remove makefile cruft."Dan Albert2014-09-121-4/+1
|\
| * Remove makefile cruft.Dan Albert2014-09-121-4/+1
| | | | | | | | | | | | Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
* | Add -std=gnu++11 to test cflagsDmitriy Ivanov2014-09-121-1/+2
|/ | | | Change-Id: Ife92cea10021658eba6e22a7ebc9e31f3d194a25
* Fix typo: ifndef -> ifneqDmitriy Ivanov2014-08-251-1/+1
| | | | Change-Id: Id71c70b6fcd2659078a19cc652fd02807372f3a0
* liblog: test: Send bionc's fatal logging to the crash logMark Salyzyn2014-06-031-2/+2
| | | | | Bug: 14159417 Change-Id: Ia2e29ce03d4e2b02919c62be091da37ce4082647
* Address additional warnings found by GCC 4.9.Ben Cheng2014-05-201-1/+1
| | | | Change-Id: I8aae6c3e1ccc2294f4db455e1b4f3b4c34a00aaf
* liblog: set -WerrorMark Salyzyn2014-05-072-3/+3
| | | | | | | - Deal with some -Wunused issues - Cleanup UNUSED to __unused transition Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-1/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* liblog: logcat: Move library print test into gTestMark Salyzyn2014-05-021-0/+70
| | | | Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8315
* liblog: test bionic libc_logging.cppMark Salyzyn2014-04-252-3/+153
| | | | Change-Id: Ia778c43513a28c85ae54e96926ee9ed56717d527
* logd: liblog: ALOG silently drops excessively long messagesMark Salyzyn2014-04-241-0/+57
| | | | | Bug: 14280914 Change-Id: Idddd29784625094e54144953c29f64692a88eee9
* Fix signed vs unsigned comparison.Ben Cheng2014-04-111-1/+1
| | | | Change-Id: I4011607858f3a82acc04509c9f795f960496ed69
* liblog: test for LOGGER_ENTRY_MAX_PAYLOAD complianceMark Salyzyn2014-03-261-23/+259
| | | | | | | | | - Add max_payload test - Add dual_reader test - Switch to EXPECT from ASSERT to increase test coverage Bug: 13514601 Change-Id: I0e1c273e0ec430c0461e424731dbf166f2a3ce1b
* logd: liblog: 64-bit issuesMark Salyzyn2014-03-052-2/+2
| | | | | | | | | - 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 LP64 cleanup.Elliott Hughes2014-02-052-6/+9
| | | | | | | Fixes -Wint-to-pointer and -Wpointer-to-int warnings, plus various -Wformat warnings. Change-Id: I6c5eea6b4273d82d28b8e5d2925f3e5457511b17
* liblog: Add cpu utilization testMark Salyzyn2014-01-271-0/+156
| | | | | | | | | | | - followup to measure CPU utilization in liblog to ensure this issue gets caught before a regression passes into the labs. Threshold for failure is 1%. (cherry picked from commit edadb2e7196040dd476e86581dc1c8e26449c00d) BUG: 12457855 Change-Id: I40568a72aeef2f554b19ad55f3dd3c02bc023f24
* liblog: Add liblog test suiteMark Salyzyn2014-01-275-0/+900
(cherry picked from commit 8d1fdb509305e93eb46d45a6dcd34bedd6dc0742) Change-Id: Ia457d518b4e7ff37e840336ff0c48583709700d4