summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* liblog: Add functions to reset log contextSuren Baghdasaryan2018-08-011-0/+7
| | | | | | | | Add android_log_parser_reset and android_log_reset to reset reader/writer log context. This allows to generate multiple log messages of the same format without context reallocation. Change-Id: Icb0f15855378aa4e66fc671ffefd15d9df6fee1e
* Make log_event_list.h available to vendor code.Pavel Grafov2018-02-131-0/+73
| | | | | | | | | | This is required in order to be able to log audit events from wpa_supplicant. Only log writing functions from log_event_list.h are made available. Test: manually Bug: 70886042 Change-Id: I097d4ad1de573662658678e6a9f1fc8f17820542
* Hide implementation details of log_time structJiyong Park2017-10-031-1/+47
| | | | | | | | | | | | | | | | | | | | In the future, the sizes of tv_sec and tv_nsec (or even the size of log_time struct itself) can change due to the 32-bit overflow expected to happen in the year 2138. In order to hide such implementation details to the clients of liblog, the two macros LOG_TIME_SEC and LOG_TIME_NSEC are introduced. Furthermore, vendors are provided with a simplified version of log_time.h without C++ APIs. In doing so, log_time.h no longer includes time.h. This breaks several modules that implicitly relied on the hidden dependency, which should be fixed. Bug: 37629934 Test: build with BOARD_VNDK_VERSION=current Merged-In: If213fc291395554fd8de5f5d1fb005ceaaa5ca57 Change-Id: I01b36078c1d8f3f44824be20ae769ba1465b6feb (cherry picked from commit 98c0d030c9a1ca7a94ebfe1d8db167973be504d3)
* Allow SLOG* to vendorsJiyong Park2017-06-282-0/+2
| | | | | | | | | | | | | Not only vendor libs, but also Android libs that are marked as vendor_available are using SLOG*. Since both pure vendor libs and Android libs available to vendors are using the same liblog headers for VNDK, SLOG* needs to be visible via the headers. Bug: 63088165 Test: BOARD_VNDK_VERSION=current m -j ATFWD-daemon (or any other vendor modules using SLOG*) Change-Id: Idfb74887a42d2418d3896bfdf5be3b4fc8e4c27f
* liblog: __android_log_error_write in vndkSteven Moreland2017-05-012-0/+2
| | | | | | | | | | | | Also added log_safetynet.h header. This contains a memory sensitive logging function which is used to detect attack attempts. Fixes: 37442967 Test: liblog-unit-tests on internal marlin Test: build liblog with BOARD_VNDK_VERSION := current on aosp_arm Test: libbinder vendor variant links with BOARD_VNDK_VERSION := current Change-Id: Icfcc2b1acbb3712bf4c84403870dc93401eafb15
* libcutils: compile with BOARD_VNDK_VERSION currentSteven Moreland2017-04-171-0/+1
| | | | | | | | | | | | | | | | | | | - 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 (cherry picked from commit 1f83aa424f537cf3f07e1d27dbbcc524818b5358) Merged-In: I5bc1f348dc0f0c8814bec5b5c3d2c52c825ab640 Change-Id: I5bc1f348dc0f0c8814bec5b5c3d2c52c825ab640
* liblog: export log/log_read.h to vndkMark Salyzyn2017-01-263-0/+4
| | | | | | Test: gTest liblog-unit-tests Bug: 34250038 Change-Id: I2904b950eb399a4f34c5da31b51703e8f2d5ea93
* liblog: add log/log_radio.hMark Salyzyn2017-01-252-3/+2
| | | | | | | | | | | | | | | | | | | Move RLOG logging macros to their own home. RLOGV RLOGV_IF RLOGD RLOGD_IF RLOGI RLOGI_IF RLOGW RLOGW_IF RLOGE RLOGE_IF Test: gTest liblog-unit-tests --gtest_filter=liblog.RLOG Bug: 34250038 Change-Id: Iad5b5abf23c7a537ff5293bb55a6633dce2e837d
* liblog: add log/log_id.hMark Salyzyn2017-01-252-1/+2
| | | | | | | | | | | | | | | | | | | Move common log_id_t and simple internal support function definitions that use it from log/log.h to log/log_id.h. log_id_t __android_log_buf_write __android_log_buf_print android_name_to_log_id android_log_id_to_name Test: gTest liblog-unit-tests --gtest_filter=\ liblog.log_id:\ liblog.__android_log_buf_print:\ liblog.__android_log_buf_write:\ liblog.__android_log_buf_print__concurrent64 Bug: 34250038 Change-Id: Iad3704cc72943a3094e1193a6d032c7f29a6cd5c
* ndk: reverse course on android/log.hMark Salyzyn2017-01-253-1/+3
| | | | | | | | | | | move LOG macros to log/log_main.h move include/android/log.h to liblog/include/android/log.h Test: compile of all components and gTest liblog-unit-tests Bug: 34250038 Bug: 30465923 Change-Id: If182dd9b83689e8b7bc1a44b2f5d913c7ee5eeee
* Revert "Revert "Exporting C headers from system/core""Vijay Venkatraman2017-01-252-0/+23
| | | | | | | This reverts commit a3f2be2b73cebb057218db2a19e8fad04ecb88f6. Test: compile Change-Id: I04b3a8e47e1fa3eb9d80c14ae3a90c68a780e858
* Revert "Exporting C headers from system/core"Vijay Venkatraman2017-01-242-23/+0
| | | | | | This reverts commit 3c6763ca21c1150d66daf8fde9b440b1c3219fe6. Change-Id: If3b3e106478d28a5df927d57649abdca0a99dd0e
* Exporting C headers from system/coreVijay Venkatraman2017-01-222-0/+23
Moved headers from include/libcutils and include/liblog to libcutils/include and liblog/include respectively, so they can be exported via these libs. They needed to be moved since Soong does not allow export from external folder. Added symlink from old locations. They are needed since Soong includes system/core/include by default. Once all modules are cleaned up to explicitly add the required libs, the symlinks will be removed. Also added liblog_vndk_headers that exports a special log/log.h for VNDK. Moved headers of libcutils to libcutils_headers. They should be used by modules for header-only inlines. Added libcutils_headers as dependency of libcutils. Added libcutils_vndk_headers that exports a special cutils/log.h deprecating usage of the file. A later CL will deprecate the one in libcutils_headers Test: Add above libs to shared lib of local module Change-Id: I6e1f9c5f23d8b6eae13dc3b7e5dfe7fae93b8510