1/****************************************************************************
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 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_TASKSTATS_H
13#define _LINUX_TASKSTATS_H
14
15#define TASKSTATS_VERSION 1
16
17struct taskstats {
18
19 __u16 version;
20 __u16 padding[3];
21
22 __u64 cpu_count;
23 __u64 cpu_delay_total;
24
25 __u64 blkio_count;
26 __u64 blkio_delay_total;
27
28 __u64 swapin_count;
29 __u64 swapin_delay_total;
30
31 __u64 cpu_run_real_total;
32
33 __u64 cpu_run_virtual_total;
34
35};
36
37enum {
38 TASKSTATS_CMD_UNSPEC = 0,
39 TASKSTATS_CMD_GET,
40 TASKSTATS_CMD_NEW,
41 __TASKSTATS_CMD_MAX,
42};
43
44#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1)
45
46enum {
47 TASKSTATS_TYPE_UNSPEC = 0,
48 TASKSTATS_TYPE_PID,
49 TASKSTATS_TYPE_TGID,
50 TASKSTATS_TYPE_STATS,
51 TASKSTATS_TYPE_AGGR_PID,
52 TASKSTATS_TYPE_AGGR_TGID,
53 __TASKSTATS_TYPE_MAX,
54};
55
56#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1)
57
58enum {
59 TASKSTATS_CMD_ATTR_UNSPEC = 0,
60 TASKSTATS_CMD_ATTR_PID,
61 TASKSTATS_CMD_ATTR_TGID,
62 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK,
63 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK,
64 __TASKSTATS_CMD_ATTR_MAX,
65};
66
67#define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1)
68
69#define TASKSTATS_GENL_NAME "TASKSTATS"
70#define TASKSTATS_GENL_VERSION 0x1
71
72#endif
73