diff options
author | Ying Wang <wangying@google.com> | 2012-08-10 10:09:11 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2012-08-10 10:09:11 -0700 |
commit | 435483c91cf16117fc2b864cb6994435ad669bc6 (patch) | |
tree | ecae3b1abaa57c09220319de58927782557558f3 /8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h | |
parent | dacf4827686b486347ba5a099697570f4b233409 (diff) | |
download | prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.zip prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.tar.gz prebuilts_ndk-435483c91cf16117fc2b864cb6994435ad669bc6.tar.bz2 |
Create symlink current
and simplify the directory names.
With this we will unify all LOCAL_NDK_VERSIONs in the
platform to the latest stable NDK.
Bug: 6932421
Change-Id: I1842caaced8c621a49e92326bbbd85b284561c0f
Diffstat (limited to '8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h')
-rw-r--r-- | 8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h b/8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h new file mode 100644 index 0000000..3e8ae4a --- /dev/null +++ b/8/platforms/android-8/arch-arm/usr/include/linux/taskstats.h @@ -0,0 +1,72 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _LINUX_TASKSTATS_H +#define _LINUX_TASKSTATS_H + +#define TASKSTATS_VERSION 1 + +struct taskstats { + + __u16 version; + __u16 padding[3]; + + __u64 cpu_count; + __u64 cpu_delay_total; + + __u64 blkio_count; + __u64 blkio_delay_total; + + __u64 swapin_count; + __u64 swapin_delay_total; + + __u64 cpu_run_real_total; + + __u64 cpu_run_virtual_total; + +}; + +enum { + TASKSTATS_CMD_UNSPEC = 0, + TASKSTATS_CMD_GET, + TASKSTATS_CMD_NEW, + __TASKSTATS_CMD_MAX, +}; + +#define TASKSTATS_CMD_MAX (__TASKSTATS_CMD_MAX - 1) + +enum { + TASKSTATS_TYPE_UNSPEC = 0, + TASKSTATS_TYPE_PID, + TASKSTATS_TYPE_TGID, + TASKSTATS_TYPE_STATS, + TASKSTATS_TYPE_AGGR_PID, + TASKSTATS_TYPE_AGGR_TGID, + __TASKSTATS_TYPE_MAX, +}; + +#define TASKSTATS_TYPE_MAX (__TASKSTATS_TYPE_MAX - 1) + +enum { + TASKSTATS_CMD_ATTR_UNSPEC = 0, + TASKSTATS_CMD_ATTR_PID, + TASKSTATS_CMD_ATTR_TGID, + TASKSTATS_CMD_ATTR_REGISTER_CPUMASK, + TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK, + __TASKSTATS_CMD_ATTR_MAX, +}; + +#define TASKSTATS_CMD_ATTR_MAX (__TASKSTATS_CMD_ATTR_MAX - 1) + +#define TASKSTATS_GENL_NAME "TASKSTATS" +#define TASKSTATS_GENL_VERSION 0x1 + +#endif |