diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8a68b2448468..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> |
@@ -1441,7 +1442,7 @@ static struct ctl_table fs_table[] = { | |||
1441 | }; | 1442 | }; |
1442 | 1443 | ||
1443 | static struct ctl_table debug_table[] = { | 1444 | static struct ctl_table debug_table[] = { |
1444 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) | 1445 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
1445 | { | 1446 | { |
1446 | .procname = "exception-trace", | 1447 | .procname = "exception-trace", |
1447 | .data = &show_unhandled_signals, | 1448 | .data = &show_unhandled_signals, |
@@ -1450,6 +1451,17 @@ static struct ctl_table debug_table[] = { | |||
1450 | .proc_handler = proc_dointvec | 1451 | .proc_handler = proc_dointvec |
1451 | }, | 1452 | }, |
1452 | #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 | ||
1453 | { } | 1465 | { } |
1454 | }; | 1466 | }; |
1455 | 1467 | ||