summaryrefslogtreecommitdiffstats
path: root/logcat/tests/Android.mk
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-04-03 09:30:20 -0700
committerMark Salyzyn <salyzyn@google.com>2017-04-04 08:01:50 -0700
commita073c3961602518d96cab1f4ec58ad75aee81b24 (patch)
treeebba85649a0795c5c5932c47f806c81e0f8573b6 /logcat/tests/Android.mk
parente74e51ded7bd1bcb2420015715aa2439799d2d8b (diff)
downloadcore-a073c3961602518d96cab1f4ec58ad75aee81b24.tar.gz
core-a073c3961602518d96cab1f4ec58ad75aee81b24.tar.bz2
core-a073c3961602518d96cab1f4ec58ad75aee81b24.zip
logcatd: introduce logcatd executable
logcatd is the same as logcat, except that the -L flag, if supplied, runs once, then the command re-runs itself without the -L flag with the same argument set. By introducing a logcatd daemon executable we can solve the problem of the longish reads from pstore that sometimes occur when the system is excessively busy, starving this background cgroup daemon as we absorb the delay in a backgrounded init "service", rather than in a forgrounded init "exec". This would not have been efficiently possible without the introduction of liblogcat. There are no doubt many flags that make no sense to run twice with, and without, the -L flag. In the general sense we expect the caller to perform the correct set of operations and not pick these nonsense operations. logcatd is only supplied on engineering and debug builds for logpersist, and is only an automated aid to triage. Test: gTest logcat-unit-tests Test: manual confirm logpersist functions as expected, required reboot Bug: 28788401 Bug: 30041146 Bug: 30612424 Bug: 35326290 Change-Id: I53ba31970749daf37eef42636f039f485932416f
Diffstat (limited to 'logcat/tests/Android.mk')
-rw-r--r--logcat/tests/Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/logcat/tests/Android.mk b/logcat/tests/Android.mk
index 22aca172a..defd3c490 100644
--- a/logcat/tests/Android.mk
+++ b/logcat/tests/Android.mk
@@ -50,6 +50,7 @@ include $(BUILD_NATIVE_BENCHMARK)
test_src_files := \
logcat_test.cpp \
+ logcatd_test.cpp \
liblogcat_test.cpp \
# Build tests for the device (with .so). Run with: