From d2743ef5c904f76dd7c388c28a8cd5d4fb7a5c94 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Mon, 27 Jul 2020 16:53:29 -0700 Subject: liblog: don't cache property size values and move to own file Don't cache the property size values since they're only queried at the start of logd and only once during dumpstate. Initializing SerializedLogBuffer, which includes all of the logd queries, takes under 100us without the cache, certainly fast enough that this cache is unneeded. Move these functions to their own file in preparation for removing them from liblog. Test: log sizes set appropriately Change-Id: I15a2fd687dcffb4eab2f22ee0825ca86e40cdba3 --- logd/LogBufferTest.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'logd/LogBufferTest.cpp') diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp index 47d2a2f92..191110522 100644 --- a/logd/LogBufferTest.cpp +++ b/logd/LogBufferTest.cpp @@ -34,16 +34,6 @@ using android::base::Join; using android::base::Split; using android::base::StringPrintf; -#ifndef __ANDROID__ -unsigned long __android_logger_get_buffer_size(log_id_t) { - return 1024 * 1024; -} - -bool __android_logger_valid_buffer_size(unsigned long) { - return true; -} -#endif - char* android::uidToName(uid_t) { return nullptr; } -- cgit v1.2.3