Skip to content

Add binder state and statistics to binderfs

Hridya Valsaraju lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 8 repliesIn review
  2. v24 patches 5 repliesSuperseded
  3. v14 patches 10 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4binder: add a mount option to show global statsdrivers/android/binderfs.c+43 -20 replies
2/4binder: Add stats, state and transactions filesdrivers/android/binder.c drivers/android/binder_internal.h drivers/android/binderfs.c+153 -100 replies
3/4binder: Make transaction_log available in binderfsdrivers/android/binder.c drivers/android/binder_internal.h drivers/android/binderfs.c+53 -290 replies
4/4binder: Add binder_proc logging to binderfsdrivers/android/binder.c drivers/android/binder_internal.h drivers/android/binderfs.c+121 -390 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristian Brauner
SeriesA-b
1/4
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] Add binder state and statistics to binderfs

Currently, the only way to access binder state and statistics is through debugfs. We need a way to access the same even when debugfs is not mounted. These patches add a mount option to make this information available in binderfs without affecting its presence in debugfs. The following debugfs nodes will be made available in a binderfs instance when mounted with the mount option 'stats=global' or 'stats=local'.

/sys/kernel/debug/binder/failed_transaction_log /sys/kernel/debug/binder/proc /sys/kernel/debug/binder/state /sys/kernel/debug/binder/stats /sys/kernel/debug/binder/transaction_log /sys/kernel/debug/binder/transactions

Hridya Valsaraju (4):
binder: add a mount option to show global stats
binder: Add stats, state and transactions files
binder: Make transaction_log available in binderfs
binder: Add binder_proc logging to binderfs

 drivers/android/binder.c          |  95 ++++++-----
 drivers/android/binder_internal.h |  84 ++++++++++
 drivers/android/binderfs.c        | 255 ++++++++++++++++++++++++++----
 3 files changed, 362 insertions(+), 72 deletions(-)
Signature · 1 line
2.23.0.187.g17f5b7556c-goog