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 *** 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 { 26 __u16 version; 27 __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))); 32 __u64 cpu_delay_total; 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 __u64 blkio_count; 35 __u64 blkio_delay_total; 36 __u64 swapin_count; 37 __u64 swapin_delay_total; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __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))); 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; 81}; 82enum { 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 TASKSTATS_CMD_UNSPEC = 0, 85 TASKSTATS_CMD_GET, 86 TASKSTATS_CMD_NEW, 87 __TASKSTATS_CMD_MAX, 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89}; 90#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1) 91enum { 92 TASKSTATS_TYPE_UNSPEC = 0, 93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 94 TASKSTATS_TYPE_PID, 95 TASKSTATS_TYPE_TGID, 96 TASKSTATS_TYPE_STATS, 97 TASKSTATS_TYPE_AGGR_PID, 98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 99 TASKSTATS_TYPE_AGGR_TGID, 100 TASKSTATS_TYPE_NULL, 101 __TASKSTATS_TYPE_MAX, 102}; 103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 104#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1) 105enum { 106 TASKSTATS_CMD_ATTR_UNSPEC = 0, 107 TASKSTATS_CMD_ATTR_PID, 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 TASKSTATS_CMD_ATTR_TGID, 110 TASKSTATS_CMD_ATTR_REGISTER_CPUMASK, 111 TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK, 112 __TASKSTATS_CMD_ATTR_MAX, 113/* 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 120