summaryrefslogtreecommitdiff
path: root/include/uapi/linux/taskstats.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-10-24 17:47:56 +0300
committerArnd Bergmann <arnd@arndb.de>2019-12-18 20:07:31 +0300
commit352c912b0a525977a8e6fa1f87c15d9f71943642 (patch)
treed0059a3d25f1fae377e927c529e63defbf483265 /include/uapi/linux/taskstats.h
parent2d602bf28316e2f61a553f13d279f3d74c2e5189 (diff)
downloadlinux-352c912b0a525977a8e6fa1f87c15d9f71943642.tar.xz
tsacct: add 64-bit btime field
As there is only a 32-bit ac_btime field in taskstat and we should handle dates after the overflow, add a new field with the same information but 64-bit width that can hold a full time64_t. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/uapi/linux/taskstats.h')
-rw-r--r--include/uapi/linux/taskstats.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/taskstats.h b/include/uapi/linux/taskstats.h
index 7d3ea366e93b..ccbd08709321 100644
--- a/include/uapi/linux/taskstats.h
+++ b/include/uapi/linux/taskstats.h
@@ -34,7 +34,7 @@
*/
-#define TASKSTATS_VERSION 9
+#define TASKSTATS_VERSION 10
#define TS_COMM_LEN 32 /* should be >= TASK_COMM_LEN
* in linux/sched.h */
@@ -169,6 +169,9 @@ struct taskstats {
/* Delay waiting for thrashing page */
__u64 thrashing_count;
__u64 thrashing_delay_total;
+
+ /* v10: 64-bit btime to avoid overflow */
+ __u64 ac_btime64; /* 64-bit begin time */
};