platform_system_core/logcat
Mark Salyzyn 558282bfe4 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
2017-04-05 19:35:07 +00:00
..
include/log liblogcat: introduce getopt_long_r 2017-03-06 08:40:16 -08:00
tests logcatd: introduce logcatd executable 2017-04-05 19:35:07 +00:00
.clang-format logcat: Add coding style 2017-02-17 14:42:14 -08:00
Android.mk logcatd: introduce logcatd executable 2017-04-05 19:35:07 +00:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
event.logtags Add float support to binary event log. 2015-04-28 18:20:48 -07:00
getopt_long.cpp liblogcat: introduce getopt_long_r 2017-03-06 08:40:16 -08:00
logcat.cpp logcat: Add -h and --help flags 2017-04-05 19:34:48 +00:00
logcat_main.cpp logcat: Create liblogcat 2017-02-17 14:42:14 -08:00
logcat_system.cpp liblogcat: add android_logcat_popen and android_logcat_system 2017-02-17 14:42:14 -08:00
logcatd.rc logcatd: introduce logcatd executable 2017-04-05 19:35:07 +00:00
logcatd_main.cpp logcatd: introduce logcatd executable 2017-04-05 19:35:07 +00:00
logpersist logcatd: fix up logpersist.cat to filter out signature file 2016-08-08 10:20:22 -07:00