summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Work around b/24465209, do not pack relocation table.Chih-Hung Hsieh2018-05-241-1/+1
| | | | | | | | | | Global flag --pack-dyn-relocs=android is used with clang lld. For b/24465209, we need to override that with pack_relocations:false. Bug: 24465209 Bug: 80093890 Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables Change-Id: I4edcdf49e184fa45ea2b6b6417654d81bcd09e1d
* Work around b/24465209, do not use clang lldChih-Hung Hsieh2018-05-231-0/+1
| | | | | | | | | | | | | See longer explanation in b/80093890. Clang lld does not generate expected DT_REL and DT_RELA tags with --hash-style=both and --pack-dyn-relocs=android. I am not sure about the extent of b/24465209, so I would rather not to use lld for these .so files for now. Bug: 80093890 Bug: 24465209 Test: build with USE_CLANG_LLD=true and run dlext.compat_elf_hash_and_relocation_tables Change-Id: I645dbe25c5b9975605e3af5e717ed36c276f14d4
* Mark as recovery_available: trueJiyong Park2018-05-141-1/+2
| | | | | | | | | | | | Libraries that are direct or indirect dependencies of modules installed to recovery partition (e.g. toybox) are marked as recovery_available: true. This allows a recovery variant of the lib is created when it is depended by other recovery or recovery_available modules. Bug: 67916654 Bug: 64960723 Test: m -j Change-Id: Ie59155c08890e96ce1893fa3687afcf763d7aea3
* Fixing app compat issue b/72143978Ian Pedowitz2018-01-181-0/+4
| | | | | | | | | | | Revert "Remove obsolete workaround." This reverts commit 1f3ac7583feaf591ee23fcc69d56d29613020b4f. Bug: 72143978 Bug: 24465209 Test: Tested failing case on sailfish, reverted back all CL's since Test: 3471433 for b/24465209 and apps open
* Remove obsolete workaround.Elliott Hughes2018-01-091-4/+0
| | | | | | Bug: http://b/24465209 Test: manually ran the app. Change-Id: I573d2480c70632b100096ba6b2029bfc335595d6
* Use override_export_include_dirs.Steven Moreland2018-01-051-1/+1
| | | | | | Bug: 62878521 Test: soong build system finds renamed attribute Change-Id: I51e42f4378db366b8711cd373fb835fecda88416
* Add vendor_available to liblog_headers.Steven Moreland2017-10-161-2/+21
| | | | | | | | | | | | Renamed NDK headers to "liblog_ndk_headers" (these names aren't used anywhere). libutils_headers now properly export liblog_headers. Test: with BOARD_VNDK_VERSION=current Merged-In: I3a85385f588b84393c57fd6d1bcac620f708f0f1 Change-Id: I3a85385f588b84393c57fd6d1bcac620f708f0f1 (cherry picked from commit 42b485cc538217fa127996a340229f76b7c4031b)
* Merge "Remove default libraries"Dan Willemsen2017-09-301-3/+0
|\ | | | | | | | | | | am: 8b7feee38f Change-Id: Ic39ecabd37ffe06ba3a119410b5dcd4885fb584c
| * Remove default librariesDan Willemsen2017-09-291-3/+0
| | | | | | | | | | | | | | | | | | | | libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Change-Id: I0b3c147b00a8ab6ff289b85db55b88836c905f5c Exempt-From-Owner-Approval: build system cleanup
| * Add vendor_available to liblog_headers.Steven Moreland2017-09-061-2/+21
|/ | | | | | | | | | | Renamed NDK headers to "liblog_ndk_headers" (these names aren't used anywhere). libutils_headers now properly export liblog_headers. Test: with BOARD_VNDK_VERSION=current Change-Id: I7b2d9e77e313e3f2ef362a19a03f4c23874d589a Merged-In: I3a85385f588b84393c57fd6d1bcac620f708f0f1
* Remove .(ll)ndk suffix from (ll)ndk_libraryDan Willemsen2017-04-101-2/+2
| | | | | | | | | | Soong handles these automatically now. Bug: 33241851 Test: Android-aosp_arm.mk is the same before/after Test: build.ninja is the same before/after Test: build-aosp_arm.ninja is the same before/after Change-Id: Ica4eedda51bb34db2f39d2c64ea436e1f633bfc3
* Add LLNDK liblog stub library for the VNDKDan Willemsen2017-04-071-5/+7
| | | | | | | | | | | This replaces the liblog_vndk_headers with a true stub library that exports the vndk headers, and exports the vndk-specific set of symbols. Test: generated NDK stub maps are the same before/after Test: aosp_arm; m -j Test: Enable BOARD_VNDK_VERSION on aosp_arm; m -j (with other changes) Change-Id: I9037241963b3872a3bc7cf7ab36a70dd4ddcf9bc (cherry picked from commit 28dab34cbb6c633ae7f2e50296c51fc74435d74d)
* liblog: add LOGGER_STDERR frontendMark Salyzyn2017-03-081-0/+1
| | | | | | | | | | | | | | | | | | | Standalone, this logger provides no end-to-end capability. Only provides a writer, no reader transport. All output goes, logcat-like, into the stderr stream. Output can be adjusted with environment variables ANDROID_PRINTF_LOG and ANDROID_LOG_TAGS. liblog_*.__android_log_bswrite_and_print___max print fails if a string member is truncated with "Binary log entry conversion failed" and -1. We expose the truncated content in the tests and in LOGGER_STDERR. The purpose of this transport selection is for command-line tools, providing a means to shunt the logs to be mixed in with the tool's error stream. Test: gTest liblog-unit-tests Bug: 27405083 Change-Id: If344b6e3e67df2dc86ce317cfad8af8e857727b7
* liblog: add local_loggerMark Salyzyn2017-02-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | - Create the local-only logger module - Add LOGGER_LOCAL flag to android_set_log_frontend to enable - Permit log reader for host compilation android_set_log_frontend(LOGGER_LOCAL) will result in logs going into application local memory. logcat can not retrieve the data, the user must utilize the log reading interface directly to acquire their own logs. Some local logger tests dropped as they represent testing other liblog facilities. Other local logger tests dropped because we make the conscious decision to not support LOG_ID_SECURITY logging. ToDo: Some local logger tests dropped because of missing functionality associated with blocking reader. Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests, logcat-unit-tests, liblog-benchmarks and CtsLiblogTestCases_list Bug: 27405083 Change-Id: Ia23b932af9e05756eaa60bab9139876b14faf72d
* liblog: add logprint to host buildMark Salyzyn2017-02-081-5/+5
| | | | | | | | | | | | | | | | - cleanup of some style issues - resolve a few minor bugs - add -lrt for host so that clock_gettime can be issued - enable write-only logging, logprint and event list handling tests for host consumption. NB: CtsLiblogTestCases_list is only outlet for host testing of the interfaces, but it is not part of any automated testing Test: gTest liblog-unit-tests, liblog-benchmarks and CtsLiblogTestCases_list && build mmma system/core/liblog Bug: 27405083 Change-Id: I13db1f45f67569407587a5a909248de33809b8cf
* Revert "Continue using the legacy NDK android/log.h."Mark Salyzyn2017-01-301-10/+2
| | | | | | | | | | | | Use refreshed android/log.h for NDK This effectively a modern revert of the commit b7c3996f7c048eac6f113697a5734870f0b2cfdb Test: build Bug: 30465923 Bug: 34250038 Change-Id: I7d4a5134bb711051283c36a2d5bc803436dca12e
* Revert "Revert "Exporting C headers from system/core""Vijay Venkatraman2017-01-251-0/+7
| | | | | | | This reverts commit a3f2be2b73cebb057218db2a19e8fad04ecb88f6. Test: compile Change-Id: I04b3a8e47e1fa3eb9d80c14ae3a90c68a780e858
* Merge "Revert "Exporting C headers from system/core""Vijay Venkatraman2017-01-241-7/+0
|\
| * Revert "Exporting C headers from system/core"Vijay Venkatraman2017-01-241-7/+0
| | | | | | | | | | | | This reverts commit 3c6763ca21c1150d66daf8fde9b440b1c3219fe6. Change-Id: If3b3e106478d28a5df927d57649abdca0a99dd0e
* | Merge "Don't disable all sanitizers in liblog, just asan."Evgenii Stepanov2017-01-241-1/+1
|\ \ | |/ |/|
| * Don't disable all sanitizers in liblog, just asan.Evgenii Stepanov2017-01-241-1/+1
| | | | | | | | | | | | | | | | | | ASan runtime library depends on liblog, so we have to disable ASan, but nothing else. Bug: 33091541 Test: SANITIZE_TARGET=address keeps working Change-Id: I6e22925b7f1d5ec86fe1bd8c00dba4c3e86ddf3f
* | Exporting C headers from system/coreVijay Venkatraman2017-01-221-0/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Unversion NDK stub libraries.Dan Albert2017-01-061-0/+1
| | | | | | | | The system versions of these libraries aren't versioned yet. Bug: https://github.com/android-ndk/ndk/issues/278 Test: make ndk Change-Id: Icf5ff9921441d3e252771aef37002c772c08cbd0
* liblog: add IF_ALOG_RATELIMITMark Salyzyn2016-12-211-0/+1
| | | | | | | | | | | | | | | | | | | | | IF_ALOG_RATELIMIT() ALOGE("Only one message globally using IF_ALOG_RATELIMIT()" " in the process may appear ever ten seconds," " (%s)", strerror(errno)); static time_t last; /* initial state zero */ IF_ALOG_RATELIMIT_LOCAL(60, &last) ALOGE("Only one message locally may appear every minute," " (%s)", strerror(errno)); These new calls are guaranteed not to affect the value of a non-zero errno to simplify logging of errors. However, the ALOGE calls in the above examples may update the errno value upon their return. Test: gTest liblog-unit-tests --gtest_filter=liblog.__android_log_ratelimit Bug: 33535908 Change-Id: Id8cc192fc7d14504ffd418933cf88ae945c089f2
* liblog: move log_is_loggable.c to properties.cMark Salyzyn2016-12-161-1/+1
| | | | | | | | Just makes sense cleanup Test: gTest liblog-unit-tests Bug: 33535908 Change-Id: I85de049f3cd73a473d56db5970d42eee5f9f70a8
* liblog: switch event_tag_map.c to event_tag_map.cppMark Salyzyn2016-12-011-2/+2
| | | | | | | | | NB: recent activities on event_tag_map.c were to allow this transition to be unremarkable. Test: compile Bug: 31456426 Change-Id: I13e1771a001874244711a5ac3023861c2a5f8c7d
* Enable liblog on host bionicDan Willemsen2016-11-291-0/+3
| | | | | | | | | Some of the __BIONIC__ checks were actually looking for an android device. Host bionic has __BIONIC__, but not __ANDROID__. Bug: 31559095 Test: Test linux_bionic compile Change-Id: Ia0ca36fc9486fe8ea7e5d1b2e26ab0491903723c
* Add license to ndk_headers.Dan Albert2016-10-201-0/+1
| | | | | | Test: make ndk Bug: None Change-Id: Iaba7368b89ec446b5c65c7c127a98914bd949496
* Continue using the legacy NDK android/log.h.Dan Albert2016-10-141-0/+15
| | | | | | | | | | | | | | | | system/core/android/log.h needs some work before it can be included in the NDK. It defines a *lot* of macros that previously were usable names in NDK sources that used android/log.h. As an example, the following file defines LOG_TAG as a variable, but the variable name gets macro replaced if we use the current android/log.h. https://android.googlesource.com/platform/external/deqp/+/4adc1515f867b26c19c2f7498e9de93a230a234d/framework/platform/android/tcuTestLogParserJNI.cpp#41 For now, we keep a copy of the old NDK android/log.h in legacy-ndk-includes. Test: make checkbuild Bug: http://b/30465923 Change-Id: I8ce942d1ee2f8f0d4c27130802c03992a1b85ec4
* liblog: Move liblog tag from 1005 to 1006Mark Salyzyn2016-09-301-1/+1
| | | | | | | | Allow logd to add another "consecutive" log tag Test: gTest liblog-unit-tests, check for liblog in logcat afterwards Bug: 31456426 Change-Id: I0c25e038878ec9a0cf368a33a63f8345c68749c3
* liblog: logd: logcat: deprecate log/log_read.hMark Salyzyn2016-09-301-1/+0
| | | | | | | | | | | | Always used in combination with log/logger.h except in log_time.cpp, and not used externally. As a result liblog has to support stl, a small price to pay since goal is to convert liblog to C++ internally. Test: compile Bug: 31456426 Bug: 26552300 Bug: 31289077 Change-Id: I72828ec807d0a2c8e40bbdebd7a69f147a7ca5a9
* Migrate liblog to ndk_library.Dan Albert2016-09-231-0/+6
| | | | | | Test: make native Bug: http://b/30465923 Change-Id: I3db7ede817a57b3505c0556ea28f08b9e8331e1a
* Merge "Fix liblog logtags" am: 59e6afc617Dan Willemsen2016-06-011-1/+1
|\ | | | | | | | | | | | | | | | | am: 6b5255722e * commit '6b5255722e7497fc7c854cf1ae9e51322bc7ceae': Fix liblog logtags Change-Id: I6225d8fd338b9ffc5b4406d5dbb92e2816bcaaad
| * Fix liblog logtagsDan Willemsen2016-06-011-1/+1
| | | | | | | | | | | | | | This was broken because we didn't have logtags support in Soong. Bug: 28989759 Change-Id: I8370a73cf14703b86aafd85e7ea74fc570c3ff0f
* | Merge "Update sanitize property format" am: 0652728Colin Cross2016-04-191-1/+3
|\| | | | | | | | | | | | | | | | | am: 9ba3f6d * commit '9ba3f6db392f0f9b25cc5b3ad03c984fdc76094f': Update sanitize property format Change-Id: I7ac818440c50c7166921d74dfb3b6c10af19ee09
| * Update sanitize property formatColin Cross2016-04-151-1/+3
| | | | | | | | Change-Id: I81c299609ece7a1c7f27093f563d5df08efe989b
* | Merge "liblog: suppress pmsg on user builds" am: 0858071Mark Salyzyn2016-03-311-0/+1
|\| | | | | | | | | | | | | | | | | am: 24967e5 * commit '24967e5f5e87e5079f416d3cbc3d6a5dba7e8865': liblog: suppress pmsg on user builds Change-Id: Ic4f2c02e227ee3c0dc29eb11757dc024aae3b950
| * liblog: suppress pmsg on user buildsMark Salyzyn2016-03-291-0/+1
| | | | | | | | | | | | | | | | | | - 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
| * liblog: split out transports into separate filesMark Salyzyn2016-03-221-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * liblog: Update Android.bp for Android.mk changesDan Willemsen2016-02-291-4/+6
| | | | | | | | Change-Id: I5062583a45efa2774f01339e7601767b817f54ee
* | liblog: update Android.bpMark Salyzyn2016-03-241-6/+18
|/ | | | | | | Update Android.bp to match the version in AOSP. Change-Id: I93aba0f93a7a8d255073661331f1d966a53e20aa (cherry picked from commit c457a4b73ecc3a7084418a23c6f51cd89d31debd)
* liblog: Update Android.bp to match Android.mkDan Willemsen2016-01-051-0/+1
| | | | Change-Id: Ic887493c03d133a566a96c1c5b65dcd67e5d7131
* liblog: enable windows builds in soongDan Willemsen2015-11-301-0/+1
| | | | Change-Id: I426cdebeddf653bf2daacb3e0724516ac78756cb
* Fix bug number for linker related workaroundsDmitriy Ivanov2015-09-281-1/+1
| | | | | Bug: http:/b/24425865 Change-Id: I87e1af3cf39b5234647ecbbd5844c9d88eeb9200
* Add Android.bp for liblogDan Willemsen2015-09-161-0/+76
Change-Id: Ibbb476a5e6b247cba96929e683727c25f66d90f0