[vz7] cgroup: Enable css_stacks debuging by default

Submitted by Andrey Ryabinin on June 2, 2020, 2:59 p.m.

Details

Message ID 20200602145954.13498-1-aryabinin@virtuozzo.com
State New
Series "cgroup: Enable css_stacks debuging by default"
Headers show

Commit Message

Andrey Ryabinin June 2, 2020, 2:59 p.m.
It's much more lightweight than the previous version, could be on
by default. Replace css_stacks boot option with no_css_stacks
to allow disabling the default

Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
---
 kernel/cgroup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 48853175b5a4..fc3148d37610 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -4192,7 +4192,7 @@  static int css_stacks_set(void *data, u64 val)
 DEFINE_SIMPLE_ATTRIBUTE(css_stacks_fops,
 		css_stacks_get, css_stacks_set, "%llu\n");
 
-int setup_css_stacks_cmd;
+int setup_css_stacks_cmd = 1;
 static int __init css_stacks_debugfs(void)
 {
 	void *ret;
@@ -4209,10 +4209,10 @@  late_initcall(css_stacks_debugfs);
 
 static int __init setup_css_stacks(char *str)
 {
-	setup_css_stacks_cmd = 1;
+	setup_css_stacks_cmd = 0;
 	return 1;
 }
-__setup("css_stacks", setup_css_stacks);
+__setup("no_css_stacks", setup_css_stacks);
 #endif
 
 static void init_cgroup_css(struct cgroup_subsys_state *css,