diff options
author | Arve Hjønnevåg <arve@android.com> | 2012-05-25 20:15:56 -0700 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2015-10-25 16:28:36 +0100 |
commit | c5d3a343f66ecd618f3e14a81db7c5937b8cb3d3 (patch) | |
tree | dcf4195538ccba3c520fbefefcb9820caeff9dda | |
parent | 4968f6a55987a5a08c5dd9b58ba229ff44d7f53f (diff) | |
download | kernel_samsung_espresso10-c5d3a343f66ecd618f3e14a81db7c5937b8cb3d3.zip kernel_samsung_espresso10-c5d3a343f66ecd618f3e14a81db7c5937b8cb3d3.tar.gz kernel_samsung_espresso10-c5d3a343f66ecd618f3e14a81db7c5937b8cb3d3.tar.bz2 |
Staging: android: binder: Add some missing binder_stat_br calls
Cached thread return errors, death notifications and new looper
requests were not included in the stats.
Change-Id: Iabe14b351b662d3f63009ecb3900f92fc3d72cc4
Signed-off-by: Arve Hjønnevåg <arve@android.com>
-rw-r--r-- | drivers/staging/android/binder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index 960fd12..022d1bc 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -2224,6 +2224,7 @@ retry: if (put_user(thread->return_error2, (uint32_t __user *)ptr)) return -EFAULT; ptr += sizeof(uint32_t); + binder_stat_br(proc, thread, thread->return_error2); if (ptr == end) goto done; thread->return_error2 = BR_OK; @@ -2231,6 +2232,7 @@ retry: if (put_user(thread->return_error, (uint32_t __user *)ptr)) return -EFAULT; ptr += sizeof(uint32_t); + binder_stat_br(proc, thread, thread->return_error); thread->return_error = BR_OK; goto done; } @@ -2386,6 +2388,7 @@ retry: if (put_user(death->cookie, (void * __user *)ptr)) return -EFAULT; ptr += sizeof(void *); + binder_stat_br(proc, thread, cmd); binder_debug(BINDER_DEBUG_DEATH_NOTIFICATION, "binder: %d:%d %s %p\n", proc->pid, thread->pid, @@ -2493,6 +2496,7 @@ done: proc->pid, thread->pid); if (put_user(BR_SPAWN_LOOPER, (uint32_t __user *)buffer)) return -EFAULT; + binder_stat_br(proc, thread, BR_SPAWN_LOOPER); } return 0; } |