diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sysctl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 86daaa26d120..8c98d8147d88 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -67,6 +67,7 @@ extern int sysctl_overcommit_memory; | |||
67 | extern int sysctl_overcommit_ratio; | 67 | extern int sysctl_overcommit_ratio; |
68 | extern int sysctl_panic_on_oom; | 68 | extern int sysctl_panic_on_oom; |
69 | extern int sysctl_oom_kill_allocating_task; | 69 | extern int sysctl_oom_kill_allocating_task; |
70 | extern int sysctl_oom_dump_tasks; | ||
70 | extern int max_threads; | 71 | extern int max_threads; |
71 | extern int core_uses_pid; | 72 | extern int core_uses_pid; |
72 | extern int suid_dumpable; | 73 | extern int suid_dumpable; |
@@ -871,6 +872,14 @@ static struct ctl_table vm_table[] = { | |||
871 | .proc_handler = &proc_dointvec, | 872 | .proc_handler = &proc_dointvec, |
872 | }, | 873 | }, |
873 | { | 874 | { |
875 | .ctl_name = CTL_UNNUMBERED, | ||
876 | .procname = "oom_dump_tasks", | ||
877 | .data = &sysctl_oom_dump_tasks, | ||
878 | .maxlen = sizeof(sysctl_oom_dump_tasks), | ||
879 | .mode = 0644, | ||
880 | .proc_handler = &proc_dointvec, | ||
881 | }, | ||
882 | { | ||
874 | .ctl_name = VM_OVERCOMMIT_RATIO, | 883 | .ctl_name = VM_OVERCOMMIT_RATIO, |
875 | .procname = "overcommit_ratio", | 884 | .procname = "overcommit_ratio", |
876 | .data = &sysctl_overcommit_ratio, | 885 | .data = &sysctl_overcommit_ratio, |