Add locking notes on the members of rusage. Note that these notes reflect
what is already present in the tree and apply to the rusage struct for current process usage rather than child process usage.
This commit is contained in:
parent
e6c8092ba0
commit
058cab4b41
@ -49,29 +49,34 @@
|
||||
|
||||
/*
|
||||
* Resource utilization information.
|
||||
*
|
||||
* Locking key:
|
||||
* c - locked by proc mtx
|
||||
* j - locked by sched_lock mtx
|
||||
* n - not locked, lazy
|
||||
*/
|
||||
|
||||
#define RUSAGE_SELF 0
|
||||
#define RUSAGE_CHILDREN -1
|
||||
|
||||
struct rusage {
|
||||
struct timeval ru_utime; /* user time used */
|
||||
struct timeval ru_stime; /* system time used */
|
||||
long ru_maxrss; /* max resident set size */
|
||||
struct timeval ru_utime; /* (n) user time used */
|
||||
struct timeval ru_stime; /* (n) system time used */
|
||||
long ru_maxrss; /* (j) max resident set size */
|
||||
#define ru_first ru_ixrss
|
||||
long ru_ixrss; /* integral shared memory size */
|
||||
long ru_idrss; /* integral unshared data " */
|
||||
long ru_isrss; /* integral unshared stack " */
|
||||
long ru_minflt; /* page reclaims */
|
||||
long ru_majflt; /* page faults */
|
||||
long ru_nswap; /* swaps */
|
||||
long ru_inblock; /* block input operations */
|
||||
long ru_oublock; /* block output operations */
|
||||
long ru_msgsnd; /* messages sent */
|
||||
long ru_msgrcv; /* messages received */
|
||||
long ru_nsignals; /* signals received */
|
||||
long ru_nvcsw; /* voluntary context switches */
|
||||
long ru_nivcsw; /* involuntary " */
|
||||
long ru_ixrss; /* (j) integral shared memory size */
|
||||
long ru_idrss; /* (j) integral unshared data " */
|
||||
long ru_isrss; /* (j) integral unshared stack " */
|
||||
long ru_minflt; /* (c) page reclaims */
|
||||
long ru_majflt; /* (c) page faults */
|
||||
long ru_nswap; /* (c + j) swaps */
|
||||
long ru_inblock; /* (n) block input operations */
|
||||
long ru_oublock; /* (n) block output operations */
|
||||
long ru_msgsnd; /* (n) messages sent */
|
||||
long ru_msgrcv; /* (n) messages received */
|
||||
long ru_nsignals; /* (c) signals received */
|
||||
long ru_nvcsw; /* (j) voluntary context switches */
|
||||
long ru_nivcsw; /* (j) involuntary " */
|
||||
#define ru_last ru_nivcsw
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user