OSDN Git Service

binder: add log information for binder transaction failures
authorTodd Kjos <tkjos@android.com>
Thu, 29 Jun 2017 19:01:46 +0000 (12:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 12:47:29 +0000 (14:47 +0200)
commit57ada2fb2250eab5abe381353f12ada337d82808
tree8a67a3bd356b43e5591a8c3c378d39701a25bd38
parent656a800aad6051ccc81b26c388a2a7a1c8cc8c81
binder: add log information for binder transaction failures

Add additional information to determine the cause of binder
failures. Adds the following to failed transaction log and
kernel messages:
return_error : value returned for transaction
return_error_param : errno returned by binder allocator
return_error_line : line number where error detected

Also, return BR_DEAD_REPLY if an allocation error indicates
a dead proc (-ESRCH)

Signed-off-by: Todd Kjos <tkjos@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
drivers/android/binder_alloc.c