cgroup: Implement DEBUG_CGROUP_REF
authorTejun Heo <tj@kernel.org>
Fri, 28 Oct 2022 20:45:44 +0000 (10:45 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 28 Oct 2022 20:46:17 +0000 (10:46 -1000)
commit6ab428604f724cf217a47b7d3f3353aab815b40e
tree1fa2bdbf4d3b77464915a7a0aee901ef49d6b7dc
parent79a818b5087393d5a4cb356d4545d02f55bf1a2f
cgroup: Implement DEBUG_CGROUP_REF

It's really difficult to debug when cgroup or css refs leak. Let's add a
debug option to force the refcnt function to not be inlined so that they can
be kprobed for debugging.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h
include/linux/cgroup_refcnt.h [new file with mode: 0644]
kernel/cgroup/cgroup.c
lib/Kconfig.debug