blob: fd7e9ed9cc5be72f0bf7e88eb9646b1d279db2a5 [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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 ***
Ben Cheng654325d2012-03-07 21:13:49 -080010 *** 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 ***
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_TASKSTATS_H
20#define _LINUX_TASKSTATS_H
Sami Kyostila50a1b772013-09-20 18:25:29 +010021#include <linux/types.h>
22#define TASKSTATS_VERSION 8
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Sami Kyostila50a1b772013-09-20 18:25:29 +010024#define TS_COMM_LEN 32
25struct taskstats {
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080026 __u16 version;
Sami Kyostila50a1b772013-09-20 18:25:29 +010027 __u32 ac_exitcode;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 __u8 ac_flag;
30 __u8 ac_nice;
31 __u64 cpu_count __attribute__((aligned(8)));
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080032 __u64 cpu_delay_total;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080034 __u64 blkio_count;
35 __u64 blkio_delay_total;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080036 __u64 swapin_count;
37 __u64 swapin_delay_total;
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039 __u64 cpu_run_real_total;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080040 __u64 cpu_run_virtual_total;
Sami Kyostila50a1b772013-09-20 18:25:29 +010041 char ac_comm[TS_COMM_LEN];
42 __u8 ac_sched __attribute__((aligned(8)));
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u8 ac_pad[3];
45 __u32 ac_uid __attribute__((aligned(8)));
46 __u32 ac_gid;
47 __u32 ac_pid;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u32 ac_ppid;
50 __u32 ac_btime;
51 __u64 ac_etime __attribute__((aligned(8)));
52 __u64 ac_utime;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u64 ac_stime;
55 __u64 ac_minflt;
56 __u64 ac_majflt;
57 __u64 coremem;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 __u64 virtmem;
60 __u64 hiwater_rss;
61 __u64 hiwater_vm;
62 __u64 read_char;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 __u64 write_char;
65 __u64 read_syscalls;
66 __u64 write_syscalls;
67#define TASKSTATS_HAS_IO_ACCOUNTING
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u64 read_bytes;
70 __u64 write_bytes;
71 __u64 cancelled_write_bytes;
72 __u64 nvcsw;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 __u64 nivcsw;
75 __u64 ac_utimescaled;
76 __u64 ac_stimescaled;
77 __u64 cpu_scaled_run_real_total;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 __u64 freepages_count;
80 __u64 freepages_delay_total;
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080081};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080082enum {
Ben Cheng654325d2012-03-07 21:13:49 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080084 TASKSTATS_CMD_UNSPEC = 0,
85 TASKSTATS_CMD_GET,
86 TASKSTATS_CMD_NEW,
87 __TASKSTATS_CMD_MAX,
Ben Cheng654325d2012-03-07 21:13:49 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080089};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080090#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080091enum {
92 TASKSTATS_TYPE_UNSPEC = 0,
Ben Cheng654325d2012-03-07 21:13:49 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080094 TASKSTATS_TYPE_PID,
95 TASKSTATS_TYPE_TGID,
96 TASKSTATS_TYPE_STATS,
97 TASKSTATS_TYPE_AGGR_PID,
Ben Cheng654325d2012-03-07 21:13:49 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080099 TASKSTATS_TYPE_AGGR_TGID,
Sami Kyostila50a1b772013-09-20 18:25:29 +0100100 TASKSTATS_TYPE_NULL,
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800101 __TASKSTATS_TYPE_MAX,
102};
Ben Cheng654325d2012-03-07 21:13:49 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Sami Kyostila50a1b772013-09-20 18:25:29 +0100104#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800105enum {
106 TASKSTATS_CMD_ATTR_UNSPEC = 0,
107 TASKSTATS_CMD_ATTR_PID,
Ben Cheng654325d2012-03-07 21:13:49 -0800108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Sami Kyostila50a1b772013-09-20 18:25:29 +0100109 TASKSTATS_CMD_ATTR_TGID,
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800110 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK,
111 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK,
112 __TASKSTATS_CMD_ATTR_MAX,
Ben Cheng654325d2012-03-07 21:13:49 -0800113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Sami Kyostila50a1b772013-09-20 18:25:29 +0100114};
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800115#define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -0800116#define TASKSTATS_GENL_NAME "TASKSTATS"
117#define TASKSTATS_GENL_VERSION 0x1
Ben Cheng654325d2012-03-07 21:13:49 -0800118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Sami Kyostila50a1b772013-09-20 18:25:29 +0100119#endif