hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/include/uapi/linux/taskstats.h
....@@ -34,7 +34,7 @@
3434 */
3535
3636
37
-#define TASKSTATS_VERSION 9
37
+#define TASKSTATS_VERSION 10
3838 #define TS_COMM_LEN 32 /* should be >= TASK_COMM_LEN
3939 * in linux/sched.h */
4040
....@@ -112,6 +112,7 @@
112112 __u32 ac_gid; /* Group ID */
113113 __u32 ac_pid; /* Process ID */
114114 __u32 ac_ppid; /* Parent process ID */
115
+ /* __u32 range means times from 1970 to 2106 */
115116 __u32 ac_btime; /* Begin time [sec since 1970] */
116117 __u64 ac_etime __attribute__((aligned(8)));
117118 /* Elapsed time [usec] */
....@@ -168,6 +169,9 @@
168169 /* Delay waiting for thrashing page */
169170 __u64 thrashing_count;
170171 __u64 thrashing_delay_total;
172
+
173
+ /* v10: 64-bit btime to avoid overflow */
174
+ __u64 ac_btime64; /* 64-bit begin time */
171175 };
172176
173177