kernel - account for kernel cpu time (ipc, kcalls) in caller

This commit is contained in:
Ben Gras
2011-02-08 13:58:32 +00:00
parent b2d1109737
commit 07bfb4f4e4
6 changed files with 25 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ struct proc {
clock_t p_prof_left; /* number of ticks left on profile timer */
u64_t p_cycles; /* how many cycles did the process use */
u64_t p_kcall_cycles; /* kernel cycles caused by this proc (kcall) */
u64_t p_kipc_cycles; /* cycles caused by this proc (ipc) */
struct proc *p_nextready; /* pointer to next ready process */
struct proc *p_caller_q; /* head of list of procs wishing to send */