summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2022-10-28 10:45:44 -1000
committerTejun Heo <tj@kernel.org>2022-10-28 10:46:17 -1000
commit6ab428604f724cf217a47b7d3f3353aab815b40e (patch)
tree1fa2bdbf4d3b77464915a7a0aee901ef49d6b7dc /lib/Kconfig.debug
parent79a818b5087393d5a4cb356d4545d02f55bf1a2f (diff)
downloadlinux-6ab428604f724cf217a47b7d3f3353aab815b40e.tar.gz
linux-6ab428604f724cf217a47b7d3f3353aab815b40e.tar.bz2
linux-6ab428604f724cf217a47b7d3f3353aab815b40e.zip
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>
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 3761118d1879..b620a340d7df 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1701,6 +1701,16 @@ config LATENCYTOP
Enable this option if you want to use the LatencyTOP tool
to find out which userspace is blocking on what kernel operations.
+config DEBUG_CGROUP_REF
+ bool "Disable inlining of cgroup css reference count functions"
+ depends on DEBUG_KERNEL
+ depends on CGROUPS
+ depends on KPROBES
+ default n
+ help
+ Force cgroup css reference count functions to not be inlined so
+ that they can be kprobed for debugging.
+
source "kernel/trace/Kconfig"
config PROVIDE_OHCI1394_DMA_INIT