diff options
author | Tejun Heo <tj@kernel.org> | 2022-10-28 22:45:44 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2022-10-28 22:46:17 +0200 |
commit | 6ab428604f724cf217a47b7d3f3353aab815b40e (patch) | |
tree | 1fa2bdbf4d3b77464915a7a0aee901ef49d6b7dc /lib/Kconfig.debug | |
parent | blkcg: Update MAINTAINERS entry (diff) | |
download | linux-6ab428604f724cf217a47b7d3f3353aab815b40e.tar.xz 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.debug | 10 |
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 |