|
@@ -997,6 +997,8 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p)
|
|
|
|
|
|
get_task_struct(p);
|
|
get_task_struct(p);
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
+ sched_annotate_sleep();
|
|
|
|
+
|
|
if ((exit_code & 0x7f) == 0) {
|
|
if ((exit_code & 0x7f) == 0) {
|
|
why = CLD_EXITED;
|
|
why = CLD_EXITED;
|
|
status = exit_code >> 8;
|
|
status = exit_code >> 8;
|
|
@@ -1079,6 +1081,7 @@ static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p)
|
|
* thread can reap it because we its state == DEAD/TRACE.
|
|
* thread can reap it because we its state == DEAD/TRACE.
|
|
*/
|
|
*/
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
+ sched_annotate_sleep();
|
|
|
|
|
|
retval = wo->wo_rusage
|
|
retval = wo->wo_rusage
|
|
? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0;
|
|
? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0;
|
|
@@ -1210,6 +1213,7 @@ unlock_sig:
|
|
pid = task_pid_vnr(p);
|
|
pid = task_pid_vnr(p);
|
|
why = ptrace ? CLD_TRAPPED : CLD_STOPPED;
|
|
why = ptrace ? CLD_TRAPPED : CLD_STOPPED;
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
+ sched_annotate_sleep();
|
|
|
|
|
|
if (unlikely(wo->wo_flags & WNOWAIT))
|
|
if (unlikely(wo->wo_flags & WNOWAIT))
|
|
return wait_noreap_copyout(wo, p, pid, uid, why, exit_code);
|
|
return wait_noreap_copyout(wo, p, pid, uid, why, exit_code);
|
|
@@ -1272,6 +1276,7 @@ static int wait_task_continued(struct wait_opts *wo, struct task_struct *p)
|
|
pid = task_pid_vnr(p);
|
|
pid = task_pid_vnr(p);
|
|
get_task_struct(p);
|
|
get_task_struct(p);
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
+ sched_annotate_sleep();
|
|
|
|
|
|
if (!wo->wo_info) {
|
|
if (!wo->wo_info) {
|
|
retval = wo->wo_rusage
|
|
retval = wo->wo_rusage
|