aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/pid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/pid.h')
-rw-r--r--src/include/pid.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/include/pid.h b/src/include/pid.h
index 7e235b713..d2f912b2a 100644
--- a/src/include/pid.h
+++ b/src/include/pid.h
@@ -31,14 +31,23 @@ typedef struct {
31 unsigned char zombie; 31 unsigned char zombie;
32 pid_t parent; 32 pid_t parent;
33 uid_t uid; 33 uid_t uid;
34 char *user; 34
35 char *cmd; 35 union {
36 unsigned utime; 36 struct event_t {
37 unsigned stime; 37 char *user;
38 unsigned long long rx; // network rx, bytes 38 char *cmd;
39 unsigned long long tx; // networking tx, bytes 39 } event;
40 unsigned rx_delta; 40
41 unsigned tx_delta; 41 struct top_t {
42 unsigned utime;
43 unsigned stime;
44 } top;
45
46 struct netstats_t {
47 unsigned long long rx; // network rx, bytes
48 unsigned long long tx; // networking tx, bytes
49 } netstats;
50 } option;
42} Process; 51} Process;
43//extern Process pids[max_pids]; 52//extern Process pids[max_pids];
44extern Process *pids; 53extern Process *pids;
@@ -52,7 +61,6 @@ char *pid_get_user_name(uid_t uid);
52// print functions 61// print functions
53void pid_print_tree(unsigned index, unsigned parent, int nowrap); 62void pid_print_tree(unsigned index, unsigned parent, int nowrap);
54void pid_print_list(unsigned index, int nowrap); 63void pid_print_list(unsigned index, int nowrap);
55void pid_store_cpu(unsigned index, unsigned parent, unsigned *utime, unsigned *stime);
56void pid_read(pid_t mon_pid); 64void pid_read(pid_t mon_pid);
57 65
58#endif 66#endif