| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Change-Id: I7315b35049924d5067203a432584b8f29e5a1391
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* changes:
libsysutils: SocketListener export release
libsysutils: Add iovec/runOnEachSocket
liblog: support struct logger_event_v2 format
liblog: update timestamp on NOTICE file
libcutils: resolve warning in iosched_policy.c
liblog: Add const pedantics
logcat: Add -T flag (-t w/o assumption of -d)
logcat: Add logcat test suite
liblog: Add cpu utilization test
liblog: Add liblog test suite
debuggerd: Support newline split in log messages
liblog: deprecate export LOGGER ioctl definitions
liblog: deprecate export of LOGGER_LOG_* defines
liblog: Add README
liblog: resolve build warning messages
liblog: high CPU usage from logcat
liblog: fix build again
liblog: drop use of sys/cdefs.h
liblog: git_master@964770 build problem
logcat: Incorporate liblog reading API
debuggerd: Incorporate liblog reading API
liblog: Interface to support abstracting log read
adb: deprecate legacy log service interface
adb: regression from Move list.c to inlines
liblog: whitespace cleanup
libcutils: bug str_parms.c:str_parms_get_float().
libcutils: UNUSED argument warnings
libsysutils: Get rid of warnings
libcutils: Move list.c to inlines on list.h
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit c176e14ce3fd28432e2eaca7bc7a60046dd8be40)
Change-Id: I34c96adffab3478dae8f5a2597a840caad5092cc
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit b69e092dc75b643d95538929b38da6f647e79351)
Change-Id: I776509232aaa50e14fe79e45ab133c0ea3985933
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 8d1fdb509305e93eb46d45a6dcd34bedd6dc0742)
Change-Id: Ia457d518b4e7ff37e840336ff0c48583709700d4
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 2e44a9ea2518024a07f38c2cc6066ec2074d5210)
Change-Id: I150cad9309255bec2b8bc7230c744e9bbb1b9578
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 73459a5c87dc9e7c2aeee00597b9d3cc8d9a190e)
Change-Id: I263af8e889f8f2ad91b91757caf90a4d17823dab
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 912c88cc5abde3fb7e09a810491c3285b3bd4a64)
Change-Id: I9d789e08e9301ec8afa7be8bede955379694b904
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 153b370624c3da0660281f692fbe3f2da96cfd70)
Change-Id: Icc6f1f2c926a008efc4df71022cfde8d0e285880
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
BUG: 12457855
- log_read.c poll timeout should be -1 instead of 0 when idling
(cherry picked from commit 080bbfab94ce91e4845860d5253eea6d869bbc18)
Change-Id: I9082a15fae0fbf999c0ed516950a49d65a279298
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| | |
- darwin does not get log reader
(cherry picked from commit 5feea6890875c9046f40bdadc0dbd4a411e7f3f5)
Change-Id: I64eb69a6099a88d2acf501de725c35741fd7e551
|
| |
| |
| |
| |
| |
| | |
(cherry picked from commit 6c1b07fbbd0ccce0e4fdf79abd38494cc622d67e)
Change-Id: Iedc55c1316029b4bb72f51cc656b53b0e3f90aee
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- change cutils to liblog directory path
- change tabs to spaces
(cherry picked from commit c1215c0b46576771370ceb4e1b1d8fc5a7034cfd)
Change-Id: I7d9db1e2b817ba0ec9a224340c5c7535a2387fd5
|
|/
|
|
|
|
|
| |
- Implicit decleared function
- Unused variable
Change-Id: Ia701e66682cb6788f0716a2ef7556ed07227f78f
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 6497974
Change-Id: I7fba1a07e2552ce16131b81f30d18eb3192de7ef
|
|
|
|
|
| |
Bug: 6497974
Change-Id: I4691f287b0abdce03ff211bd5b5b0037b8818ec9
|
|
|
|
|
|
|
|
| |
Change-Id: I0317bb3b80c6555bcb1ff9f2238f32be5f7adedb
Conflicts:
liblog/Android.mk
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: 5522726
Change-Id: I8637c7da854ec1ecb321632c45ee9bc2edc94a67
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
The log tag may be zero length if corrupted, so check for this
condition.
Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
|
|
|
|
|
|
| |
Bug: 5010576
Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
|
|
|
|
|
|
| |
Revert "Fix build warnings"
This reverts commit 590e364868b6466e169f2647e95462ba2558dd00.
|
|
|
|
| |
Change-Id: Ie24cf8e729813e4527c698fc7c1502a1efbc63e5
|
|\
| |
| |
| |
| |
| |
| | |
Merge commit '64ba76c1431afe17c1f4553f1dbc595db064316e'
* commit '64ba76c1431afe17c1f4553f1dbc595db064316e':
Fixed LOG_ASSERT() compilation errors in native debug builds.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
| |
Change-Id: I55aca04fdd3822ac06db183bf2ff0cbd61f778e8
|
|\
| |
| |
| | |
Change-Id: I698b3c16bdef8751cc857b00f815cb2f95465431
|
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| |
| |
| |
| | |
Automated import of CL 144185
|
| | |
|
| | |
|
| |
| |
| |
| | |
macros work.
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | | |
from donutburger.
Automated import of CL 144245
|
| |/ |
|
|\ \ |
|
| |/ |
|
|\ \
| |/
| |
| |
| |
| | |
Conflicts:
init/devices.c
libpixelflinger/Android.mk
|
| | |
|
| | |
|