ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/statgrab.h
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/statgrab.h (file contents):
Revision 1.2 by pajs, Tue Feb 18 23:12:08 2003 UTC vs.
Revision 1.9 by pajs, Mon Mar 3 13:14:25 2003 UTC

# Line 21 | Line 21
21   #include <sys/types.h>
22  
23   typedef struct{
24 <        uint_t user;
25 <        uint_t kernel;
26 <        uint_t idle;
27 <        uint_t iowait;
28 <        uint_t swap;
29 <        uint_t nice;
30 <        uint_t total;
24 >        long long user;
25 >        long long kernel;
26 >        long long idle;
27 >        long long iowait;
28 >        long long swap;
29 >        long long nice;
30 >        long long total;
31          time_t systime;
32   }cpu_states_t;
33  
# Line 58 | Line 58 | typedef struct{
58   #define MAX_LOGIN_NAME_SIZE 8
59   #endif
60  
61 typedef char name[MAX_LOGIN_NAME_SIZE+1];
62
61   typedef struct{
62 <        name *name_list;
62 >        char *name_list;
63          int num_entries;
64   }user_stat_t;
65  
# Line 93 | Line 91 | typedef struct {
91   }disk_stat_t;
92  
93   typedef struct{
94 +        char *disk_name;
95 +        long long read_bytes;
96 +        long long write_bytes;
97 +        time_t systime;
98 + }diskio_stat_t;
99 +
100 + typedef struct{
101          int total;
102          int running;
103          int sleeping;
# Line 130 | Line 135 | swap_stat_t *get_swap_stats();
135   general_stat_t *get_general_stats();
136  
137   disk_stat_t *get_disk_stats(int *entries);
138 + diskio_stat_t *get_diskio_stats(int *entries);
139 + diskio_stat_t *get_diskio_stats_diff(int *entries);
140  
141   process_stat_t *get_process_stats();
142  
143   network_stat_t *get_network_stats(int *entries);
144 + network_stat_t *get_network_stats_diff(int *entries);
145  
146   page_stat_t *get_page_stats();
147 + page_stat_t *get_page_stats_diff();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines