diff options
author | Sherry Yang <sherryy@android.com> | 2017-08-31 14:56:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-01 02:53:32 -0400 |
commit | 8ef4665aa129a14f3733efc651c53a3c6c47b500 (patch) | |
tree | 4fc67d313c1ca17928b1a395eb7b06bd067cdb75 /drivers/android/binder.c | |
parent | 957ccc2bc8f9ebfe8b19112cdc6c2bb20fd7bcf8 (diff) |
android: binder: Add page usage in binder stats
Add the number of active, lru, and free pages for
each binder process in binder stats
Signed-off-by: Sherry Yang <sherryy@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder.c')
-rw-r--r-- | drivers/android/binder.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index ba9e613b42d6..56b380292cc5 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c | |||
@@ -5047,6 +5047,8 @@ static void print_binder_proc_stats(struct seq_file *m, | |||
5047 | count = binder_alloc_get_allocated_count(&proc->alloc); | 5047 | count = binder_alloc_get_allocated_count(&proc->alloc); |
5048 | seq_printf(m, " buffers: %d\n", count); | 5048 | seq_printf(m, " buffers: %d\n", count); |
5049 | 5049 | ||
5050 | binder_alloc_print_pages(m, &proc->alloc); | ||
5051 | |||
5050 | count = 0; | 5052 | count = 0; |
5051 | binder_inner_proc_lock(proc); | 5053 | binder_inner_proc_lock(proc); |
5052 | list_for_each_entry(w, &proc->todo, entry) { | 5054 | list_for_each_entry(w, &proc->todo, entry) { |