summaryrefslogtreecommitdiffstats
path: root/base/file.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2017-05-11 13:28:33 -0700
committerMark Salyzyn <salyzyn@google.com>2017-05-15 07:01:42 -0700
commit0878a7c167c317ae3169ae16f386b52ae1fc0cc7 (patch)
tree50907c0cbebe24309ff10e2e5b877894433d2388 /base/file.cpp
parent81824ebf1f9fbae84da63df946d2a4b5e13838ad (diff)
downloadsystem_core-0878a7c167c317ae3169ae16f386b52ae1fc0cc7.tar.gz
system_core-0878a7c167c317ae3169ae16f386b52ae1fc0cc7.tar.bz2
system_core-0878a7c167c317ae3169ae16f386b52ae1fc0cc7.zip
logd: logcat --clear respect pruneMargin
While a reader is present, consider it a success, and not busy, if a buffer is pruned down to pruneMargin plus one second of additional margin of logspan. If not busy, no need to trigger any mitigations regarding the readers, or to report any errors. Side Effects are we no longer mitigate the reader when performing chatty filtration. This is a positive side effect because we were getting --wrap wakeups that seemed premature. Add kickMe() and isBusy() methods to ease maintenance and uniformity of actions. Test: gTest liblog-unit-tests, logd-unit-tests & logcat-unit-tests Test: manual: 'logcat -b all -c' repeat in a loop, at various logging load levels, simultaneously 'logcat -b' all in another session. Bug: 38046067 Change-Id: I3d0c8a2d416a25c45504eda3bfe70b6f6e09ab27
Diffstat (limited to 'base/file.cpp')
0 files changed, 0 insertions, 0 deletions