diff options
author | Arve Hjønnevåg <arve@android.com> | 2012-05-25 20:15:56 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-08-10 16:24:02 -0400 |
commit | d9c9138ed3c55b1f1ebfc6a3af092ba7ca7640fc (patch) | |
tree | 3d92ad1de473bf77187d0635b883480d903fce62 | |
parent | 88948c4079f78a8ce1a65659ffaa3f61bfa310a7 (diff) |
Staging: android: binder: Add some missing binder_stat_br callstracking-linaro-android-3.6-llct-20120903.0tracking-linaro-android-3.6-llct-20120822.0tracking-linaro-android-3.6-llct-20120821.0tracking-linaro-android-3.6-llct-20120820.1tracking-linaro-android-3.6-llct-20120820.0tracking-linaro-android-3.6-llct-20120816.0tracking-linaro-android-3.6-llct-20120814.0tracking-linaro-android-3.6-llct-20120813.0
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 574e99210c3..b6b19bbd6f4 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -2223,6 +2223,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; @@ -2230,6 +2231,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; } @@ -2385,6 +2387,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, @@ -2492,6 +2495,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; } |