cgroup_subsys.h 1.3 KB
Newer Older
1 2 3 4
/*
 * List of cgroup subsystems.
 *
 * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
5
 */
6 7 8 9 10 11 12 13 14 15 16

/*
 * This file *must* be included with SUBSYS() defined.
 * SUBSYS_TAG() is a noop if undefined.
 */

#ifndef SUBSYS_TAG
#define __TMP_SUBSYS_TAG
#define SUBSYS_TAG(_x)
#endif

T
Tejun Heo 已提交
17
#if IS_ENABLED(CONFIG_CPUSETS)
18 19 20
SUBSYS(cpuset)
#endif

T
Tejun Heo 已提交
21
#if IS_ENABLED(CONFIG_CGROUP_SCHED)
22
SUBSYS(cpu)
23 24
#endif

T
Tejun Heo 已提交
25
#if IS_ENABLED(CONFIG_CGROUP_CPUACCT)
26 27 28
SUBSYS(cpuacct)
#endif

29 30 31 32
#if IS_ENABLED(CONFIG_BLK_CGROUP)
SUBSYS(blkio)
#endif

T
Tejun Heo 已提交
33
#if IS_ENABLED(CONFIG_MEMCG)
34
SUBSYS(memory)
B
Balbir Singh 已提交
35 36
#endif

T
Tejun Heo 已提交
37
#if IS_ENABLED(CONFIG_CGROUP_DEVICE)
38 39 40
SUBSYS(devices)
#endif

T
Tejun Heo 已提交
41
#if IS_ENABLED(CONFIG_CGROUP_FREEZER)
42 43 44
SUBSYS(freezer)
#endif

T
Tejun Heo 已提交
45
#if IS_ENABLED(CONFIG_CGROUP_NET_CLASSID)
T
Thomas Graf 已提交
46 47 48
SUBSYS(net_cls)
#endif

T
Tejun Heo 已提交
49
#if IS_ENABLED(CONFIG_CGROUP_PERF)
50
SUBSYS(perf_event)
S
Stephane Eranian 已提交
51 52
#endif

T
Tejun Heo 已提交
53
#if IS_ENABLED(CONFIG_CGROUP_NET_PRIO)
54 55 56
SUBSYS(net_prio)
#endif

T
Tejun Heo 已提交
57
#if IS_ENABLED(CONFIG_CGROUP_HUGETLB)
58 59
SUBSYS(hugetlb)
#endif
60

61 62 63 64 65 66
/*
 * Subsystems that implement the can_fork() family of callbacks.
 */
SUBSYS_TAG(CANFORK_START)
SUBSYS_TAG(CANFORK_END)

67 68 69 70 71 72
/*
 * The following subsystems are not supported on the default hierarchy.
 */
#if IS_ENABLED(CONFIG_CGROUP_DEBUG)
SUBSYS(debug)
#endif
73 74 75 76 77 78

#ifdef __TMP_SUBSYS_TAG
#undef __TMP_SUBSYS_TAG
#undef SUBSYS_TAG
#endif

79 80 81
/*
 * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
 */