Skip to content

Commit 23b0be4

Browse files
Waiman-Longhtejun
authored andcommitted
cgroup: Make Kconfig prompt of debug cgroup more accurate
The Kconfig prompt and description of the debug cgroup controller more accurate by saying that it is for debug purpose only and its interfaces are unstable. Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent a28f8f5 commit 23b0be4

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎init/Kconfig‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1205,11 +1205,14 @@ config CGROUP_BPF
12051205
inet sockets.
12061206

12071207
config CGROUP_DEBUG
1208-
bool "Example controller"
1208+
bool "Debug controller"
12091209
default n
1210+
depends on DEBUG_KERNEL
12101211
help
12111212
This option enables a simple controller that exports
1212-
debugging information about the cgroups framework.
1213+
debugging information about the cgroups framework. This
1214+
controller is for control cgroup debugging only. Its
1215+
interfaces are not stable.
12131216

12141217
Say N.
12151218

‎kernel/cgroup/debug.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Debug controller
3+
*
4+
* WARNING: This controller is for cgroup core debugging only.
5+
* Its interfaces are unstable and subject to changes at any time.
6+
*/
17
#include <linux/ctype.h>
28
#include <linux/mm.h>
39
#include <linux/slab.h>

0 commit comments

Comments
 (0)