linux/drivers/android
Hridya Valsaraju 7aeb384a5f UPSTREAM: binder: Add stats, state and transactions files
The following binder stat files currently live in debugfs.

/sys/kernel/debug/binder/state
/sys/kernel/debug/binder/stats
/sys/kernel/debug/binder/transactions

This patch makes these files available in a binderfs instance
mounted with the mount option 'stats=global'. For example, if a binderfs
instance is mounted at path /dev/binderfs, the above files will be
available at the following locations:

/dev/binderfs/binder_logs/state
/dev/binderfs/binder_logs/stats
/dev/binderfs/binder_logs/transactions

This provides a way to access them even when debugfs is not mounted.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Hridya Valsaraju <hridya@google.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20190903161655.107408-3-hridya@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit 0e13e452da)
Change-Id: Ieeb666a719fb3195133403054de7b103a358e1ae
2019-12-08 21:46:40 -08:00
..
binder_alloc_selftest.c UPSTREAM: binder: fix sparse issue in binder_alloc_selftest.c 2019-03-25 15:08:19 -07:00
binder_alloc.c binder: fix race between munmap() and direct reclaim 2019-06-09 09:17:23 +02:00
binder_alloc.h BACKPORT: binder: use userspace pointer as base of buffer space 2019-03-25 15:08:18 -07:00
binder_internal.h UPSTREAM: binder: Add stats, state and transactions files 2019-12-08 21:46:40 -08:00
binder_trace.h BACKPORT: binder: use userspace pointer as base of buffer space 2019-03-25 15:08:18 -07:00
binder.c UPSTREAM: binder: Add stats, state and transactions files 2019-12-08 21:46:40 -08:00
binderfs.c UPSTREAM: binder: Add stats, state and transactions files 2019-12-08 21:46:40 -08:00
Kconfig UPSTREAM: binder: implement binderfs 2019-12-08 21:41:34 -08:00
Makefile UPSTREAM: binder: implement binderfs 2019-12-08 21:41:34 -08:00