diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 45e4bef0012a..0ef19c614f6d 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -50,6 +50,7 @@ | |||
50 | #include <linux/ftrace.h> | 50 | #include <linux/ftrace.h> |
51 | #include <linux/slow-work.h> | 51 | #include <linux/slow-work.h> |
52 | #include <linux/perf_event.h> | 52 | #include <linux/perf_event.h> |
53 | #include <linux/kprobes.h> | ||
53 | 54 | ||
54 | #include <asm/uaccess.h> | 55 | #include <asm/uaccess.h> |
55 | #include <asm/processor.h> | 56 | #include <asm/processor.h> |
@@ -1131,7 +1132,7 @@ static struct ctl_table vm_table[] = { | |||
1131 | .data = &sysctl_max_map_count, | 1132 | .data = &sysctl_max_map_count, |
1132 | .maxlen = sizeof(sysctl_max_map_count), | 1133 | .maxlen = sizeof(sysctl_max_map_count), |
1133 | .mode = 0644, | 1134 | .mode = 0644, |
1134 | .proc_handler = proc_dointvec, | 1135 | .proc_handler = proc_dointvec_minmax, |
1135 | .extra1 = &zero, | 1136 | .extra1 = &zero, |
1136 | }, | 1137 | }, |
1137 | #else | 1138 | #else |
@@ -1214,6 +1215,7 @@ static struct ctl_table vm_table[] = { | |||
1214 | .proc_handler = proc_dointvec_jiffies, | 1215 | .proc_handler = proc_dointvec_jiffies, |
1215 | }, | 1216 | }, |
1216 | #endif | 1217 | #endif |
1218 | #ifdef CONFIG_MMU | ||
1217 | { | 1219 | { |
1218 | .procname = "mmap_min_addr", | 1220 | .procname = "mmap_min_addr", |
1219 | .data = &dac_mmap_min_addr, | 1221 | .data = &dac_mmap_min_addr, |
@@ -1221,6 +1223,7 @@ static struct ctl_table vm_table[] = { | |||
1221 | .mode = 0644, | 1223 | .mode = 0644, |
1222 | .proc_handler = mmap_min_addr_handler, | 1224 | .proc_handler = mmap_min_addr_handler, |
1223 | }, | 1225 | }, |
1226 | #endif | ||
1224 | #ifdef CONFIG_NUMA | 1227 | #ifdef CONFIG_NUMA |
1225 | { | 1228 | { |
1226 | .procname = "numa_zonelist_order", | 1229 | .procname = "numa_zonelist_order", |
@@ -1439,7 +1442,7 @@ static struct ctl_table fs_table[] = { | |||
1439 | }; | 1442 | }; |
1440 | 1443 | ||
1441 | static struct ctl_table debug_table[] = { | 1444 | static struct ctl_table debug_table[] = { |
1442 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) | 1445 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
1443 | { | 1446 | { |
1444 | .procname = "exception-trace", | 1447 | .procname = "exception-trace", |
1445 | .data = &show_unhandled_signals, | 1448 | .data = &show_unhandled_signals, |
@@ -1448,6 +1451,17 @@ static struct ctl_table debug_table[] = { | |||
1448 | .proc_handler = proc_dointvec | 1451 | .proc_handler = proc_dointvec |
1449 | }, | 1452 | }, |
1450 | #endif | 1453 | #endif |
1454 | #if defined(CONFIG_OPTPROBES) | ||
1455 | { | ||
1456 | .procname = "kprobes-optimization", | ||
1457 | .data = &sysctl_kprobes_optimization, | ||
1458 | .maxlen = sizeof(int), | ||
1459 | .mode = 0644, | ||
1460 | .proc_handler = proc_kprobes_optimization_handler, | ||
1461 | .extra1 = &zero, | ||
1462 | .extra2 = &one, | ||
1463 | }, | ||
1464 | #endif | ||
1451 | { } | 1465 | { } |
1452 | }; | 1466 | }; |
1453 | 1467 | ||