Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _LINUX_TASKSTATS_H |
| 8 | #define _LINUX_TASKSTATS_H |
| 9 | #include <linux/types.h> |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 10 | #define TASKSTATS_VERSION 14 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define TS_COMM_LEN 32 |
| 12 | struct taskstats { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 13 | __u16 version; |
| 14 | __u32 ac_exitcode; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 15 | __u8 ac_flag; |
| 16 | __u8 ac_nice; |
| 17 | __u64 cpu_count __attribute__((aligned(8))); |
| 18 | __u64 cpu_delay_total; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 19 | __u64 blkio_count; |
| 20 | __u64 blkio_delay_total; |
| 21 | __u64 swapin_count; |
| 22 | __u64 swapin_delay_total; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 23 | __u64 cpu_run_real_total; |
| 24 | __u64 cpu_run_virtual_total; |
| 25 | char ac_comm[TS_COMM_LEN]; |
| 26 | __u8 ac_sched __attribute__((aligned(8))); |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | __u8 ac_pad[3]; |
| 28 | __u32 ac_uid __attribute__((aligned(8))); |
| 29 | __u32 ac_gid; |
| 30 | __u32 ac_pid; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | __u32 ac_ppid; |
| 32 | __u32 ac_btime; |
| 33 | __u64 ac_etime __attribute__((aligned(8))); |
| 34 | __u64 ac_utime; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | __u64 ac_stime; |
| 36 | __u64 ac_minflt; |
| 37 | __u64 ac_majflt; |
| 38 | __u64 coremem; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __u64 virtmem; |
| 40 | __u64 hiwater_rss; |
| 41 | __u64 hiwater_vm; |
| 42 | __u64 read_char; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 43 | __u64 write_char; |
| 44 | __u64 read_syscalls; |
| 45 | __u64 write_syscalls; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 46 | #define TASKSTATS_HAS_IO_ACCOUNTING |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | __u64 read_bytes; |
| 48 | __u64 write_bytes; |
| 49 | __u64 cancelled_write_bytes; |
| 50 | __u64 nvcsw; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | __u64 nivcsw; |
| 52 | __u64 ac_utimescaled; |
| 53 | __u64 ac_stimescaled; |
| 54 | __u64 cpu_scaled_run_real_total; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | __u64 freepages_count; |
| 56 | __u64 freepages_delay_total; |
Christopher Ferris | 86a4837 | 2019-01-10 14:14:59 -0800 | [diff] [blame] | 57 | __u64 thrashing_count; |
| 58 | __u64 thrashing_delay_total; |
Christopher Ferris | bb9fcb4 | 2020-04-06 11:38:04 -0700 | [diff] [blame] | 59 | __u64 ac_btime64; |
Christopher Ferris | 1ed5534 | 2022-03-22 16:06:25 -0700 | [diff] [blame] | 60 | __u64 compact_count; |
| 61 | __u64 compact_delay_total; |
Christopher Ferris | 80ae69d | 2022-08-02 16:32:21 -0700 | [diff] [blame] | 62 | __u32 ac_tgid; |
| 63 | __u64 ac_tgetime __attribute__((aligned(8))); |
| 64 | __u64 ac_exe_dev; |
| 65 | __u64 ac_exe_inode; |
| 66 | __u64 wpcopy_count; |
| 67 | __u64 wpcopy_delay_total; |
Christopher Ferris | 37c3f3c | 2023-07-10 10:59:05 -0700 | [diff] [blame] | 68 | __u64 irq_count; |
| 69 | __u64 irq_delay_total; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 70 | }; |
| 71 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 72 | TASKSTATS_CMD_UNSPEC = 0, |
| 73 | TASKSTATS_CMD_GET, |
| 74 | TASKSTATS_CMD_NEW, |
| 75 | __TASKSTATS_CMD_MAX, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 76 | }; |
| 77 | #define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1) |
| 78 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | TASKSTATS_TYPE_UNSPEC = 0, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 80 | TASKSTATS_TYPE_PID, |
| 81 | TASKSTATS_TYPE_TGID, |
| 82 | TASKSTATS_TYPE_STATS, |
| 83 | TASKSTATS_TYPE_AGGR_PID, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 84 | TASKSTATS_TYPE_AGGR_TGID, |
| 85 | TASKSTATS_TYPE_NULL, |
| 86 | __TASKSTATS_TYPE_MAX, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 88 | #define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1) |
| 89 | enum { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 90 | TASKSTATS_CMD_ATTR_UNSPEC = 0, |
| 91 | TASKSTATS_CMD_ATTR_PID, |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 92 | TASKSTATS_CMD_ATTR_TGID, |
| 93 | TASKSTATS_CMD_ATTR_REGISTER_CPUMASK, |
| 94 | TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK, |
| 95 | __TASKSTATS_CMD_ATTR_MAX, |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 96 | }; |
| 97 | #define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1) |
| 98 | #define TASKSTATS_GENL_NAME "TASKSTATS" |
| 99 | #define TASKSTATS_GENL_VERSION 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 100 | #endif |