diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2008-03-09 08:02:22 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2008-03-09 08:02:22 +0000 |
commit | 12f4f09e6ed288bdedc86e4ef22f3cc34f0e787a (patch) | |
tree | 0b3ce5d14fc72ae391378fa178a0a18b69298664 /Process.h | |
parent | 460608d6e215dee3d3af822d974f3a36e5f73d3c (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.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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; |