~ubuntu-branches/ubuntu/trusty/rstatd/trusty

« back to all changes in this revision

Viewing changes to rstat.x

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2005-02-10 20:19:28 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050210201928-jy94wvrfs75kgt6i
Tags: 3.07-4
New maintainer's email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
        unsigned int users;
65
65
};
66
66
 
 
67
struct statsvar {                               /* RSTATVERS_VAR */
 
68
        int cp_time[CPUSTATES]; /* variable number of CPU states */
 
69
        int dk_xfer[DK_NDRIVE]; /* variable number of disks */
 
70
        unsigned v_pgpgin;      /* these are cumulative sum */
 
71
        unsigned v_pgpgout;
 
72
        unsigned v_pswpin;
 
73
        unsigned v_pswpout;
 
74
        unsigned v_intr;
 
75
        int if_ipackets;
 
76
        int if_ierrors;
 
77
        int if_opackets;
 
78
        int if_oerrors;
 
79
        int if_collisions;
 
80
        unsigned v_swtch;
 
81
        long avenrun[3];
 
82
        rstat_timeval boottime;
 
83
        rstat_timeval curtime;
 
84
};
 
85
 
 
86
 
67
87
struct statstime {                              /* RSTATVERS_TIME */
68
88
        int cp_time[CPUSTATES];
69
89
        int dk_xfer[DK_NDRIVE];
128
148
                unsigned int
129
149
                RSTATPROC_HAVEDISK(void) = 2;
130
150
        } = 5;
 
151
        /*
 
152
         * Version 4 allows for variable number of disk and RSTAT_CPU states.
 
153
         */
 
154
        version RSTATVERS_VAR {
 
155
                statsvar
 
156
                RSTATPROC_STATS (void) = 1;
 
157
 
 
158
                unsigned int
 
159
                RSTATPROC_HAVEDISK (void) = 2;
 
160
        } = 4;
131
161
        /*
132
162
         * Second Newest version includes current time and context switching info
133
163
         */