Ticket #7556: rusage_complete.diff

File rusage_complete.diff, 1.5 KB (added by wretched_dutchman, 13 years ago)
  • resource.h

     
    4444struct rusage {
    4545    struct timeval ru_utime;    /* user time used */
    4646    struct timeval ru_stime;    /* system time used */
     47    long int ru_oublock;        /* ouput operations via filesystem */
     48    long int ru_inblock;        /* input operations via filesystem */
     49    long int ru_msgsnd;         /* IPC messages sent */
     50    long int ru_msgrcv;         /* IPC messages received */
     51    long int ru_maxrss;         /* Max residents set file (kilobytes) */
     52    long int ru_ixrss;          /* Shared text segments with other processes (kilobytes-seconds) */
     53    long int ru_isrss;          /* Stack used (kilobytes-seconds) */
     54    long int ru_idrss;          /* Data segments memory used (kilobytes-seconds) */
     55/* Number of soft page faults (i.e. those serviced by reclaiming
     56a page from the list of pages awaiting reallocation.  */
     57    long int ru_minflt;
     58/* Number of hard page faults (i.e. those that required I/O).  */
     59    long int ru_majflt;
     60    long int ru_nsignals;       /* Signals delivered */
     61/* Number of voluntary context switches, i.e. because the process
     62gave up the process before it had to (usually to wait for some
     63resource to be available).  */
     64    long int ru_nvcsw;
     65/* Number of involuntary context switches, i.e. a higher priority process
     66became runnable or the current process used up its time slice.  */
     67    long int ru_nivcsw;
     68    long int ru_nswap;          /* Times swapped out */
    4769};
    4870
    4971#define RUSAGE_SELF     0