blob: b7bc7442d925d1026b2af49c2162145cb5621666 [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
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define TS_COMM_LEN 32
24struct taskstats {
Tao Baod7db5942015-01-28 10:07:51 -080025 __u16 version;
26 __u32 ac_exitcode;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u8 ac_flag;
28 __u8 ac_nice;
29 __u64 cpu_count __attribute__((aligned(8)));
30 __u64 cpu_delay_total;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u64 blkio_count;
32 __u64 blkio_delay_total;
33 __u64 swapin_count;
34 __u64 swapin_delay_total;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u64 cpu_run_real_total;
36 __u64 cpu_run_virtual_total;
37 char ac_comm[TS_COMM_LEN];
38 __u8 ac_sched __attribute__((aligned(8)));
Tao Baod7db5942015-01-28 10:07:51 -080039 __u8 ac_pad[3];
40 __u32 ac_uid __attribute__((aligned(8)));
41 __u32 ac_gid;
42 __u32 ac_pid;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 ac_ppid;
44 __u32 ac_btime;
45 __u64 ac_etime __attribute__((aligned(8)));
46 __u64 ac_utime;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u64 ac_stime;
48 __u64 ac_minflt;
49 __u64 ac_majflt;
50 __u64 coremem;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u64 virtmem;
52 __u64 hiwater_rss;
53 __u64 hiwater_vm;
54 __u64 read_char;
Tao Baod7db5942015-01-28 10:07:51 -080055 __u64 write_char;
56 __u64 read_syscalls;
57 __u64 write_syscalls;
Ben Cheng655a7c02013-10-16 16:09:24 -070058#define TASKSTATS_HAS_IO_ACCOUNTING
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 read_bytes;
60 __u64 write_bytes;
61 __u64 cancelled_write_bytes;
62 __u64 nvcsw;
Tao Baod7db5942015-01-28 10:07:51 -080063 __u64 nivcsw;
64 __u64 ac_utimescaled;
65 __u64 ac_stimescaled;
66 __u64 cpu_scaled_run_real_total;
Tao Baod7db5942015-01-28 10:07:51 -080067 __u64 freepages_count;
68 __u64 freepages_delay_total;
Ben Cheng655a7c02013-10-16 16:09:24 -070069};
70enum {
Tao Baod7db5942015-01-28 10:07:51 -080071 TASKSTATS_CMD_UNSPEC = 0,
72 TASKSTATS_CMD_GET,
73 TASKSTATS_CMD_NEW,
74 __TASKSTATS_CMD_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070075};
76#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1)
77enum {
Tao Baod7db5942015-01-28 10:07:51 -080078 TASKSTATS_TYPE_UNSPEC = 0,
Tao Baod7db5942015-01-28 10:07:51 -080079 TASKSTATS_TYPE_PID,
80 TASKSTATS_TYPE_TGID,
81 TASKSTATS_TYPE_STATS,
82 TASKSTATS_TYPE_AGGR_PID,
Tao Baod7db5942015-01-28 10:07:51 -080083 TASKSTATS_TYPE_AGGR_TGID,
84 TASKSTATS_TYPE_NULL,
85 __TASKSTATS_TYPE_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070086};
Ben Cheng655a7c02013-10-16 16:09:24 -070087#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1)
88enum {
Tao Baod7db5942015-01-28 10:07:51 -080089 TASKSTATS_CMD_ATTR_UNSPEC = 0,
90 TASKSTATS_CMD_ATTR_PID,
Tao Baod7db5942015-01-28 10:07:51 -080091 TASKSTATS_CMD_ATTR_TGID,
92 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK,
93 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK,
94 __TASKSTATS_CMD_ATTR_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
96#define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1)
97#define TASKSTATS_GENL_NAME "TASKSTATS"
98#define TASKSTATS_GENL_VERSION 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070099#endif