dlog_logger: read /dev/kmsg in a throttled loop 26/193726/3
authorMichal Bloch <m.bloch@samsung.com>
Thu, 22 Nov 2018 19:17:42 +0000 (20:17 +0100)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Thu, 29 Nov 2018 00:46:46 +0000 (00:46 +0000)
commit57c4817fabd186777dfccfb9896800b1a333bbe1
tree44b20a344bcf1c1c647574a92be43c509f730d18
parent112f0dbffcfd89f25163811df8c4123e5b22e6d0
dlog_logger: read /dev/kmsg in a throttled loop

KMSG only returns one entry per read() - do it in a throttled loop
for efficiency. This is similar to how Android Logger devices are
handled.

Change-Id: I0f95dc657898a9d68bcfd96f9d2e2daab5814176
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logger/logger.c