diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/taskstats.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/taskstats.h b/include/linux/taskstats.h index 15c64037be1b..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 | ||
@@ -140,6 +140,12 @@ struct taskstats { | |||
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 | ||