Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: cgroupstats.h
/* SPDX-License-Identifier: LGPL-2.1 WITH Linux-syscall-note */
[0] Fix | Delete
/* cgroupstats.h - exporting per-cgroup statistics
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright IBM Corporation, 2007
[3] Fix | Delete
* Author Balbir Singh <balbir@linux.vnet.ibm.com>
[4] Fix | Delete
*
[5] Fix | Delete
* This program is free software; you can redistribute it and/or modify it
[6] Fix | Delete
* under the terms of version 2.1 of the GNU Lesser General Public License
[7] Fix | Delete
* as published by the Free Software Foundation.
[8] Fix | Delete
*
[9] Fix | Delete
* This program is distributed in the hope that it would be useful, but
[10] Fix | Delete
* WITHOUT ANY WARRANTY; without even the implied warranty of
[11] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
#ifndef _LINUX_CGROUPSTATS_H
[15] Fix | Delete
#define _LINUX_CGROUPSTATS_H
[16] Fix | Delete
[17] Fix | Delete
#include <linux/types.h>
[18] Fix | Delete
#include <linux/taskstats.h>
[19] Fix | Delete
[20] Fix | Delete
/*
[21] Fix | Delete
* Data shared between user space and kernel space on a per cgroup
[22] Fix | Delete
* basis. This data is shared using taskstats.
[23] Fix | Delete
*
[24] Fix | Delete
* Most of these states are derived by looking at the task->state value
[25] Fix | Delete
* For the nr_io_wait state, a flag in the delay accounting structure
[26] Fix | Delete
* indicates that the task is waiting on IO
[27] Fix | Delete
*
[28] Fix | Delete
* Each member is aligned to a 8 byte boundary.
[29] Fix | Delete
*/
[30] Fix | Delete
struct cgroupstats {
[31] Fix | Delete
__u64 nr_sleeping; /* Number of tasks sleeping */
[32] Fix | Delete
__u64 nr_running; /* Number of tasks running */
[33] Fix | Delete
__u64 nr_stopped; /* Number of tasks in stopped state */
[34] Fix | Delete
__u64 nr_uninterruptible; /* Number of tasks in uninterruptible */
[35] Fix | Delete
/* state */
[36] Fix | Delete
__u64 nr_io_wait; /* Number of tasks waiting on IO */
[37] Fix | Delete
};
[38] Fix | Delete
[39] Fix | Delete
/*
[40] Fix | Delete
* Commands sent from userspace
[41] Fix | Delete
* Not versioned. New commands should only be inserted at the enum's end
[42] Fix | Delete
* prior to __CGROUPSTATS_CMD_MAX
[43] Fix | Delete
*/
[44] Fix | Delete
[45] Fix | Delete
enum {
[46] Fix | Delete
CGROUPSTATS_CMD_UNSPEC = __TASKSTATS_CMD_MAX, /* Reserved */
[47] Fix | Delete
CGROUPSTATS_CMD_GET, /* user->kernel request/get-response */
[48] Fix | Delete
CGROUPSTATS_CMD_NEW, /* kernel->user event */
[49] Fix | Delete
__CGROUPSTATS_CMD_MAX,
[50] Fix | Delete
};
[51] Fix | Delete
[52] Fix | Delete
#define CGROUPSTATS_CMD_MAX (__CGROUPSTATS_CMD_MAX - 1)
[53] Fix | Delete
[54] Fix | Delete
enum {
[55] Fix | Delete
CGROUPSTATS_TYPE_UNSPEC = 0, /* Reserved */
[56] Fix | Delete
CGROUPSTATS_TYPE_CGROUP_STATS, /* contains name + stats */
[57] Fix | Delete
__CGROUPSTATS_TYPE_MAX,
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
#define CGROUPSTATS_TYPE_MAX (__CGROUPSTATS_TYPE_MAX - 1)
[61] Fix | Delete
[62] Fix | Delete
enum {
[63] Fix | Delete
CGROUPSTATS_CMD_ATTR_UNSPEC = 0,
[64] Fix | Delete
CGROUPSTATS_CMD_ATTR_FD,
[65] Fix | Delete
__CGROUPSTATS_CMD_ATTR_MAX,
[66] Fix | Delete
};
[67] Fix | Delete
[68] Fix | Delete
#define CGROUPSTATS_CMD_ATTR_MAX (__CGROUPSTATS_CMD_ATTR_MAX - 1)
[69] Fix | Delete
[70] Fix | Delete
#endif /* _LINUX_CGROUPSTATS_H */
[71] Fix | Delete
[72] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function