linux/drivers/android
Hridya Valsaraju ce106a8de6 UPSTREAM: binder: Make transaction_log available in binderfs
Currently, the binder transaction log files 'transaction_log'
and 'failed_transaction_log' live in debugfs at the following locations:

/sys/kernel/debug/binder/failed_transaction_log
/sys/kernel/debug/binder/transaction_log

This patch makes these files also available in a binderfs instance
mounted with the mount option "stats=global".
It does not affect the presence of these files in debugfs.
If a binderfs instance is mounted at path /dev/binderfs, the location of
these files will be as follows:

/dev/binderfs/binder_logs/failed_transaction_log
/dev/binderfs/binder_logs/transaction_log

This change provides an alternate option to access these files when
debugfs is not mounted.

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

Bug: 136497735
(cherry picked from commit c31e73121f4c1ec41143423ac6ce3ce6dafdcec1)
Change-Id: I20d9e6c4c7115297f9740cc42a516c315b3a209e
2019-12-08 21:46:47 -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: Make transaction_log available in binderfs 2019-12-08 21:46:47 -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: Make transaction_log available in binderfs 2019-12-08 21:46:47 -08:00
binderfs.c UPSTREAM: binder: Make transaction_log available in binderfs 2019-12-08 21:46:47 -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