logger: introduce lazy/hybrid approach to early logging 41/230841/5
authorMichal Bloch <m.bloch@samsung.com>
Wed, 22 Apr 2020 18:28:09 +0000 (20:28 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Tue, 28 Apr 2020 10:27:32 +0000 (12:27 +0200)
commit4fe8f45ca0edf377bc5ef4fde82346e45c1a1145
tree3e1d1137a56e50fb9fad4c621d0aa16758c64aa8
parente2144aefea4b4091a4f653c59f0fc4aeecf7cb42
logger: introduce lazy/hybrid approach to early logging

This mode is introduced in an attempt to limit CPU usage during boot time.
The logger will now wake up exactly after (instead of up to) the epoll delay
for some configurable amount of time (by default 10s). Ideally this would
just be waiting on BootingDone but the daemon doesn't handle DBus yet, which
would be a larger undertaking. After that delay, it switches back to usual
epoll behaviour (waking up on each log, limiting log loss).

Change-Id: I55555978902d18b2d922663a24fe1caeb6d330e8
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
configs/dlog.conf
src/logger/logger.c
src/logger/logger_internal.h