diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2007-01-17 18:34:51 -0500 |
| commit | 9cdf083f981b8d37b3212400a359368661385099 (patch) | |
| tree | aa15a6a08ad87e650dea40fb59b3180bef0d345b /include/linux/taskstats.h | |
| parent | e499e01d234a31d59679b7b1e1cf628d917ba49a (diff) | |
| parent | a8b3485287731978899ced11f24628c927890e78 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/taskstats.h')
| -rw-r--r-- | include/linux/taskstats.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/include/linux/taskstats.h b/include/linux/taskstats.h index 45248806ae9c..3fced4798255 100644 --- a/include/linux/taskstats.h +++ b/include/linux/taskstats.h | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | */ | 31 | */ |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | #define TASKSTATS_VERSION 2 | 34 | #define TASKSTATS_VERSION 3 |
| 35 | #define TS_COMM_LEN 32 /* should be >= TASK_COMM_LEN | 35 | #define TS_COMM_LEN 32 /* should be >= TASK_COMM_LEN |
| 36 | * in linux/sched.h */ | 36 | * in linux/sched.h */ |
| 37 | 37 | ||
| @@ -115,31 +115,37 @@ struct taskstats { | |||
| 115 | __u64 ac_majflt; /* Major Page Fault Count */ | 115 | __u64 ac_majflt; /* Major Page Fault Count */ |
| 116 | /* Basic Accounting Fields end */ | 116 | /* Basic Accounting Fields end */ |
| 117 | 117 | ||
| 118 | /* Extended accounting fields start */ | 118 | /* Extended accounting fields start */ |
| 119 | /* Accumulated RSS usage in duration of a task, in MBytes-usecs. | 119 | /* Accumulated RSS usage in duration of a task, in MBytes-usecs. |
| 120 | * The current rss usage is added to this counter every time | 120 | * The current rss usage is added to this counter every time |
| 121 | * a tick is charged to a task's system time. So, at the end we | 121 | * a tick is charged to a task's system time. So, at the end we |
| 122 | * will have memory usage multiplied by system time. Thus an | 122 | * will have memory usage multiplied by system time. Thus an |
| 123 | * average usage per system time unit can be calculated. | 123 | * average usage per system time unit can be calculated. |
| 124 | */ | 124 | */ |
| 125 | __u64 coremem; /* accumulated RSS usage in MB-usec */ | 125 | __u64 coremem; /* accumulated RSS usage in MB-usec */ |
| 126 | /* Accumulated virtual memory usage in duration of a task. | 126 | /* Accumulated virtual memory usage in duration of a task. |
| 127 | * Same as acct_rss_mem1 above except that we keep track of VM usage. | 127 | * Same as acct_rss_mem1 above except that we keep track of VM usage. |
| 128 | */ | 128 | */ |
| 129 | __u64 virtmem; /* accumulated VM usage in MB-usec */ | 129 | __u64 virtmem; /* accumulated VM usage in MB-usec */ |
| 130 | 130 | ||
| 131 | /* High watermark of RSS and virtual memory usage in duration of | 131 | /* High watermark of RSS and virtual memory usage in duration of |
| 132 | * a task, in KBytes. | 132 | * a task, in KBytes. |
| 133 | */ | 133 | */ |
| 134 | __u64 hiwater_rss; /* High-watermark of RSS usage, in KB */ | 134 | __u64 hiwater_rss; /* High-watermark of RSS usage, in KB */ |
| 135 | __u64 hiwater_vm; /* High-water VM usage, in KB */ | 135 | __u64 hiwater_vm; /* High-water VM usage, in KB */ |
| 136 | 136 | ||
| 137 | /* The following four fields are I/O statistics of a task. */ | 137 | /* The following four fields are I/O statistics of a task. */ |
| 138 | __u64 read_char; /* bytes read */ | 138 | __u64 read_char; /* bytes read */ |
| 139 | __u64 write_char; /* bytes written */ | 139 | __u64 write_char; /* bytes written */ |
| 140 | __u64 read_syscalls; /* read syscalls */ | 140 | __u64 read_syscalls; /* read syscalls */ |
| 141 | __u64 write_syscalls; /* write syscalls */ | 141 | __u64 write_syscalls; /* write syscalls */ |
| 142 | /* Extended accounting fields end */ | 142 | /* Extended accounting fields end */ |
| 143 | |||
| 144 | #define TASKSTATS_HAS_IO_ACCOUNTING | ||
| 145 | /* Per-task storage I/O accounting starts */ | ||
| 146 | __u64 read_bytes; /* bytes of read I/O */ | ||
| 147 | __u64 write_bytes; /* bytes of write I/O */ | ||
| 148 | __u64 cancelled_write_bytes; /* bytes of cancelled write I/O */ | ||
| 143 | }; | 149 | }; |
| 144 | 150 | ||
| 145 | 151 | ||
