diff options
author | Todd Kjos <tkjos@android.com> | 2018-12-05 15:19:26 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-12-06 15:44:14 +0100 |
commit | ecd589d8f5661dd3a9545079a29b678cd9e3ecf3 (patch) | |
tree | 0b8d4164a701bf51df7ed261ad47496a7cbb0a5f /drivers/android | |
parent | 7a2670a5bc917e4e7c9be5274efc004f9bd1216a (diff) | |
download | linux-stable-ecd589d8f5661dd3a9545079a29b678cd9e3ecf3.tar.gz linux-stable-ecd589d8f5661dd3a9545079a29b678cd9e3ecf3.tar.bz2 linux-stable-ecd589d8f5661dd3a9545079a29b678cd9e3ecf3.zip |
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.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, 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 |