cgroup_subsys.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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(blkio)
  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. SUBSYS_TAG(CANFORK_END)
  52. /*
  53. * The following subsystems are not supported on the default hierarchy.
  54. */
  55. #if IS_ENABLED(CONFIG_CGROUP_DEBUG)
  56. SUBSYS(debug)
  57. #endif
  58. #ifdef __TMP_SUBSYS_TAG
  59. #undef __TMP_SUBSYS_TAG
  60. #undef SUBSYS_TAG
  61. #endif
  62. /*
  63. * DO NOT ADD ANY SUBSYSTEM WITHOUT EXPLICIT ACKS FROM CGROUP MAINTAINERS.
  64. */