Skip to content

Commit 628e7d6

Browse files
John Diasonettboots
authored andcommitted
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: I2acbc34aff0019d24c5c748df583f06f9d01aeb5 Signed-off-by: Helium-Studio <67852324+Helium-Studio@users.noreply.github.com> Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent 78da344 commit 628e7d6

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/android/binder.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ enum {
121121
BINDER_DEBUG_PRIORITY_CAP = 1U << 13,
122122
BINDER_DEBUG_SPINLOCKS = 1U << 14,
123123
};
124-
static uint32_t binder_debug_mask = BINDER_DEBUG_USER_ERROR |
125-
BINDER_DEBUG_FAILED_TRANSACTION | BINDER_DEBUG_DEAD_TRANSACTION;
124+
static uint32_t binder_debug_mask = 0;
126125
module_param_named(debug_mask, binder_debug_mask, uint, 0644);
127126

128127
char *binder_devices_param = CONFIG_ANDROID_BINDER_DEVICES;

drivers/android/binder_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ enum {
4545
BINDER_DEBUG_BUFFER_ALLOC = 1U << 2,
4646
BINDER_DEBUG_BUFFER_ALLOC_ASYNC = 1U << 3,
4747
};
48-
static uint32_t binder_alloc_debug_mask = BINDER_DEBUG_USER_ERROR;
48+
static uint32_t binder_alloc_debug_mask = 0;
4949

5050
module_param_named(debug_mask, binder_alloc_debug_mask,
5151
uint, 0644);

0 commit comments

Comments
 (0)