Merge "liblog: BM_log_latency improvement"

am: 9d3722be72

Change-Id: I823a97f19fa9aee1c482c517da3541d70d97722d
This commit is contained in:
Mark Salyzyn 2017-01-20 19:09:37 +00:00 committed by android-build-merger
commit e79f85ca42

View file

@ -262,6 +262,8 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr)
}
#if defined(__ANDROID__)
clock_gettime(android_log_clockid(), &ts);
if (log_id == LOG_ID_SECURITY) {
if (vec[0].iov_len < 4) {
return -EINVAL;
@ -351,8 +353,6 @@ static int __write_to_log_daemon(log_id_t log_id, struct iovec *vec, size_t nr)
return -EPERM;
}
}
clock_gettime(android_log_clockid(), &ts);
#else
/* simulate clock_gettime(CLOCK_REALTIME, &ts); */
{