summaryrefslogtreecommitdiffstats
path: root/liblog
Commit message (Collapse)AuthorAgeFilesLines
* Switch liblog to sysv-only hash styleDmitriy Ivanov2015-03-131-1/+1
| | | | | Bug: 19059885 Change-Id: I5519a4e19716303692d4117bc24988f21d5a829e
* Generate gnu hash for arm onlyGoran Jakovljevic2015-03-101-1/+1
| | | | | | | | | | | Fixes mips build failure caused by: https://android-review.googlesource.com/#/c/139580/ As previously discussed [1], MIPS does not support GNU-style ELF hashes. [1] https://android-review.googlesource.com/#/c/49282/2/tests/Android.mk Change-Id: I757fef1d47663da3e414f5771dfc580ea7aa3732
* Generate sysv hash for liblogDmitriy Ivanov2015-03-091-0/+4
| | | | | Bug: 19059885 Change-Id: I6fff4372504e3ca0d870c5cafe6f19d412787923
* Fix __android_log_assert to abort.Elliott Hughes2015-03-072-2/+2
| | | | | | | | | If you rely on __builtin_trap, it's likely to use an illegal instruction, which is a misleading way to abort. If we just call abort, it's more immediately obvious that we've aborted. Bug: 19644330 Change-Id: I63a962e4748aec7b019ea94b007593e478a3b61a
* Revert "liblog: logprint use <endian.h>"Mark Salyzyn2015-03-061-5/+25
| | | | | | | This reverts commit 66bfc5ccbda1c36923230b8dea36e86e8ac62d67. Bug: 19634248 Change-Id: I7c4851a247042193674f226fd0d5c5663e8074c7
* liblog: build cleanupMark Salyzyn2015-03-051-13/+9
| | | | | | | | - Drop CYGWIN build checking - Hard code the "liblog" event tag - Drop use of internal WITH_MINGW Change-Id: I7b63bd7fa4471f340f356b477a0e5e25fe83a851
* liblog: logprint use <endian.h> part threeMark Salyzyn2015-03-042-1/+5
| | | | | | | | Fix host/sdk builds: - Drop logprint from list of host products - Drop <endian.h> for FAKE_LOG_DEVICE Change-Id: I8aa854413ff6d809f0b04987cf913eb228e4213c
* Merge changes I12d6aa4e,I9e802113,I2b30e0fc,Iaf387b9eMark Salyzyn2015-03-054-5/+96
|\ | | | | | | | | | | | | | | * changes: logcat: remove dead label code logcat: do not stop on unexpected log ID Revert "logd: Add minimum time bucket statistics" liblog: Instrument logging of logd write drops
| * liblog: Instrument logging of logd write dropsMark Salyzyn2015-03-044-5/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | - If logger system is prostrated, send an event message with the liblog tag from the associated UID and PID with a count of dropped messages once logging is resumed. - Added to the README a description of the error return values. - Describe in the README the appropriate mitigations for dropped messages. - If the caller sees this message, then /proc/sys/net/unix/max_dgram_qlen is likely too small Change-Id: Iaf387b9e5e1b6aa93bebc7481f9e8353732e3229
* | liblog: logprint use <endian.h> part deuxMark Salyzyn2015-03-041-0/+1
|/ | | | Change-Id: I042194d0f5ec444dd192ee9da50d6b48d556f8ac
* liblog: logprint use <endian.h>Mark Salyzyn2015-03-041-25/+4
| | | | Change-Id: I0ec0fe3e954f6f04964d58e57c817d28057b630b
* liblog: add pstore readMark Salyzyn2015-02-262-1/+176
| | | | | | | | | | | Used to pull the Android log messages after a reboot. Adding an ANDROID_LOG_PSTORE flag to the mode parameter in calls to android_logger_list_alloc() and android_logger_list_alloc_time(). The side effects are that android_logger_clear() and android_logger_list_read() will react with the user space pstore driver. Forms a companion to the pstore console logs. Change-Id: I7bb07b87b3bf73f059a21af3f810af37c7715b6d
* liblog: introduce ANDROID_LOG_* flagsMark Salyzyn2015-02-256-34/+35
| | | | | | | | 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-102-5/+5
| | | | | | | - Enable build for 32 and 64 bit benchmark executables - Fix some cosmetics issues in logd_write.c Change-Id: I544446e5116607d7fec89171135f6e1eff6aebd8
* liblog: add __android_log_is_loggable()Mark Salyzyn2015-02-094-1/+80
| | | | | | | | | - Add new liblog API __android_log_is_loggable(prio, tag, def) - future plan to integrate this into the runtime checks and into the logd daemon for filtration. Inert for now. Bug: 17760225 Change-Id: I16395b4d42acc08f0209f55a1cbf87b0b2112898
* Kill HAVE_PTHREADS.Yabin Cui2015-01-273-31/+12
| | | | | Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
* liblog: add pstore writeMark Salyzyn2015-01-231-19/+48
| | | | | | | Used to push the Android log messages into pstore (when available, and no propagation of error). Change-Id: I9def8cf796d35d347f502d9745d5f42ec1200253
* liblog: use private/android_logger.hMark Salyzyn2015-01-231-20/+13
| | | | | | - fix a latent issue with retransmitting on failure. Change-Id: I2d0e5c3531c279f2dc1fbd74807210ff8d804de1
* liblog: logcat color output corrupted on 32-bitMark Salyzyn2015-01-221-1/+1
| | | | | | sizeof(suffixBuf), not sizeof(suffixLen)! Change-Id: I6e085089237585bb8b406372639b644556747699
* liblog: Add log_time += operatorMark Salyzyn2015-01-051-0/+22
| | | | Change-Id: I1d2987b6cb333fc344d4fee1b7bb25f32a4143c6
* Only Windows doesn't have <sys/uio.h>.Elliott Hughes2014-11-251-2/+2
| | | | | | | This should probably be in libcutils instead, so code that needs to care about Windows can use readv/writev. Change-Id: I7c2ceec3f742cee0e44f69fd4c88459376bd0e08
* Only Win32 doesn't have writev.Elliott Hughes2014-11-251-2/+2
| | | | Change-Id: I9b5328cea3c88a75135dcb0711cbb5471e8fa388
* Liblog: Remove unused functionAndreas Gampe2014-11-241-9/+0
| | | | | | For build-system CFLAGS clean-up, remove unused function. Change-Id: I8c28c4bbbadaea6a5b32483e9e220794967bdd4e
* Kill LOCAL_SOCKET_NAMESPACE.Elliott Hughes2014-11-211-3/+3
| | | | Change-Id: I18928f89f66c37be310c45ff4c05a6d47ab84f66
* kill HAVE_LOCALTIME_RYabin Cui2014-11-133-6/+6
| | | | | Bug: 18361583 Change-Id: Icdc745a5204bba26c6438d16ed38ec791e136163
* Move liblog tests and benchmarks to libc++.Dan Albert2014-11-122-1/+1
| | | | Bug: 15193147 Change-Id: Ib063eb9490e40f9d10c0b0f29b7808c729e4fff9
* am a1ac84cd: MingW doesn\'t handle __attribute__((weak)) for Windows PEAdam Lesinski2014-10-201-2/+1
|\ | | | | | | | | * commit 'a1ac84cd8d7357f38a9fc60ab9d42e81d1790fd2': MingW doesn't handle __attribute__((weak)) for Windows PE
| * MingW doesn't handle __attribute__((weak)) for Windows PEAdam Lesinski2014-10-201-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows PE format doesn't have the same support for weak symbols as ELF does. The symbol android_log_id_to_name was strangely omitted from the resulting Windows executable and the callsite where it was supposed to be called was relaced with a different symbol, which caused a crash in AAPT on Windows. This change works due to a careful set of #ifdefs that ensure only one definition of android_log_id_to_name is defined, but there are other uses of __attribute__((weak)) which should be inspected. Change-Id: I3b58076e31d9b28c5143773a170e9ffda9fa3815
| * Update for public android_set_abort_message().Dan Albert2014-08-192-4/+10
| | | | | | | | | | | | | | | | | | Since android_set_abort_message() is quite helpful to the platform, it's becoming promoted to a real header with a non-private name. Bug: 17059126 Change-Id: I3ed12b66eb07f3a6a08366d5eee147809d9a3ce9 (cherry picked from commit 4047075da6e3796c759e439d4f0bbbac8d2c03f3)
| * Remove invalid 64-bit host objects.Stephen Hines2014-07-251-8/+0
| | | | | | | | | | | | | | | | | | | | | | Bug: 16408818 These targets are no longer in use, since we have a proper way to create both 32-bit and 64-bit host libraries in a single build now. Cherry-pick from AOSP: 03cc1f747c4e92d572a88ec3eb9fde920e871a7e Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
* | 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
* | | liblog: logcat: colored output.Pierre Zurek2014-09-111-30/+78
|/ / | | | | | | | | | | | | | | | | | | | | This patch adds a new '-v color' option to logcat so that the output is colored similar to the ones in DDMS. Simply type "adb logcat -v color" to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL WORK ON A NON xterm STYLE TERMINAL. Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com> Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
* | Fix typo: ifndef -> ifneqDmitriy Ivanov2014-08-251-1/+1
| | | | | | | | Change-Id: Id71c70b6fcd2659078a19cc652fd02807372f3a0
* | Update for public android_set_abort_message().Dan Albert2014-08-182-4/+10
| | | | | | | | | | | | | | | | Since android_set_abort_message() is quite helpful to the platform, it's becoming promoted to a real header with a non-private name. Bug: 17059126 Change-Id: I3ed12b66eb07f3a6a08366d5eee147809d9a3ce9
* | Remove invalid 64-bit host objects.Stephen Hines2014-07-221-8/+0
|/ | | | | | | | | Bug: 16408818 These targets are no longer in use, since we have a proper way to create both 32-bit and 64-bit host libraries in a single build now. Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
* logd_write: set SOCK_CLOEXEC on socketNick Kralevich2014-07-021-1/+1
| | | | | | | | | | | Socket file descriptors remain open across exec unless SOCK_CLOEXEC is set. Enable this option, to avoid leaking file descriptors. See https://android-review.googlesource.com/53736 for a similar problem with the old logging code. Change-Id: I9e045d2291ae6680044ab86604f3ff2c55b5eaed
* implement LOG_EVENT_STRINGNick Kralevich2014-07-012-0/+44
| | | | | | | | Implement LOG_EVENT_STRING, so that native code can create new event log entries. This is needed to support logging SELinux denials to the event log. Change-Id: I6a269a832bc2f5e5da6c9dbd169ed2f901b49166
* Host multilib build of both 32-bit and 64-bit libraries.Ian Rogers2014-06-051-0/+2
| | | | Change-Id: I54f91f385b109fc664a1a1f9320affb2a846fef1
* liblog: test: Send bionc's fatal logging to the crash logMark Salyzyn2014-06-031-2/+2
| | | | | Bug: 14159417 Change-Id: Ia2e29ce03d4e2b02919c62be091da37ce4082647
* liblog: cache getuid() syscallMark Salyzyn2014-06-021-7/+10
| | | | | BUG: 15315766 Change-Id: I8f889a1c6ede74f2621f1b8ea5fda666c4b9cba2
* Address additional warnings found by GCC 4.9.Ben Cheng2014-05-201-1/+1
| | | | Change-Id: I8aae6c3e1ccc2294f4db455e1b4f3b4c34a00aaf
* liblog: set -WerrorMark Salyzyn2014-05-0710-93/+62
| | | | | | | - Deal with some -Wunused issues - Cleanup UNUSED to __unused transition Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
* Remove unused LOCAL_LDLIBS.Ying Wang2014-05-072-9/+0
| | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* Switch to the new bionic fatal logging interface.Elliott Hughes2014-05-062-12/+14
| | | | | | | This is more general and will work for anyone's custom logging code, as long as they use ANDROID_LOG_FATAL priority. Change-Id: Iaf7fc0858fce04f3af407882a58ee5a827d50ddd
* liblog: logcat: Move library print test into gTestMark Salyzyn2014-05-022-85/+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-242-14/+86
| | | | | Bug: 14280914 Change-Id: Idddd29784625094e54144953c29f64692a88eee9
* Merge "Improve liblog's fatal logging."Elliott Hughes2014-04-242-2/+14
|\