Kernel: per-process sleep time
Change-Id: I6e08e7db155ed6d51002f0993dbef29ca6d926d1
This commit is contained in:
parent
1f3ef2b206
commit
6b0f33d0fc
@ -1774,6 +1774,8 @@ void dequeue(struct proc *rp)
|
||||
rp->p_accounting.enter_queue = 0;
|
||||
}
|
||||
|
||||
/* For ps(1), remember when the process was last dequeued. */
|
||||
rp->p_dequeued = get_monotonic();
|
||||
|
||||
#if DEBUG_SANITYCHECKS
|
||||
assert(runqueues_ok_local());
|
||||
|
@ -54,6 +54,8 @@ struct proc {
|
||||
unsigned long preempted;
|
||||
} p_accounting;
|
||||
|
||||
clock_t p_dequeued; /* uptime at which process was last dequeued */
|
||||
|
||||
clock_t p_user_time; /* user time in ticks */
|
||||
clock_t p_sys_time; /* sys time in ticks */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user