summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-08-10 15:20:00 -0700
committerTom Cherry <tomcherry@google.com>2020-08-10 15:56:15 -0700
commit4af349b072f1cf8d2cf3ecaf0987612f2490d530 (patch)
tree89ad26be9d88e266b6d410c93532912bc51f7f06 /trusty/coverage/coverage.cpp
parent2cfea97ba38980a1cf2f1b15a9ee26c081f0ccc5 (diff)
liblog: use a blocking socket for sending messages to logd
liblog uses a non-blocking socket for sending messages to logd as a performance/reliability trade-off, favoring not blocking processes when they log over reliably tracking all logs. This change asserts that the above is the wrong trade-off: that log relability is more important than slight delays when logging. Further points to consider: 1) The new logd implementation without chatty has lower latency and less variance in its ::Log() function. 2) liblog also writes to /dev/pmsg0 and this call is already blocking. 3) Logging is already expensive and excess spam must be eliminated regardless. Bug: 151654749 Bug: 155922578 Bug: 160314220 Test: No messages are dropped by this socket Change-Id: I163b7d51aa73a10978850f1868cb9fc4bf9ead1b
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions