blob: 298ebf0ce561117c33800415fa8357181d6789ca [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_TASKSTATS_H
20#define _LINUX_TASKSTATS_H
21#include <linux/types.h>
22#define TASKSTATS_VERSION 8
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define TS_COMM_LEN 32
25struct taskstats {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u16 version;
27 __u32 ac_exitcode;
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 __u8 ac_flag;
30 __u8 ac_nice;
31 __u64 cpu_count __attribute__((aligned(8)));
32 __u64 cpu_delay_total;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __u64 blkio_count;
35 __u64 blkio_delay_total;
36 __u64 swapin_count;
37 __u64 swapin_delay_total;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u64 cpu_run_real_total;
40 __u64 cpu_run_virtual_total;
41 char ac_comm[TS_COMM_LEN];
42 __u8 ac_sched __attribute__((aligned(8)));
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __u8 ac_pad[3];
45 __u32 ac_uid __attribute__((aligned(8)));
46 __u32 ac_gid;
47 __u32 ac_pid;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __u32 ac_ppid;
50 __u32 ac_btime;
51 __u64 ac_etime __attribute__((aligned(8)));
52 __u64 ac_utime;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __u64 ac_stime;
55 __u64 ac_minflt;
56 __u64 ac_majflt;
57 __u64 coremem;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 virtmem;
60 __u64 hiwater_rss;
61 __u64 hiwater_vm;
62 __u64 read_char;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __u64 write_char;
65 __u64 read_syscalls;
66 __u64 write_syscalls;
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define TASKSTATS_HAS_IO_ACCOUNTING
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 __u64 read_bytes;
70 __u64 write_bytes;
71 __u64 cancelled_write_bytes;
72 __u64 nvcsw;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 __u64 nivcsw;
75 __u64 ac_utimescaled;
76 __u64 ac_stimescaled;
77 __u64 cpu_scaled_run_real_total;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 __u64 freepages_count;
80 __u64 freepages_delay_total;
Ben Cheng655a7c02013-10-16 16:09:24 -070081};
82enum {
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 TASKSTATS_CMD_UNSPEC = 0,
85 TASKSTATS_CMD_GET,
86 TASKSTATS_CMD_NEW,
87 __TASKSTATS_CMD_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89};
90#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1)
91enum {
Tao Baod7db5942015-01-28 10:07:51 -080092 TASKSTATS_TYPE_UNSPEC = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 TASKSTATS_TYPE_PID,
95 TASKSTATS_TYPE_TGID,
96 TASKSTATS_TYPE_STATS,
97 TASKSTATS_TYPE_AGGR_PID,
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 TASKSTATS_TYPE_AGGR_TGID,
100 TASKSTATS_TYPE_NULL,
101 __TASKSTATS_TYPE_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700102};
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1)
105enum {
Tao Baod7db5942015-01-28 10:07:51 -0800106 TASKSTATS_CMD_ATTR_UNSPEC = 0,
107 TASKSTATS_CMD_ATTR_PID,
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 TASKSTATS_CMD_ATTR_TGID,
110 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK,
111 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK,
112 __TASKSTATS_CMD_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114};
115#define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1)
116#define TASKSTATS_GENL_NAME "TASKSTATS"
117#define TASKSTATS_GENL_VERSION 0x1
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#endif