From e72c9fc2555eaac332d5217bcc79b345c8651d00 Mon Sep 17 00:00:00 2001 From: John Dias Date: Fri, 12 Aug 2016 08:36:08 -0700 Subject: [PATCH] binder: Set binder_(alloc_)debug_mask=0 to suppress logging. * Excessive logging -- not present on angler -- is affecting performance, contributing to missed audio deadlines and likely other latency-dependent tasks. Bug: 30375418 [@0ctobot: Extend patch to cover binder_alloc_debug_mask] Co-authored-by: Adam W. Willis Change-Id: I36c4ce8a0294e5e7847a3fd884691cb178cd95c2 --- drivers/android/binder.c | 3 +-- drivers/android/binder_alloc.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 8b485c39a08c..5cb7497ea2b3 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -126,8 +126,7 @@ enum { BINDER_DEBUG_PRIORITY_CAP = 1U << 13, BINDER_DEBUG_SPINLOCKS = 1U << 14, }; -static uint32_t binder_debug_mask = BINDER_DEBUG_USER_ERROR | - BINDER_DEBUG_FAILED_TRANSACTION | BINDER_DEBUG_DEAD_TRANSACTION; +static uint32_t binder_debug_mask = 0; module_param_named(debug_mask, binder_debug_mask, uint, 0644); char *binder_devices_param = CONFIG_ANDROID_BINDER_DEVICES; diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index f0ff5fc9d7ea..09c4bb10aeb2 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -44,7 +44,7 @@ enum { BINDER_DEBUG_BUFFER_ALLOC = 1U << 2, BINDER_DEBUG_BUFFER_ALLOC_ASYNC = 1U << 3, }; -static uint32_t binder_alloc_debug_mask = BINDER_DEBUG_USER_ERROR; +static uint32_t binder_alloc_debug_mask = 0; module_param_named(debug_mask, binder_alloc_debug_mask, uint, 0644);