cgroups.h (pcp-6.0.2) | : | cgroups.h (pcp-6.0.3) | ||
---|---|---|---|---|
/* | /* | |||
* Copyright (c) 2013-2019 Red Hat. | * Copyright (c) 2013-2019,2013 Red Hat. | |||
* Copyright (c) 2010 Aconex. All Rights Reserved. | * Copyright (c) 2010 Aconex. All Rights Reserved. | |||
* | * | |||
* This program is free software; you can redistribute it and/or modify it | * This program is free software; you can redistribute it and/or modify it | |||
* under the terms of the GNU General Public License as published by the | * under the terms of the GNU General Public License as published by the | |||
* Free Software Foundation; either version 2 of the License, or (at your | * Free Software Foundation; either version 2 of the License, or (at your | |||
* option) any later version. | * option) any later version. | |||
* | * | |||
* This program is distributed in the hope that it will be useful, but | * This program is distributed in the hope that it will be useful, but | |||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |||
skipping to change at line 437 | skipping to change at line 437 | |||
CG_PRESSURE_IO_SOME_AVG10SEC = 0, | CG_PRESSURE_IO_SOME_AVG10SEC = 0, | |||
CG_PRESSURE_IO_SOME_AVG1MIN = 1, | CG_PRESSURE_IO_SOME_AVG1MIN = 1, | |||
CG_PRESSURE_IO_SOME_AVG5MIN = 2, | CG_PRESSURE_IO_SOME_AVG5MIN = 2, | |||
CG_PRESSURE_IO_SOME_TOTAL = 3, | CG_PRESSURE_IO_SOME_TOTAL = 3, | |||
CG_PRESSURE_IO_FULL_AVG10SEC = 4, | CG_PRESSURE_IO_FULL_AVG10SEC = 4, | |||
CG_PRESSURE_IO_FULL_AVG1MIN = 5, | CG_PRESSURE_IO_FULL_AVG1MIN = 5, | |||
CG_PRESSURE_IO_FULL_AVG5MIN = 6, | CG_PRESSURE_IO_FULL_AVG5MIN = 6, | |||
CG_PRESSURE_IO_FULL_TOTAL = 7, | CG_PRESSURE_IO_FULL_TOTAL = 7, | |||
}; | }; | |||
enum { | ||||
CG_PRESSURE_IRQ_FULL_AVG10SEC = 0, | ||||
CG_PRESSURE_IRQ_FULL_AVG1MIN = 1, | ||||
CG_PRESSURE_IRQ_FULL_AVG5MIN = 2, | ||||
CG_PRESSURE_IRQ_FULL_TOTAL = 3, | ||||
}; | ||||
typedef struct { | typedef struct { | |||
__uint64_t rbytes; | __uint64_t rbytes; | |||
__uint64_t rios; | __uint64_t rios; | |||
__uint64_t wbytes; | __uint64_t wbytes; | |||
__uint64_t wios; | __uint64_t wios; | |||
__uint64_t dbytes; | __uint64_t dbytes; | |||
__uint64_t dios; | __uint64_t dios; | |||
} cgroup_iostat_t; | } cgroup_iostat_t; | |||
typedef struct { | typedef struct { | |||
skipping to change at line 463 | skipping to change at line 470 | |||
CG_IO_STAT_RIOS = 2, | CG_IO_STAT_RIOS = 2, | |||
CG_IO_STAT_WIOS = 3, | CG_IO_STAT_WIOS = 3, | |||
CG_IO_STAT_DBYTES = 4, | CG_IO_STAT_DBYTES = 4, | |||
CG_IO_STAT_DIOS = 5, | CG_IO_STAT_DIOS = 5, | |||
}; | }; | |||
typedef struct { | typedef struct { | |||
cgroup_pressures_t cpu_pressures; | cgroup_pressures_t cpu_pressures; | |||
cgroup_pressures_t io_pressures; | cgroup_pressures_t io_pressures; | |||
cgroup_pressures_t mem_pressures; | cgroup_pressures_t mem_pressures; | |||
cgroup_pressures_t irq_pressures; | ||||
cgroup_cputime_t cputime; | cgroup_cputime_t cputime; | |||
/* I/O stats are per-cgroup::per-device */ | /* I/O stats are per-cgroup::per-device */ | |||
int container; | int container; | |||
} cgroup2_t; | } cgroup2_t; | |||
enum { | enum { | |||
CG_CPU_STAT_USER = 0, | CG_CPU_STAT_USER = 0, | |||
CG_CPU_STAT_SYSTEM = 1, | CG_CPU_STAT_SYSTEM = 1, | |||
CG_CPU_STAT_USAGE = 2, | CG_CPU_STAT_USAGE = 2, | |||
}; | }; | |||
enum { | ||||
CG_PSI_SOME = 0x1, | ||||
CG_PSI_FULL = 0x2, | ||||
}; | ||||
/* | /* | |||
* General cgroup interfaces | * General cgroup interfaces | |||
*/ | */ | |||
typedef void (*cgroup_setup_t)(void *); | typedef void (*cgroup_setup_t)(void *); | |||
typedef void (*cgroup_refresh_t)(const char *, const char *, void *); | typedef void (*cgroup_refresh_t)(const char *, const char *, void *); | |||
extern char *cgroup_find_subsys(pmInDom, filesys_t *); | extern char *cgroup_find_subsys(pmInDom, filesys_t *); | |||
extern void refresh_cgroup_subsys(void); | extern void refresh_cgroup_subsys(void); | |||
extern void refresh_cgroup_filesys(void); | extern void refresh_cgroup_filesys(void); | |||
extern void refresh_cgroups1(const char *, size_t, void *); | extern void refresh_cgroups1(const char *, size_t, void *); | |||
End of changes. 4 change blocks. | ||||
1 lines changed or deleted | 14 lines changed or added |