diff options
Diffstat (limited to 'include/linux/task_io_accounting.h')
| -rw-r--r-- | include/linux/task_io_accounting.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/include/linux/task_io_accounting.h b/include/linux/task_io_accounting.h index 44d00e9cceea..165390f8b936 100644 --- a/include/linux/task_io_accounting.h +++ b/include/linux/task_io_accounting.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * task_io_accounting: a structure which is used for recording a single task's | 2 | * proc_io_accounting: a structure which is used for recording a single task's |
| 3 | * IO statistics. | 3 | * IO statistics. |
| 4 | * | 4 | * |
| 5 | * Don't include this header file directly - it is designed to be dragged in via | 5 | * Don't include this header file directly - it is designed to be dragged in via |
| @@ -8,6 +8,22 @@ | |||
| 8 | * Blame akpm@osdl.org for all this. | 8 | * Blame akpm@osdl.org for all this. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | #ifdef CONFIG_TASK_XACCT | ||
| 12 | struct task_chr_io_accounting { | ||
| 13 | /* bytes read */ | ||
| 14 | u64 rchar; | ||
| 15 | /* bytes written */ | ||
| 16 | u64 wchar; | ||
| 17 | /* # of read syscalls */ | ||
| 18 | u64 syscr; | ||
| 19 | /* # of write syscalls */ | ||
| 20 | u64 syscw; | ||
| 21 | }; | ||
| 22 | #else /* CONFIG_TASK_XACCT */ | ||
| 23 | struct task_chr_io_accounting { | ||
| 24 | }; | ||
| 25 | #endif /* CONFIG_TASK_XACCT */ | ||
| 26 | |||
| 11 | #ifdef CONFIG_TASK_IO_ACCOUNTING | 27 | #ifdef CONFIG_TASK_IO_ACCOUNTING |
| 12 | struct task_io_accounting { | 28 | struct task_io_accounting { |
| 13 | /* | 29 | /* |
| @@ -31,7 +47,12 @@ struct task_io_accounting { | |||
| 31 | */ | 47 | */ |
| 32 | u64 cancelled_write_bytes; | 48 | u64 cancelled_write_bytes; |
| 33 | }; | 49 | }; |
| 34 | #else | 50 | #else /* CONFIG_TASK_IO_ACCOUNTING */ |
| 35 | struct task_io_accounting { | 51 | struct task_io_accounting { |
| 36 | }; | 52 | }; |
| 37 | #endif | 53 | #endif /* CONFIG_TASK_IO_ACCOUNTING */ |
| 54 | |||
| 55 | struct proc_io_accounting { | ||
| 56 | struct task_chr_io_accounting chr; | ||
| 57 | struct task_io_accounting blk; | ||
| 58 | }; | ||
