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>
This commit is contained in:
parent
d14b09ad9b
commit
0a250c8bdf
@ -2241,6 +2241,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;
|
||||
@ -2248,6 +2249,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;
|
||||
}
|
||||
@ -2403,6 +2405,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,
|
||||
@ -2510,6 +2513,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user