%cpu stuff
authorBill Joy <bill@ucbvax.Berkeley.EDU>
Tue, 14 Oct 1980 01:59:25 +0000 (17:59 -0800)
committerBill Joy <bill@ucbvax.Berkeley.EDU>
Tue, 14 Oct 1980 01:59:25 +0000 (17:59 -0800)
SCCS-vsn: sys/sys/proc.h 3.7

usr/src/sys/sys/proc.h

index e1b7e88..6839b57 100644 (file)
@@ -45,8 +45,8 @@ struct        proc
        int     p_clktim;       /* time to alarm clock signal */
        struct  pte *p_p0br;    /* page table base P0BR */
        struct  proc *p_xlink;  /* linked list of procs sharing same text */
        int     p_clktim;       /* time to alarm clock signal */
        struct  pte *p_p0br;    /* page table base P0BR */
        struct  proc *p_xlink;  /* linked list of procs sharing same text */
-       short   p_faults;       /* faults in last second */
-       short   p_aveflt;       /* average of p_faults into past */
+       short   p_cpticks;      /* ticks of cpu time */
+       float   p_pctcpu;       /* %cpu for this process during p_time */
        short   p_ndx;          /* proc index for memall (because of vfork) */
        short   p_idhash;       /* hashed based on p_pid for kill+exit+... */
        struct  proc *p_pptr;   /* pointer to process structure of parent */
        short   p_ndx;          /* proc index for memall (because of vfork) */
        short   p_idhash;       /* hashed based on p_pid for kill+exit+... */
        struct  proc *p_pptr;   /* pointer to process structure of parent */