[Devel] [PATCH vz7] cgroup: Enable css_stacks debuging by default
Andrey Ryabinin
aryabinin at virtuozzo.com
Tue Jun 2 17:59:54 MSK 2020
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 at virtuozzo.com>
---
kernel/cgroup.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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,
--
2.26.2
More information about the Devel
mailing list