How to get contents of Binder transaction buffer for troubleshooting

后端 未结 1 1913
心在旅途
心在旅途 2021-02-04 21:34

Is there a way, either programmatically or through a debugging tool, to know the current transactions held in the Binder transaction buffer?

Sometimes, usually after hou

相关标签:
1条回答
  • 2021-02-04 22:30

    As found in slide 67 of http://www.slideshare.net/jserv/android-ipc-mechanism, detailed information about the Binder transaction buffer can be found through debugfs. After mounting it with

    mount -t debugfs none /sys/kernel/debug
    

    the Binder info can be reached in /sys/kernel/debug/binder/, where one can get global as well as per-process information.

    0 讨论(0)
提交回复
热议问题