diff options
| author | Todd Kjos <tkjos@android.com> | 2018-12-05 18:19:26 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-06 09:44:14 -0500 |
| commit | ecd589d8f5661dd3a9545079a29b678cd9e3ecf3 (patch) | |
| tree | 0b8d4164a701bf51df7ed261ad47496a7cbb0a5f | |
| parent | 7a2670a5bc917e4e7c9be5274efc004f9bd1216a (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>
| -rw-r--r-- | drivers/android/binder.c | 3 |
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, | |||
| 5418 | for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) { | 5418 | for (n = rb_first(&proc->nodes); n != NULL; n = rb_next(n)) { |
| 5419 | struct binder_node *node = rb_entry(n, struct binder_node, | 5419 | struct binder_node *node = rb_entry(n, struct binder_node, |
| 5420 | rb_node); | 5420 | rb_node); |
| 5421 | if (!print_all && !node->has_async_transaction) | ||
| 5422 | continue; | ||
| 5423 | |||
| 5421 | /* | 5424 | /* |
| 5422 | * take a temporary reference on the node so it | 5425 | * take a temporary reference on the node so it |
| 5423 | * survives and isn't removed from the tree | 5426 | * survives and isn't removed from the tree |
