summaryrefslogtreecommitdiffstats
path: root/liblog
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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-276-2/+903
| | | | | | | | | | | | (cherry picked from commit 8d1fdb509305e93eb46d45a6dcd34bedd6dc0742) Change-Id: Ia457d518b4e7ff37e840336ff0c48583709700d4
| * liblog: deprecate export LOGGER ioctl definitionsMark Salyzyn2014-01-271-0/+11
| | | | | | | | | | | | (cherry picked from commit 2e44a9ea2518024a07f38c2cc6066ec2074d5210) Change-Id: I150cad9309255bec2b8bc7230c744e9bbb1b9578
| * liblog: deprecate export of LOGGER_LOG_* definesMark Salyzyn2014-01-271-1/+6
| | | | | | | | | | | | (cherry picked from commit 73459a5c87dc9e7c2aeee00597b9d3cc8d9a190e) Change-Id: I263af8e889f8f2ad91b91757caf90a4d17823dab
| * liblog: Add READMEMark Salyzyn2014-01-271-0/+134
| | | | | | | | | | | | (cherry picked from commit 912c88cc5abde3fb7e09a810491c3285b3bd4a64) Change-Id: I9d789e08e9301ec8afa7be8bede955379694b904
| * liblog: resolve build warning messagesMark Salyzyn2014-01-272-10/+10
| | | | | | | | | | | | (cherry picked from commit 153b370624c3da0660281f692fbe3f2da96cfd70) Change-Id: Icc6f1f2c926a008efc4df71022cfde8d0e285880
| * liblog: high CPU usage from logcatMark Salyzyn2014-01-271-5/+7
| | | | | | | | | | | | | | | | | | | | BUG: 12457855 - log_read.c poll timeout should be -1 instead of 0 when idling (cherry picked from commit 080bbfab94ce91e4845860d5253eea6d869bbc18) Change-Id: I9082a15fae0fbf999c0ed516950a49d65a279298
| * liblog: fix build againColin Cross2014-01-271-6/+2
| | | | | | | | | | | | | | | | | | log_read.c has to be in the target sources on all platforms, but never needs to be in the host sources. (cherry picked from commit 3c37fae4a472835c8e20060e1e6b7495b84f254a) Change-Id: Ie0829f3f1daf16d151c401653dbef603b1c2f59d
| * liblog: git_master@964770 build problemMark Salyzyn2014-01-271-1/+4
| | | | | | | | | | | | | | | | - darwin does not get log reader (cherry picked from commit 5feea6890875c9046f40bdadc0dbd4a411e7f3f5) Change-Id: I64eb69a6099a88d2acf501de725c35741fd7e551
| * liblog: Interface to support abstracting log readMark Salyzyn2014-01-272-0/+653
| | | | | | | | | | | | (cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e) Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee
| * liblog: whitespace cleanupMark Salyzyn2014-01-272-3/+3
| | | | | | | | | | | | | | | | | | - change cutils to liblog directory path - change tabs to spaces (cherry picked from commit c1215c0b46576771370ceb4e1b1d8fc5a7034cfd) Change-Id: I7d9db1e2b817ba0ec9a224340c5c7535a2387fd5
* | Fixes some warningsKristian Monsen2014-01-283-1/+35
|/ | | | | | | - Implicit decleared function - Unused variable Change-Id: Ia701e66682cb6788f0716a2ef7556ed07227f78f
* Move liblog headers to system/core/include/logColin Cross2013-07-246-8/+87
| | | | | | | | | Move the liblog headers to log/ instead of cutils/ to complete the separation of libcutils and liblog. cutils/log.h still exists and includes log/log.h in order to support the many existing modules that use cutils/log.h. Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
* liblog: fix fd leakageNick Kralevich2013-03-151-1/+3
| | | | | | | | | | | | | | | | | | | | | File descriptors remain open across an exec unless FD_CLOEXEC is set. Add O_CLOEXEC to the open() call to prevent file descriptor leakage. In particular, the following program will eventually run out of file descriptors: int main(int argc, char **argv) { printf("===== entering main =====\n"); ALOGW("entering main"); system("ls -l /proc/self/fd/"); execv(argv[0], argv); printf("exec failed\n"); return -1; } Change-Id: I5be43ab3b9f82a05f242b1f586454c50568af388
* Use Rlog instead of LogWink Saville2012-12-061-3/+14
| | | | | | | Changing __android_log_write so the tag warns users relying on the tag to direct log output to the radio buffer to instead use Rlog or RLOG. Change-Id: I04b7bb5e620c1ab22b9b495382a252b539947e28
* Collapse IMS tags into a prefix check.Jeff Sharkey2012-08-131-6/+4
| | | | | Bug: 6497974 Change-Id: I7fba1a07e2552ce16131b81f30d18eb3192de7ef
* Force IMS logging into radio log.Jeff Sharkey2012-07-171-2/+6
| | | | | Bug: 6497974 Change-Id: I4691f287b0abdce03ff211bd5b5b0037b8818ec9
* Make a liblog.so for the host too.Elliott Hughes2012-05-031-1/+6
| | | | | | | | Change-Id: I0317bb3b80c6555bcb1ff9f2238f32be5f7adedb Conflicts: liblog/Android.mk
* Added rules to build 64-bit libraries: lib64cutils.a and lib64log.aAndrew Hsieh2012-03-011-0/+12
| | | | | | | | | | | Both libraries are needed to build four shared libraries in 64-bit for 64-bit emulator with "-gpu on" lib64OpenglRender.so lib64EGL_translator.so lib64GLES_CM_translator.so lib64GLES_V2_translator.so Change-Id: If57f72d4661a74f1d5e537568881f39132e0b43d
* Fixed two 64-bit porting issues; Make pid/tid type consistentAndrew Hsieh2012-02-292-8/+8
| | | | | | | | 1. In printf, use "%zu" for variable of type size_t 2. Print tid in %5d 3. Make type of pid/tid in AndroidLogEntry and logger_entry consistent Change-Id: I3e3d9536ee58823f349a4734ae093d30eabe1bfe
* Gracefully handle truncated log messages.Jeff Sharkey2011-10-261-6/+23
| | | | | Bug: 5522726 Change-Id: I8637c7da854ec1ecb321632c45ee9bc2edc94a67
* liblog: do better checks of log messages.Nick Kralevich2011-10-181-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | Testing: The following test cases all passed and generated log entries: # echo -n '\03foo\0bar\0' > /dev/log/main # echo -n '\03\0bar\0' > /dev/log/main # echo -n '\03\0a\0' > /dev/log/main The following entries were successfully processed by logcat but produced no log entries: # echo -n '\03\0\0' > /dev/log/main # echo -n '\03a\0\0' > /dev/log/main # echo -n '\03b\0\0' > /dev/log/main Also tested the pathological error condition: cat /dev/urandom > /dev/log/main which produced many "+++ LOG: malformed log entry" errors. Bug: 5478600 Change-Id: I53bc79507242dcfc14445746c29edf47be0a90b4
* liblog: ensure that the message length is consistentNick Kralevich2011-10-171-1/+7
| | | | | | | | | When parsing log entries which may have embedded \0s, it's possible for entry->messageLen to not be the actual length of the string in entry->message. Detect this condition. Bug: 5417417 Change-Id: I712cac7696af7831e24765b5a1b345d6ff5fb407
* Add checking for log entry formatKenny Root2011-10-031-4/+16
| | | | | | | The log tag may be zero length if corrupted, so check for this condition. Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-21/+10
| | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* Fix SDK build.Brett Chabot2011-06-273-31/+0
| | | | | | Revert "Fix build warnings" This reverts commit 590e364868b6466e169f2647e95462ba2558dd00.
* Fix build warningsGlenn Kasten2011-06-243-0/+31
| | | | Change-Id: Ie24cf8e729813e4527c698fc7c1502a1efbc63e5
* am 64ba76c1: merge from open-source masterThe Android Open Source Project2010-07-161-7/+18
|\ | | | | | | | | | | | | Merge commit '64ba76c1431afe17c1f4553f1dbc595db064316e' * commit '64ba76c1431afe17c1f4553f1dbc595db064316e': Fixed LOG_ASSERT() compilation errors in native debug builds.
| * Fixed LOG_ASSERT() compilation errors in native debug builds.Chris Pearson2010-07-161-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | Invoking LOG_ASSERT, LOG_ALWAYS_FATAL or LOG_ALWAYS_FATAL_IF variadic macros without the printf format string arg caused compilation errors because the variable arg list (__VA_ARGS__) was eventually passed to __android_log_assert() func in place of a required parameter. This error only occured in debug builds because LOG_ASSERT() is a no-op in release builds. This change allows debug builds to succeed. Change-Id: I7e7b7de3e501133468ce083e0e0d6e699dd59667 Signed-off-by: Chris Pearson <christopherx.c.pearson@intel.com>
* | Fix a long standing bug in the output buffer size computation.Carl Shapiro2010-04-091-1/+1
|/ | | | Change-Id: I55aca04fdd3822ac06db183bf2ff0cbd61f778e8
* merge from open-source masterThe Android Open Source Project2010-03-081-0/+10
|\ | | | | | | Change-Id: I698b3c16bdef8751cc857b00f815cb2f95465431
| * Fix Heap Corruption from too long of a TAGKeith Preston2010-02-181-0/+10
| | | | | | | | | | | | snprintf has a weird return value. It returns what would have been written given a large enough buffer. In the case that the prefix is longer then our buffer(128), it messes up the calculations below possibly causing heap corruption. To avoid this we double check and set the length at the maximum (size minus null byte
| * eclair snapshotJean-Baptiste Queru2009-11-122-6/+1
| |
| * AI 144185: Integrate cdma into the main code base.Wink Saville2009-04-021-1/+5
| | | | | | | | Automated import of CL 144185
| * Automated import from //branches/donutburger/...@140818,140818Dianne Hackborn2009-03-241-0/+190
| |
* | remove stray printfs.Joe Onorato2010-03-031-2/+0
| |
* | Make logcat print both the main and system buffers by default. Make SLOGx ↵Joe Onorato2010-03-012-17/+52
| | | | | | | | macros work.
* | Route all log tags with "RIL" prefix to radio buffer.John Michelau2009-08-191-5/+1
| |
* | Merge branch 'readonly-p4-master'Wink Saville2009-04-021-1/+5
|\ \
| * | AI 144245: Fix merge conflict for megering in the CDMA changes in to master ↵Wink Saville2009-04-021-1/+5
| | | | | | | | | | | | | | | | | | from donutburger. Automated import of CL 144245
| * | Automated import from //branches/master/...@140824,140824Dianne Hackborn2009-03-241-0/+190
| |/
* | Merge commit 'korg/cupcake'The Android Open Source Project2009-03-271-0/+190
|\ \
| * | auto import from //branches/cupcake_rel/...@141571The Android Open Source Project2009-03-191-0/+190
| |/
* | Merge commit 'remotes/korg/cupcake' into mergeJean-Baptiste Queru2009-03-182-8/+16
|\ \ | |/ | | | | | | | | Conflicts: init/devices.c libpixelflinger/Android.mk
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-035-0/+2397
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-035-2389/+0
| |
| * auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-1/+1
| |
* | auto import from //branches/cupcake/...@126645android-build SharedAccount2009-01-151-0/+1
|\ \ | |/
| * auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-0/+1
| |
* | 1. added macro definitions to AndroidConfig.hAlexey Tarasov2008-11-071-1/+0
|/ | | | 2. removed unnecessary include of <alloca.h>