From 628e7d64e1b8aa7fd2660f26b846e7eed8550492 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: I2acbc34aff0019d24c5c748df583f06f9d01aeb5 Signed-off-by: Helium-Studio <67852324+Helium-Studio@users.noreply.github.com> Signed-off-by: onettboots --- 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 41ffa0afd792..9acd3e04e2ca 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -121,8 +121,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 6678749472f6..4fbbc13a1ec3 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -45,7 +45,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);