diff options
Diffstat (limited to 'drivers/android/binder.c')
| -rw-r--r-- | drivers/android/binder.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 1db376184955..f0ce9959d14d 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c | |||
| @@ -3600,13 +3600,24 @@ static int binder_transactions_show(struct seq_file *m, void *unused) | |||
| 3600 | 3600 | ||
| 3601 | static int binder_proc_show(struct seq_file *m, void *unused) | 3601 | static int binder_proc_show(struct seq_file *m, void *unused) |
| 3602 | { | 3602 | { |
| 3603 | struct binder_proc *itr; | ||
| 3603 | struct binder_proc *proc = m->private; | 3604 | struct binder_proc *proc = m->private; |
| 3604 | int do_lock = !binder_debug_no_lock; | 3605 | int do_lock = !binder_debug_no_lock; |
| 3606 | bool valid_proc = false; | ||
| 3605 | 3607 | ||
| 3606 | if (do_lock) | 3608 | if (do_lock) |
| 3607 | binder_lock(__func__); | 3609 | binder_lock(__func__); |
| 3608 | seq_puts(m, "binder proc state:\n"); | 3610 | |
| 3609 | print_binder_proc(m, proc, 1); | 3611 | hlist_for_each_entry(itr, &binder_procs, proc_node) { |
| 3612 | if (itr == proc) { | ||
| 3613 | valid_proc = true; | ||
| 3614 | break; | ||
| 3615 | } | ||
| 3616 | } | ||
| 3617 | if (valid_proc) { | ||
| 3618 | seq_puts(m, "binder proc state:\n"); | ||
| 3619 | print_binder_proc(m, proc, 1); | ||
| 3620 | } | ||
| 3610 | if (do_lock) | 3621 | if (do_lock) |
| 3611 | binder_unlock(__func__); | 3622 | binder_unlock(__func__); |
| 3612 | return 0; | 3623 | return 0; |
