summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-03-09 08:02:22 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-03-09 08:02:22 +0000
commit12f4f09e6ed288bdedc86e4ef22f3cc34f0e787a (patch)
tree0b3ce5d14fc72ae391378fa178a0a18b69298664 /Process.h
parent460608d6e215dee3d3af822d974f3a36e5f73d3c (diff)
Add support for Linux per-process IO statistics,
enabled with the --enable-taskstats flag, which requires a kernel compiled with taskstats support. Thanks to Tobias Oetiker!
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Process.h b/Process.h
index b107073d..57133380 100644
--- a/Process.h
+++ b/Process.h
@@ -51,6 +51,9 @@ typedef enum ProcessField_ {
#ifdef HAVE_OPENVZ
VEID, VPID,
#endif
+ #ifdef HAVE_TASKSTATS
+ RCHAR, WCHAR, SYSCR, SYSCW, RBYTES, WBYTES, CNCLWB, IO_READ_RATE, IO_WRITE_RATE,
+ #endif
LAST_PROCESSFIELD
} ProcessField;
@@ -123,6 +126,19 @@ typedef struct Process_ {
unsigned int veid;
unsigned int vpid;
#endif
+ #ifdef HAVE_TASKSTATS
+ unsigned long long io_rchar;
+ unsigned long long io_wchar;
+ unsigned long long io_syscr;
+ unsigned long long io_syscw;
+ unsigned long long io_read_bytes;
+ unsigned long long io_write_bytes;
+ unsigned long long io_cancelled_write_bytes;
+ double io_rate_read_bps;
+ unsigned long long io_rate_read_time;
+ double io_rate_write_bps;
+ unsigned long long io_rate_write_time;
+ #endif
} Process;

© 2014-2024 Faster IT GmbH | imprint | privacy policy