diff options
| author | Jay Lan <jlan@engr.sgi.com> | 2005-01-04 05:25:25 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-04 05:25:25 -0800 |
| commit | 9ca7d6f6cdc862fdebc72c4c15249cbb729a2f0f (patch) | |
| tree | fbc08e019693a73b1192aa2b2ae925980f2c3781 /include | |
| parent | 6c0993a01c43e614a7865da5c6f10894bff9e9b9 (diff) | |
[PATCH] enhanced I/O accounting data patch
This patch is to offer common accounting data collection method at I/O for
various accounting packages including BSD accounting, ELSA, CSA and any
other acct packages that use a common layer of data collection.
Patch is made to fs/read_write.c to collect per process data on character
read/written in bytes and number of read/write syscalls made.
New struct fields are added to task_struct to store the data.
These data are collected on per process basis.
Signed-off-by: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 38b1322be072..558d5733a0aa 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -660,6 +660,8 @@ struct task_struct { * to a stack based synchronous wait) if its doing sync IO. */ wait_queue_t *io_wait; +/* i/o counters(bytes read/written, #syscalls */ + u64 rchar, wchar, syscr, syscw; #ifdef CONFIG_NUMA struct mempolicy *mempolicy; short il_next; /* could be shared with used_math */ |
