From 12f4f09e6ed288bdedc86e4ef22f3cc34f0e787a Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 9 Mar 2008 08:02:22 +0000 Subject: 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! --- Process.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Process.h') 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; -- cgit v1.2.3