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 <return.of.octobot@gmail.com>

Change-Id: I36c4ce8a0294e5e7847a3fd884691cb178cd95c2
This commit is contained in:
John Dias 2016-08-12 08:36:08 -07:00 committed by Gagan Malvi
parent abca78dc6d
commit e72c9fc255
No known key found for this signature in database
GPG key ID: B932A7CE71E9198F
2 changed files with 2 additions and 3 deletions

View file

@ -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;

View file

@ -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);