summaryrefslogtreecommitdiff
path: root/drivers/android
diff options
context:
space:
mode:
authorTodd Kjos <tkjos@android.com>2018-12-05 15:19:26 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-06 15:44:14 +0100
commitecd589d8f5661dd3a9545079a29b678cd9e3ecf3 (patch)
tree0b8d4164a701bf51df7ed261ad47496a7cbb0a5f /drivers/android
parent7a2670a5bc917e4e7c9be5274efc004f9bd1216a (diff)
binder: filter out nodes when showing binder procs
When dumping out binder transactions via a debug node, the output is too verbose if a process has many nodes. Change the output for transaction dumps to only display nodes with pending async transactions. Signed-off-by: Todd Kjos <tkjos@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 8af984ec13e7..d653e8a474fc 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -5418,6 +5418,9 @@ static void print_binder_proc(struct seq_file *m,
for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) {
struct binder_node *node = rb_entry(n, struct binder_node,
rb_node);
+ if (!print_all && !node->has_async_transaction)
+ continue;
+
/*
* take a temporary reference on the node so it
* survives and isn't removed from the tree