Skip to content

Commit ecd589d

Browse files
Todd Kjosgregkh
authored andcommitted
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>
1 parent 7a2670a commit ecd589d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/android/binder.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5418,6 +5418,9 @@ static void print_binder_proc(struct seq_file *m,
54185418
for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) {
54195419
struct binder_node *node = rb_entry(n, struct binder_node,
54205420
rb_node);
5421+
if (!print_all && !node->has_async_transaction)
5422+
continue;
5423+
54215424
/*
54225425
* take a temporary reference on the node so it
54235426
* survives and isn't removed from the tree

0 commit comments

Comments
 (0)