cgroup_subsys.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /*
  2. * List of cgroup subsystems.
  3. *
  4. * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
  5. */
  6. /*
  7. * This file *must* be included with SUBSYS() defined.
  8. * SUBSYS_TAG() is a noop if undefined.
  9. */
  10. #ifndef SUBSYS_TAG
  11. #define __TMP_SUBSYS_TAG
  12. #define SUBSYS_TAG(_x)
  13. #endif
  14. #if IS_ENABLED(CONFIG_CPUSETS)
  15. SUBSYS(cpuset)
  16. #endif
  17. #if IS_ENABLED(CONFIG_CGROUP_SCHED)
  18. SUBSYS(cpu)
  19. #endif
  20. #if IS_ENABLED(CONFIG_CGROUP_CPUACCT)
  21. SUBSYS(cpuacct)
  22. #endif
  23. #if IS_ENABLED(CONFIG_BLK_CGROUP)
  24. SUBSYS(io)
  25. #endif
  26. #if IS_ENABLED(CONFIG_MEMCG)
  27. SUBSYS(memory)
  28. #endif
  29. #if IS_ENABLED(CONFIG_CGROUP_DEVICE)
  30. SUBSYS(devices)
  31. #endif
  32. #if IS_ENABLED(CONFIG_CGROUP_FREEZER)
  33. SUBSYS(freezer)
  34. #endif
  35. #if IS_ENABLED(CONFIG_CGROUP_NET_CLASSID)
  36. SUBSYS(net_cls)
  37. #endif
  38. #if IS_ENABLED(CONFIG_CGROUP_PERF)
  39. SUBSYS(perf_event)
  40. #endif
  41. #if IS_ENABLED(CONFIG_CGROUP_NET_PRIO)
  42. SUBSYS(net_prio)
  43. #endif
  44. #if IS_ENABLED(CONFIG_CGROUP_HUGETLB)
  45. SUBSYS(hugetlb)
  46. #endif
  47. /*
  48. * Subsystems that implement the can_fork() family of callbacks.
  49. */
  50. SUBSYS_TAG(CANFORK_START)
  51. #if IS_ENABLED(CONFIG_CGROUP_PIDS)
  52. SUBSYS(pids)
  53. #endif
  54. SUBSYS_TAG(CANFORK_END)
  55. /*
  56. * The following subsystems are not supported on the default hierarchy.
  57. */
  58. #if IS_ENABLED(CONFIG_CGROUP_DEBUG)
  59. SUBSYS(debug)
  60. #endif
  61. #ifdef __TMP_SUBSYS_TAG
  62. #undef __TMP_SUBSYS_TAG
  63. #undef SUBSYS_TAG
  64. #endif
  65. /*
  66. * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
  67. */