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.12 by pajs, Fri Apr 4 13:08:27 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 57 | Line 57 | typedef struct{
57   #ifdef SOLARIS
58   #define MAX_LOGIN_NAME_SIZE 8
59   #endif
60 + #if defined(LINUX) || defined(FREEBSD)
61 + #define MAX_LOGIN_NAME_SIZE UT_NAMESIZE
62 + #endif
63  
61 typedef char name[MAX_LOGIN_NAME_SIZE+1];
62
64   typedef struct{
65 <        name *name_list;
65 >        char *name_list;
66          int num_entries;
67   }user_stat_t;
68  
# Line 93 | Line 94 | typedef struct {
94   }disk_stat_t;
95  
96   typedef struct{
97 +        char *disk_name;
98 +        long long read_bytes;
99 +        long long write_bytes;
100 +        time_t systime;
101 + }diskio_stat_t;
102 +
103 + typedef struct{
104          int total;
105          int running;
106          int sleeping;
# Line 108 | Line 116 | typedef struct{
116   }network_stat_t;
117  
118   typedef struct{
111        long long num_pagein;
112        long long num_pageout;
119          long long pages_pagein;
120          long long pages_pageout;
121          time_t systime;
# Line 130 | Line 136 | swap_stat_t *get_swap_stats();
136   general_stat_t *get_general_stats();
137  
138   disk_stat_t *get_disk_stats(int *entries);
139 + diskio_stat_t *get_diskio_stats(int *entries);
140 + diskio_stat_t *get_diskio_stats_diff(int *entries);
141  
142   process_stat_t *get_process_stats();
143  
144   network_stat_t *get_network_stats(int *entries);
145 + network_stat_t *get_network_stats_diff(int *entries);
146  
147   page_stat_t *get_page_stats();
148 + page_stat_t *get_page_stats_diff();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines